Views
No views yet
Qwen/Qwen3.5-4B for llama.cpp. Muniment builds these files
from the official Transformers weights and ships them in its products. No
prebuilt or third-party GGUF is an input to this build.| File | Quantization | Size in bytes | sha256 |
|---|---|---|---|
qwen3.5-4b-Q4_K_M.gguf | Q4_K_M | 2783446784 | 5ca0d868d45462e33c7671740bbd97b1ec4d38834827609fcd1a3f726cf49649 |
| Field | Value |
|---|---|
| Source repository | https://huggingface.co/Qwen/Qwen3.5-4B |
| Source revision | 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a |
| llama.cpp repository | https://github.com/ggml-org/llama.cpp |
| llama.cpp revision | 178a6c44937154dc4c4eff0d166f4a044c4fceba |
| High-precision intermediate | qwen3.5-4b-BF16.gguf |
| Converter dependency lock | evals/routing/qwen3.5-4b-requirements.lock (muniment-qa) |
| Python | 3.10.18 |
1set -eu
2
3QWEN_REV=851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a
4LLAMA_CPP_REV=178a6c44937154dc4c4eff0d166f4a044c4fceba
5
6mkdir qwen3.5-4b-source
7git -C qwen3.5-4b-source init
8git -C qwen3.5-4b-source remote add origin https://huggingface.co/Qwen/Qwen3.5-4B
9git -C qwen3.5-4b-source fetch --depth 1 origin "$QWEN_REV"
10git -C qwen3.5-4b-source checkout --detach "$QWEN_REV"
11test "$(git -C qwen3.5-4b-source rev-parse HEAD)" = "$QWEN_REV"
12git -C qwen3.5-4b-source lfs pull origin
13
14mkdir llama.cpp
15git -C llama.cpp init
16git -C llama.cpp remote add origin https://github.com/ggml-org/llama.cpp.git
17git -C llama.cpp fetch --depth 1 origin "$LLAMA_CPP_REV"
18git -C llama.cpp checkout --detach "$LLAMA_CPP_REV"
19test "$(git -C llama.cpp rev-parse HEAD)" = "$LLAMA_CPP_REV"
20
21python3 -m venv llama.cpp/.venv
22llama.cpp/.venv/bin/python -m pip install \
23 -r llama.cpp/requirements/requirements-convert_hf_to_gguf.txt
24cmake -S llama.cpp -B llama.cpp/build \
25 -DCMAKE_BUILD_TYPE=Release \
26 -DLLAMA_BUILD_TESTS=OFF
27cmake --build llama.cpp/build --config Release \
28 --target llama-quantize llama-server --parallel
29
30mkdir artifacts
31llama.cpp/.venv/bin/python llama.cpp/convert_hf_to_gguf.py \
32 qwen3.5-4b-source \
33 --outfile artifacts/qwen3.5-4b-BF16.gguf \
34 --outtype bf16
35llama.cpp/build/bin/llama-quantize \
36 artifacts/qwen3.5-4b-BF16.gguf \
37 artifacts/qwen3.5-4b-Q4_K_M.gguf \
38 Q4_K_M1sha256sum -c SHA256SUMS
2sha256sum qwen3.5-4b-Q4_K_M.gguf
3# 5ca0d868d45462e33c7671740bbd97b1ec4d38834827609fcd1a3f726cf49649
4stat --format='%s' qwen3.5-4b-Q4_K_M.gguf
5# 27834467841llama-server \
2 --model qwen3.5-4b-Q4_K_M.gguf \
3 --alias qwen3.5-4b-Q4_K_M \
4 --ctx-size 32768Qwen/Qwen3.5-4B, which is
licensed under Apache-2.0. The same licence applies here.convert_hf_to_gguf.py from the pinned llama.cpp revision.llama-quantize from the
same pinned revision.