Our own variable-precision quants of Qwen 4 35B-A3B, made from Qwen's own weights the day we got them: a 13.7 GB file that runs entirely on one 16 GB card at 46 tokens a second, and on two 2015 Quadro M4000s at 16. Our first public release.
Qwen 4 35B-A3B is a mixture of experts: 40 layers plus a draft layer for speculative decoding, 256 small experts per layer with 8 working on each token, and attention that is three parts linear to one part full. It also carries something new to us: a per-layer n-gram table (per_layer_token_embd), 128 values for each of 160 million entries, 41 GB at BF16. It is a lookup, never multiplied, so llama.cpp keeps it in system RAM in its own file, loaded with --ple.
That leaves a split worth exploiting. Over 90% of the backbone's parameters are experts, and each token uses only 8 of 256 per layer. The rest, the attention, the shared expert, the output and a few small mixers, is a skeleton every token passes through. So we spend bits where every token pays for them.
hc_*), the linear-attention gates and the n-gram convolution. Stock llama-quantize currently quantizes them; an open llama.cpp pull request (#33685) keeps them at full precision. We kept all of them.The recipes, the exact commands and the importance matrix are all in the repository, so anyone can rebuild every file from Qwen's weights, or beat it.
| file | size | 1 run, temp 0 | 10 sampled seeds | drift, prose / code |
|---|---|---|---|---|
| Q8_0 (reference, not uploaded) | 38.6 GB | 9/10 | 86% | 0 / 0 |
| Q8 skeleton + Q4_K experts | 22.1 GB | 8/10 | 88% | 0.060 / 0.056 |
| Q6 skeleton + Q2_K experts | 13.7 GB | 10/10 | 81% | 0.294 / 0.336 |
| Q6 skeleton + IQ2 experts (not uploaded) | 12.4 GB | 8/10 | not run | 0.404 / 0.435 |
| Q6 skeleton + IQ1 experts | 10.8 GB | 7/10 | not run | 0.643 / 0.633 |
llama.cpp --target-size 13.5gib | 13.8 GB | 6/10 | not run | 0.449 / 0.624 |
The seeds use Qwen's own non-thinking settings (temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5), each task with up to two retries where the model sees its own real error. Drift is mean KL divergence from Q8_0 over 40 chunks of 512 tokens: lower is closer to the original. The 4-bit (88) and Q8 (86) are level within noise; the 2-bit pays about five points. Where it loses, task by task, over ten seeds against Q8: moe_expert_cache 7 vs 10 and online_softmax_stability 8 vs 10. Two tasks are hard for every file: a streaming tool-call parser (2-bit 4/10, Q8 3/10) and a weighted-interval control problem (5/10 vs 4/10).
llama-quantize can now pick a type for every tensor itself to hit a target size. We asked it for 13.5 GiB with the same importance matrix and the same full-precision control tensors, and it made the opposite call to ours. It squeezed the attention to 2 and 3 bits and the shared expert to 2 bits, and spent the savings on the experts, mostly 3-bit. Same size, opposite philosophy.
It drifted 1.5 to 2 times more than our recipe (0.449 vs 0.294 on prose, 0.624 vs 0.336 on code) and scored 6/10 on the battery to our 10/10. Its search took over three hours; our recipe file is six lines. On this model, the part every token touches is where the bits pay.
K-quants also beat i-quants here. Our Q2_K experts sit clearly closer to the original than IQ2 experts, even though the IQ file is 1.3 GB smaller. Unless an i-quant matches a K-quant's quality, we don't trade quality for a gigabyte or two.
A third of our importance matrix was code, so we expected the low-bit files to keep code better than prose. We tested it fairly: prose from wikitext-2 test (the matrix saw only train), and code from Python's standard library (json, http, email, asyncio, argparse and others), none of which was in the calibration text. Code drifted the same as prose or a little more, at every size. The importance matrix decides which detail survives. It doesn't make a domain immune.
| machine | file + table | reading | writing |
|---|---|---|---|
| Quadro RTX 5000, 16 GB (2019), all on the card | 2-bit + IQ4_NL | 808 – 946 tok/s | 46.1 at 512 · 44.4 at 4K · 43.5 at 16K |
| Quadro RTX 5000, experts of 18 layers on the CPU | 4-bit + IQ4_NL | 420 – 478 tok/s | 33.2 · 32.3 · 31.9 |
| MacBook Pro M1 Max, 64 GB (2021) | 4-bit + Q8_0 | 480 – 632 tok/s | 46.4 at 4K · 45.0 at 16K |
| Two Quadro M4000s, 8 GB each (2015), all on the cards | 2-bit + IQ4_NL | 117 tok/s | 15.9 |
The writing speed barely falls between a short prompt and a 16K one; that is Qwen 4's linear attention at work. On the M4000s we used our Maxwell CUDA patch; the stock build gave 8 to 11 tok/s and was unsteady. The small n-gram table costs almost nothing in quality (drift 0.294 to 0.297) and halves the RAM it needs, so machines with about 32 GB can run it.
All six files passed. Tampered model files are a new problem across the whole open-model world: programs glued on after the weights, and chat templates rewritten to make a model, or an agent running it, run them. That is on the people doing it, not on the sites that host models, and Hugging Face is full of honest work. We just think every publisher should show their receipts. So before anything went up:
New to this? Check your models before you run them is the thirty-second version, with the habits that protect you. Both scanners are in the repository, free, with the commands. One checks a repository before you download anything from anyone; the other reads every byte after. Run them on our files, and on everyone else's.
# llama.cpp v1.1.1 or newer
llama-server -m Qwen4-35B-A3B-backbone-Q6skel-Q2Kexperts.gguf \
--ple Qwen4-35B-A3B-ple-IQ4_NL.gguf -ngl 99 -fa on -c 32768 --jinja \
--chat-template-kwargs '{"enable_thinking":false}'
Running a character with a long prompt? Use the ROM trick: with a 10,000-token character, Qwen 4 took 16.7 seconds for the first reply and 0.17 seconds for every reply after.
Don't pass --reasoning-effort off on its own: the server also sends enable_thinking=true by default, and Qwen's template rejects the conflict. To keep thinking with a lighter touch, use '{"reasoning_effort":"low"}'.
Test it yourself and tell us what you find: the Community tab on Hugging Face, or @Escher2112 on X.
Built in a basement lab in Michigan, on hardware nobody else wanted. 🖤