Instructions to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Use Docker
docker model run hf.co/webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with Ollama:
ollama run hf.co/webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with Docker Model Runner:
docker model run hf.co/webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
- Lemonade
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Sakura-Qwen4-35B-A3B-imatrix-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Sakura ยท imatrix GGUF quantization of Qwen/Qwen4-35B-A3B
Independent community quantization. Not an official release of the upstream authors.
Benchmarks of the original model
These are the Qwen team's published results for Qwen/Qwen4-35B-A3B in full precision. They were not measured on these quantized files. Source and benchmark notes: the original model card.
Which GPU fits
A large part of every file is the per-layer n-gram table per_layer_token_embd. llama.cpp (b12973 and newer) does not put it on the graphics card or load it into RAM: it reads the rows it needs straight from the file on disk (--lazy-mode auto, the default, for tensors over 4 GiB; uses the memory-mapped file). The token embedding stays on the CPU as well. Only the rest goes to the GPU with -ngl 99.
| Quant | File | n-gram table (stays on SSD) | Token embedding (RAM) | GPU part (weights) | Smallest card | Left on that card (context, buffers) |
|---|---|---|---|---|---|---|
| Q2_K | 25.0 GB | 11.5 GB | 0.2 GB | 13.3 GB (12.4 GiB) | 16 GB | 3.6 GiB |
| Q3_K_M | 28.9 GB | 11.5 GB | 0.2 GB | 17.2 GB (16.0 GiB) | 24 GB | 8.0 GiB |
| Q4_K_M | 36.1 GB | 14.1 GB | 0.3 GB | 21.7 GB (20.2 GiB) | 24 GB | 3.8 GiB |
| Q5_K_M | 41.0 GB | 15.4 GB | 0.3 GB | 25.3 GB (23.6 GiB) | 32 GB | 8.4 GiB |
"Smallest card" is the smallest common VRAM size (8/12/16/24/32/48 GB) that leaves at least 2 GiB beside the weights for the context (KV cache) and compute buffers. Whether that is enough for your context length depends on your settings and was not measured. All sizes are read from the file headers on the Hub; nothing in this table was tested on a real graphics card, and the speed of reading the table from the SSD was not measured (a fast NVMe SSD helps; free RAM is used as cache by the operating system). On a smaller card, --n-cpu-moe N keeps the experts of N layers in system RAM instead (slower, not tested here).
1. Model Overview
Architecture: qwen4_moe (GGUF qwen4exp) ยท 35B total / 3B active parameters plus a 20B per-layer n-gram embedding table and 2B MTP, vision input.
Original: 112.8 GB (BF16 GGUF, the source of these quantizations).
| Quant | Size | Compared with the original |
|---|---|---|
| Q2_K | 25.0 GB | 78 % smaller |
| Q3_K_M | 28.9 GB | 74 % smaller |
| Q4_K_M | 36.1 GB | 68 % smaller |
| Q5_K_M | 41.0 GB | 64 % smaller |
The n-gram table per_layer_token_embd has rows of 128 values, which the K-quant formats cannot hold, so llama.cpp stores it in a legacy format (for example Q4_0 in Q3_K_M); that table alone is 11.5โ15.4 GB depending on the quant and makes these files larger than a plain 35B model. llama.cpp reads it from disk on demand instead of loading it (see โWhich GPU fitsโ).
2. Original Model / Attribution
- Original model: Qwen/Qwen4-35B-A3B
- Quantized from:
unsloth/Qwen4-35B-A3B-GGUF(BF16 GGUF, commit3ef64303abd0e81681d257437fc35d1ab0d49519). - Quantized by
webmp3. Upstream authors retain their license and attribution.
3. Files
| File | Size | Quant |
|---|---|---|
Sakura-Qwen4-35B-A3B-Q2_K.gguf |
25.0 GB | Q2_K |
Sakura-Qwen4-35B-A3B-Q3_K_M.gguf |
28.9 GB | Q3_K_M |
Sakura-Qwen4-35B-A3B-Q4_K_M.gguf |
36.1 GB | Q4_K_M |
Sakura-Qwen4-35B-A3B-Q5_K_M.gguf |
41.0 GB | Q5_K_M |
mmproj-Sakura-Qwen4-35B-A3B-F16.gguf |
0.9 GB | vision projector |
Sakura-Qwen4-35B-A3B-imatrix.dat |
0.2 GB | importance matrix |
mmproj-Sakura-Qwen4-35B-A3B-F16.gguf is mmproj-F16.gguf of unsloth/Qwen4-35B-A3B-GGUF (commit 3ef64303abd0e81681d257437fc35d1ab0d49519), copied unchanged. Use it together with any quantization to give the model images. Image input was not tested in this release. Files over 45 GB are split into numbered parts: keep them together and load the first.
4. Download and Usage
llama-cli -m <file>.gguf -p "Hello" -n 32
# with images
llama-mtmd-cli -m <file>.gguf --mmproj mmproj-Sakura-Qwen4-35B-A3B-F16.gguf --image <picture>.jpg -p "Describe this image."
Needs a llama.cpp build that supports this architecture (b12973 or newer was used here).
llama.cpp server (web chat at http://127.0.0.1:8080 and an OpenAI-compatible API at http://127.0.0.1:8080/v1):
llama-server -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M -c 8192 --port 8080
LM Studio: search for webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF in the Discover tab, download one file and load it. Needs a version whose bundled llama.cpp supports the qwen4_moe architecture. Not tested by us.
Ollama:
ollama run hf.co/webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M
Needs a version whose bundled llama.cpp supports the architecture. Not tested by us.
5. Verification
- Real inference test:
Q4_K_M loaded by llama.cpp b12973 and generated coherent text once. The other files were not run; their tensor types below are read from their own headers on the Hub. - No perplexity, KL divergence, benchmark or quality score was measured for these files.
Technical details: exact versions, hashes, how these were made
Exact versions
- Source commit:
849378c8db0d4537b7c6731738147378729d8920(model card at that commit) - BF16 and Q8_0 source GGUFs:
unsloth/Qwen4-35B-A3B-GGUFcommit3ef64303abd0e81681d257437fc35d1ab0d49519 - llama.cpp: release
b12973(built from the tag)
File hashes
| File | Bytes | SHA-256 | Kind |
|---|---|---|---|
Sakura-Qwen4-35B-A3B-Q2_K.gguf |
24989776192 | 58e0a7186ddcb87885d76f73d15f309f23898112a82184e600697d94a8f4ed71 |
Q2_K |
Sakura-Qwen4-35B-A3B-Q3_K_M.gguf |
28927237952 | c02160011d6d32b4fd3efc8ea71cfe01a87d60018a2394bf94972cce7346cbe0 |
Q3_K_M |
Sakura-Qwen4-35B-A3B-Q4_K_M.gguf |
36078191936 | ec2197a6013c5d4ce60a6d09074277efd8e8db78d79a1f3d8e80cf91bdcff171 |
Q4_K_M |
Sakura-Qwen4-35B-A3B-Q5_K_M.gguf |
41019016512 | b2e0ebd35a8d9c6afd4cffc69c7088755a7b3c44375c69450ddd94dfbdc3dd61 |
Q5_K_M |
mmproj-Sakura-Qwen4-35B-A3B-F16.gguf |
899283200 | 3805de49141d2695d7d399ec67766b9f9d9b5f7b00050c1f3e78b3793be77ac6 |
vision projector |
Sakura-Qwen4-35B-A3B-imatrix.dat |
194568093 | 818abc7af4611ca05f139ec5fb367a2313ea4023d90d424305a8a1394e12d745 |
importance matrix |
How these were made
Stock llama-quantize presets of llama.cpp b12973 with an importance matrix, from the BF16 GGUF named above. The matrix was computed with stock llama-imatrix on unsloth/Qwen4-35B-A3B-GGUF Q8_0 (same commit) over the Sakura calibration text hfqa-original-calibration-v2 (CC0, SHA-256 bc7216ea05c8bd05d6b9e94d813ec9eb651a2375288c08c06135a3f874d886f2), context 128. The matrix entry of blk.1.ple_conv1d.weight (the n-gram convolution) does not match that tensor's shape in this llama.cpp version and was left out; llama.cpp keeps that tensor (4 columns) in F16 anyway, so every quantized tensor used the matrix. The matrix file is included.
Stock llama.cpp keeps some tensors (for example normalization and gated-residual weights) in higher precision, so not every tensor is stored in the named type; the table shows what each file really contains (read from the file headers on the Hub).
| File | Tensors by type |
|---|---|
Sakura-Qwen4-35B-A3B-Q2_K.gguf |
BF16: 22, F16: 1, F32: 335, Q2_K: 377, Q3_K: 134, Q4_0: 1, Q4_K: 41, Q6_K: 1 |
Sakura-Qwen4-35B-A3B-Q3_K_M.gguf |
BF16: 22, F16: 1, F32: 335, Q3_K: 377, Q4_0: 1, Q4_K: 167, Q5_K: 8, Q6_K: 1 |
Sakura-Qwen4-35B-A3B-Q4_K_M.gguf |
BF16: 22, F16: 1, F32: 335, Q4_K: 468, Q5_0: 1, Q6_K: 85 |
Sakura-Qwen4-35B-A3B-Q5_K_M.gguf |
BF16: 22, F16: 1, F32: 335, Q5_1: 1, Q5_K: 468, Q6_K: 85 |
6. License Information
Source license: apache-2.0 (redistribution with attribution).
ไธญๆ่ฏดๆ ยท ๆจฑ่ฑ Sakura๏ผ็นๅปๅฑๅผ๏ผ
ๆจฑ่ฑ Sakura ยท Qwen/Qwen4-35B-A3B ็ imatrix GGUF ้ๅ
็ฌ็ซ็็คพๅบ้ๅ็ๆฌ๏ผๅนถ้ไธๆธธไฝ่ ็ๅฎๆนๅๅธใ
ๅ็ๆจกๅๅบๅๆต่ฏ
ไปฅไธไธบ Qwen ๅข้ๅ ฌๅธ็ Qwen/Qwen4-35B-A3B ๅ จ็ฒพๅบฆๆ็ปฉ๏ผๅนถ้ๅจ่ฟไบ้ๅๆไปถไธๆตๅพใ
้ๅๅชๅๆพๅก
ๆฏไธชๆไปถไธญๅพๅคงไธ้จๅๆฏ้ๅฑ n-gram ่กจ per_layer_token_embdใllama.cpp๏ผb12973 ๅๆดๆฐ็ๆฌ๏ผไธไผๆๅฎๆพ่ฟๆพๅญๆๆดไฝ่ฝฝๅ
ฅๅ
ๅญ๏ผ่ๆฏๆ้็ดๆฅไป็ฃ็ๆไปถ่ฏปๅๆ้็่ก๏ผ้ป่ฎค --lazy-mode auto๏ผ้็จไบ่ถ
่ฟ 4 GiB ็ๅผ ้๏ผๅบไบๅ
ๅญๆ ๅฐๆไปถ๏ผใ่ฏๅตๅ
ฅๅๆ ท็ๅจ CPU ไธใไฝฟ็จ -ngl 99 ๆถๅชๆๅ
ถไฝ้จๅ่ฟๅ
ฅๆพๅกใ
| ้ๅ | ๆไปถ | n-gram ่กจ๏ผ็ๅจ SSD๏ผ | ่ฏๅตๅ ฅ๏ผๅ ๅญ๏ผ | ๆพๅก้จๅ๏ผๆ้๏ผ | ๆๅฐๅ้ๆพๅก | ่ฏฅๅกๅฉไฝ๏ผไธไธๆ็ญ๏ผ |
|---|---|---|---|---|---|---|
| Q2_K | 25.0 GB | 11.5 GB | 0.2 GB | 13.3 GB (12.4 GiB) | 16 GB | 3.6 GiB |
| Q3_K_M | 28.9 GB | 11.5 GB | 0.2 GB | 17.2 GB (16.0 GiB) | 24 GB | 8.0 GiB |
| Q4_K_M | 36.1 GB | 14.1 GB | 0.3 GB | 21.7 GB (20.2 GiB) | 24 GB | 3.8 GiB |
| Q5_K_M | 41.0 GB | 15.4 GB | 0.3 GB | 25.3 GB (23.6 GiB) | 32 GB | 8.4 GiB |
โๆๅฐๅ้ๆพๅกโๆๅจๆ้ไนๅคไป่ณๅฐๅฉไฝ 2 GiB๏ผ็จไบไธไธๆ KV ็ผๅญๅ่ฎก็ฎ็ผๅฒ๏ผ็ๆๅฐๅธธ่งๆพๅญ่งๆ ผ๏ผ8/12/16/24/32/48 GB๏ผใๆฏๅฆ่ถณๅคๅๅณไบไฝ ็ไธไธๆ้ฟๅบฆไธ่ฎพ็ฝฎ๏ผๆช็ปๆต้ใๆๆๅคงๅฐๅ่ฏปๅ่ช Hub ไธ็ๆไปถๅคด๏ผๆฌ่กจๆชๅจ็ๅฎๆพๅกไธๆต่ฏ๏ผไป SSD ่ฏปๅ่ฏฅ่กจ็้ๅบฆไนๆชๆต้๏ผ้ซ้ NVMe SSD ๆๅธฎๅฉ๏ผ็ฉบ้ฒๅ
ๅญไผ่ขซ็ณป็ป็จไฝ็ผๅญ๏ผใๆพๅญๆดๅฐๆถ๏ผๅฏ็จ --n-cpu-moe N ๅฐ N ๅฑ็ไธๅฎถๆพๅจ็ณป็ปๅ
ๅญไธญ๏ผๆดๆ
ข๏ผๆชๆต่ฏ๏ผใ
1. ๆฆ่ฟฐ
ๆถๆ๏ผqwen4_moe๏ผGGUF qwen4exp๏ผยท ๆปๅๆฐ 35B / ๆฟๆดป 3B๏ผๅฆๅซ 20B ้ๅฑ n-gram ๅตๅ
ฅ่กจไธ 2B MTP๏ผๆฏๆๅพๅ่พๅ
ฅใ
ๅๅงๆจกๅ๏ผ112.8 GB๏ผBF16 GGUF๏ผ่ฟไบ้ๅ็ๆฌ็ๆฅๆบ๏ผใ
| ้ๅ | ๅคงๅฐ | ็ธๆฏๅๅงๆจกๅ |
|---|---|---|
| Q2_K | 25.0 GB | ๅฐ 78 % |
| Q3_K_M | 28.9 GB | ๅฐ 74 % |
| Q4_K_M | 36.1 GB | ๅฐ 68 % |
| Q5_K_M | 41.0 GB | ๅฐ 64 % |
n-gram ่กจ per_layer_token_embd ๆฏ่ก 128 ไธชๅผ๏ผK ้ๅๆ ผๅผๆ ๆณๅฎน็บณ๏ผllama.cpp ไผๆน็จๆงๆ ผๅผ๏ผไพๅฆ Q3_K_M ไธญไธบ Q4_0๏ผ๏ผไป
ๆญค่กจๆ้ๅไธๅไธบ 11.5โ15.4 GB๏ผllama.cpp ๆ้ไป็ฃ็่ฏปๅ๏ผไธๅ ่ฝฝ่ฟๆพๅญ๏ผ่งโ้ๅๅชๅๆพๅกโ๏ผใ
2. ๆไปถไธไฝฟ็จ
| ๆไปถ | ๅคงๅฐ | ็ฑปๅ |
|---|---|---|
Sakura-Qwen4-35B-A3B-Q2_K.gguf |
25.0 GB | Q2_K |
Sakura-Qwen4-35B-A3B-Q3_K_M.gguf |
28.9 GB | Q3_K_M |
Sakura-Qwen4-35B-A3B-Q4_K_M.gguf |
36.1 GB | Q4_K_M |
Sakura-Qwen4-35B-A3B-Q5_K_M.gguf |
41.0 GB | Q5_K_M |
mmproj-Sakura-Qwen4-35B-A3B-F16.gguf |
0.9 GB | vision projector |
Sakura-Qwen4-35B-A3B-imatrix.dat |
0.2 GB | importance matrix |
llama-server -hf webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF:Q4_K_M -c 8192 --port 8080
้่ฆๆฏๆ่ฏฅๆถๆ็ llama.cpp๏ผๆฌๅๅธไฝฟ็จ b12973๏ผใ่ถ ่ฟ 45 GB ็ๆไปถๅทฒๆๅไธบ็ผๅท้จๅ๏ผ่ฏทๆพๅจไธ่ตทๅนถๅ ่ฝฝ็ฌฌไธไธชใๆฌ็ๆฌๆชๆต่ฏๅพๅ่พๅ ฅใ
3. ้ช่ฏ
- Q4_K_M ๅทฒ็ฑ llama.cpp b12973 ๅ ่ฝฝๅนถๆๅ็ๆไธๆฌก่ฟ่ดฏๆๆฌ๏ผๅ ถไปๆไปถๆช่ฟ่กๆจ็๏ผๅ ถๅผ ้็ฑปๅ่ฏปๅ่ช Hub ไธ็ๆไปถๅคดใ
- ๆชๆต้ๅฐๆๅบฆใKL ๆฃๅบฆใๅบๅๆ่ดจ้ๅๆฐใ
้ๅๆนๅผ๏ผๆ ๅ llama-quantize ้ข่ฎพ้
ๅ้่ฆๆง็ฉ้ต๏ผ็ฉ้ต็ฑๆ ๅ llama-imatrix ๅจ unsloth Q8_0 ไธไปฅ Sakura ๆ กๅๆๆฌ hfqa-original-calibration-v2๏ผCC0๏ผ่ฎก็ฎใblk.1.ple_conv1d.weight ็็ฉ้ตๆก็ฎไธ่ฏฅๅผ ้ๅฝข็ถไธ็ฌฆ๏ผ่ฏฅๅผ ้๏ผ4 ๅ๏ผๆฌๅฐฑไปฅ F16 ไฟๅญ๏ผๅ ๆญคๆๆ่ขซ้ๅ็ๅผ ้้ฝไฝฟ็จไบ็ฉ้ตใ
ๆไปถๅๅธ่ง่ฑๆ่ฏดๆ็ๆๆฏ็ป่้จๅใ
4. ่ฎธๅฏ่ฏ
ๆบ่ฎธๅฏ่ฏ๏ผapache-2.0๏ผๅ
่ฎธๅจ็ฝฒๅ็ๅๆไธๅๅๅ๏ผใ
ๅฎๆด็ฌ็ซ็ไธญๆ็๏ผREADME_zh.md
- Downloads last month
- 1,622
2-bit
3-bit
4-bit
5-bit
Model tree for webmp3/Sakura-Qwen4-35B-A3B-imatrix-GGUF
Base model
Qwen/Qwen4-35B-A3B