Qwen4-35B-A3B at home: 0.38 to 470 tokens/s – what your hardware can actually do
A day after release, Alibaba's new open model is already running on gaming laptops, Macs and even phones. The measured speeds differ by a factor of more than 1,000. We sorted the first benchmarks by hardware, checked them against the vendors' claims, and explain which settings make the difference.

What's going on
Since December 4, Qwen4-35B-A3B has been available as the first open model of the Qwen4 generation, under the Apache 2.0 license and with up to a million tokens of context. Since then, tinkerers have been posting numbers from anything with a chip in it: 8 GB gaming laptops, Macs, even smartphones. The figures are all over the place. On one and the same RTX 3080 Ti, a collection on vramcalculator.com lists 0.38 tokens per second right next to 359.
We sorted the first measurements by hardware class and dug into where the differences come from. It almost always comes down to three things: where the experts live, which engine you run, and where the new n-gram table sits. One important caveat up front: almost all figures come from individual users or from the projects themselves. We haven't measured anything ourselves.
Why this model stresses memory differently
According to the Hugging Face blog, the model consists of three parts:
- About 35 billion main parameters in a mixture-of-experts design. That's 256 specialized subnetworks, of which only 8 plus one fixed generalist do any work per token. That leaves 3 to 3.8 billion active parameters.
- About 20.5 billion parameters in an n-gram table (Unsloth calls it “Engram”). It's a lookup table with around 10 million entries for word pairs and triples. Per token, the model reads only 16 rows from it, each about 4 KB according to a Hacker News commenter.
- An MTP head with about 2 billion parameters. It guesses several tokens ahead, which the main model then only has to confirm (speculative decoding).
That adds up to around 56 billion parameters. But the table doesn't have to go on the GPU or even into RAM. Because only a few small pieces are read per token, it can stay on the SSD. The cost has already been measured several times: 1.5 percent on a DGX Spark with vLLM, and one HN user got 79 instead of 81 tokens/s. According to an analysis on cnblogs, though, it should be an NVMe SSD — not a SATA SSD, and definitely not a hard drive. On top of that, only 10 of the 40 layers keep a KV cache at all, the buffer holding the text so far. According to vLLM, it therefore needs only about 1 GiB at 128,000 tokens in NVFP4 format.
Using Unsloth's file sizes, we calculated what's left after subtracting the table (11.5 GB for every file up to 4 bits) — the part that actually has to fit into VRAM and RAM:
| Unsloth file | Download | without n-gram table | Quality (mean KLD) | Top-1 agreement |
|---|---|---|---|---|
| UD-IQ2_XXS | 23.4 GB | approx. 11.9 GB | 0.1935 | 84.0% |
| UD-Q2_K_XL | 27.7 GB | approx. 16.2 GB | 0.0928 | 89.0% |
| UD-IQ3_XXS | 28.7 GB | approx. 17.2 GB | 0.0760 | 90.0% |
| UD-Q3_K_XL | 30.9 GB | approx. 19.4 GB | 0.0569 | 91.4% |
| UD-IQ4_XS | 32.0 GB | approx. 20.5 GB | 0.0532 | 91.8% |
| UD-Q4_K_XL | 36.2 GB | approx. 24.7 GB | 0.0375 | 93.2% |
KL divergence (KLD) measures how far the probabilities of the compressed version stray from the original. Smaller means closer to the original. According to the memory calculator thread on Hugging Face, the experts make up 82 to 88 percent of each file. The “backbone” without the experts is only 1.9 to 3 GB. That's exactly why 8 GB of VRAM is enough to get the job done.
What quantization costs you
According to Unsloth's own measurements, the KLD at 2 bits (UD-Q2_K_XL) is about 2.5 times as high as with UD-Q4_K_XL, and with UD-IQ2_XXS it's more than five times as high. On Unsloth's test questions, by contrast, accuracy barely moves: 93.6 percent with IQ2_XXS and 95.0 percent with Q4_K_XL, versus 95.3 percent for the original. Only the 1-bit file drops off noticeably, to 89.6 percent. The table itself can also be stored at different precisions. With a Q8_0 table (21.8 GB) instead of IQ4_NL, the KLD for UD-Q4_K_XL falls by about 6 percent. A 41 GB BF16 table brings no further gain over Q8_0.
Our take: accuracy barely reacts, while KLD reacts a lot. For long agentic tasks, where small deviations pile up over many steps, we'd only use Q2 if Q3 or Q4 won't fit.
By the way, the Huawei quantizations being touted as “official” are official files from Huawei's research lab, not from the Qwen team. According to the MACaQ guide, they really do exist already, in three sizes: Q4 at 35.18 GB, 3-bit at 24.98 GB and 2.75-bit at 23.85 GB. They run on stock llama.cpp. Huawei doesn't publish any quality numbers for Qwen4, though. The only comparison with Unsloth covers the predecessor Qwen3.6: KLD 0.0134 vs. 0.0157 at the same file size.
Vendors claim, the community measures
| Claim | Source | What we found |
|---|---|---|
| 95 tokens/s on 8 GB | Unsloth docs, with --moe-cache-mib |
GPU and quantization aren't specified. Users measure: RTX 5060 laptop 43.8 tokens/s (IQ2_XXS, 16 GB RAM), RTX 3070 laptop 32 tokens/s (Q4_K_XL, 32 GB RAM) |
| RustingStrata 1.7x faster than llama.cpp | README | The 1.7x applies to Qwen3.6 at 2 bits. For Qwen4 on the RTX 3060, the project itself measures about 1.5x (69.0 vs. 43.6 tokens/s). With 2 MTP drafts, llama.cpp comes out ahead (39.9 vs. 37.1). The project itself cites run-to-run variance of around 30% |
| “Official” Huawei quants | published, but without Qwen4 quality data | |
| runs with 18 GB RAM | Unsloth | applies to 3 bits with a short context and the table on the SSD |
Watch the names: RustingStrata (a Rust engine from RustingStudio) and Strata (the Niko1221/Strata project with PR #7774) are different projects. The 359 tokens/s on the RTX 3080 Ti come from a Strata test build. The collection doesn't say which column it was measured in. As generation speed for a single request, we find it implausible. Even an RTX 5090 with the model fully loaded managed 226 tokens/s in Strata, 299 with MTP. The 0.38 tokens/s, on the other hand, is easy to explain: llama.cpp without --n-cpu-moe on a 12 GB card. The vramcalculator page dryly notes that a small card “falls over.”
The measurements by hardware class
8 GB VRAM (laptops). On an RTX 5060 with 16 GB of RAM, naive partial offloading (-ngl 10) delivered 13 tokens/s. With all experts in RAM (-ot exps=CPU) it was 37 tokens/s, and with 13 of 41 expert layers on the card, 43.8. According to AGI Hunt, one RTX 3070 user went from 122 to 1,050–1,232 tokens/s for prompt processing. What made the difference was --load-mode none instead of mmap, plus larger micro-batches (-ub). Generation speed doubled thanks to the expert cache, from 16.8 to 30.7 tokens/s.
12–16 GB. An RTX 3060 12 GB running RustingStrata measured 69 tokens/s, versus 43.6 with llama.cpp. Another 3060 user reports 44 tokens/s on X at 262,000 tokens of context. An RTX 5060 Ti 16 GB hits 43 tokens/s with llama.cpp and Q4_K_M in cyberq.tw's test, and 48 to 51 with one MTP draft. That's about 15 percent slower than Qwen3.6 on the same card. With the Blackwell engine Basalt and NVFP4 — a 4-bit format that newer Nvidia cards compute natively in hardware — the same card can reach 124 tokens/s, according to the model page. An RX 6800 gets 45 to 60 tokens/s under Vulkan. On an RTX 5080, one user reports 191 tokens/s with Basalt.
24 GB. According to a post on X, an RTX 4090 reaches 140 tokens/s with Q4_K_XL, without MTP. Reports on the RX 7900 XTX diverge. One HN user got just 35 tokens/s with Q4_K_XL, 131,000 tokens of context and 32 GB of RAM. Another reports more than 100 tokens/s. Unsloth quotes 131 to 138 tokens/s for 24 GB with the expert cache.
32 GB and up. An RTX 5090 hits 175 tokens/s according to Unsloth, 224 with MTP. Basalt reports 472 tokens/s in chat with NVFP4. The card can handle the full 1 million token context, but according to wiselychen, prompt processing takes 12 minutes 43 seconds.
Mac. On an M5 Max, MLX 4-bit reaches 75 tokens/s, llama.cpp with MTP 118.5. Simon Willison measures 84 tokens/s on an M5 MacBook Pro with Q4_K_S. An M3 Pro with 36 GB manages around 58 tokens/s with the free app Nearloop/Splash, with the model taking up just under 32 GB. An M2 Pro with 32 GB only gets 10 to 20 tokens/s. Ollama (qwen4:35b-a3b, 36–37 GB) and the MLX 4-bit files load the entire table into memory. oMLX can offload it to the SSD: on an M3 Max, that cut memory use from 45.6 to 28.9 GiB.
Phones. With BigMoeOnEdge, the model runs on a 12 GB Android smartphone at around 4 tokens/s. The engine continuously streams the Q4_K_M file (35 GB) from flash storage. It's a proof of concept, nothing more. The repo itself doesn't even list Qwen4 yet.
Recommendations with launch commands
We assembled the following commands from the measurements cited above. They're starting points for your own experiments; we haven't tested them ourselves. You'll need a current llama.cpp: Qwen4 support landed with PR #33626. The expert cache --moe-cache-mib reserves VRAM for whichever experts from RAM are currently used most.
8 GB VRAM, 16 GB RAM (table on the SSD, based on the RTX 5060 test):
llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:UD-IQ2_XXS -ngl 99 --n-cpu-moe 28 -fa on -c 32768 --cache-type-k q8_0 --cache-type-v q8_0 --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU
With 32 GB of RAM, UD-Q4_K_XL with --load-mode none, -ub 2048 and --moe-cache-mib 1024 is worth it, as in the RTX 3070 test.
12–16 GB VRAM (based on cyberq, RTX 5060 Ti):
llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M -ngl 99 --n-cpu-moe 26 --fit off -fa on -c 131072 -np 1 --spec-type draft-mtp --spec-draft-n-max 1
With 12 GB, raise --n-cpu-moe step by step until it stops crashing. With a Blackwell card, Basalt is worth a look; with an Ampere or Ada card, compare against RustingStrata.
24 GB VRAM (Unsloth recommends UD-IQ4_XS):
llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS -ngl 99 -fa on -c 65536 --cache-type-k q8_0 --cache-type-v q8_0 --spec-type draft-mtp --spec-draft-n-max 2
Mac with 32–36 GB: UD-Q3_K_XL or UD-IQ4_XS in llama.cpp with the table on the SSD, i.e. the same flags as for 8 GB. Alternatively, oMLX with SSD offloading. From 48 GB up, Ollama works too.
MTP is worth experimenting with: Unsloth recommends 2 drafts. But on the 5060 Ti and in the RustingStrata measurements, 1 draft was fastest with llama.cpp.
Our verdict
Qwen4-35B-A3B is the best example yet that “doesn't fit in VRAM” is no longer a dealbreaker. A good 30 percent of the file can live on the SSD at almost no speed cost. The experts move into system RAM. With 8 GB of VRAM and 32 GB of RAM, around 30 to 45 tokens/s is realistic; with 16 GB, around 45 to 60 in llama.cpp, and considerably more with specialized engines.
So far, the vendors' peak figures don't match what users measure. Nobody has reproduced Unsloth's 95 tokens/s on 8 GB yet, partly because Unsloth doesn't name the hardware. The fast engines are one-person projects only a few days old. On quality, there are warning signs: in wiselychen's testing, the model passed only 1 of 7 strict tasks without thinking mode, and cyberq found unwanted simplified Chinese characters in the output. Our take: if you can fit 4 bits, stick with them — better to sacrifice some speed with expert offloading than to drop down to 2 bits.
Sources
- Hugging Face Blog: Qwen4 huggingface.co
- Unsloth-Doku: Qwen4 35B-A3B lokal ausführen unsloth.ai
- Hugging Face: unsloth/Qwen4-35B-A3B-GGUF huggingface.co
- HF-Diskussion: Speicherrechner und RTX-5060-Messungen huggingface.co
- vramcalculator.com: Qwen 4 35B VRAM Requirements vramcalculator.com
- GitHub: RustingStudio/RustingStrata github.com
- RustingStrata BENCHMARKS.md github.com
- GitHub: Niko1221/Strata Issue #7773 github.com
- GitHub: huawei-csl/MACaQ github.com
- MACaQ llama.cpp README (Qwen4) github.com
- Hugging Face: jesdga/Qwen4-35B-A3B-Basalt huggingface.co
- Hugging Face: kaushikvira/Qwen4-35B-A3B-nvfp4-basalt huggingface.co
- vLLM Recipes: Qwen4-35B-A3B recipes.vllm.ai
- AGI Hunt: 35B-MoE auf 8 GB VRAM agihunt.info
- Hacker News: Qwen4-35B-A3B news.ycombinator.com
- cyberq.tw: Test auf 16-GB-Grafikkarte cyberq.tw
- cnblogs: 16 GB VRAM + 32 GB RAM cnblogs.com
- wiselychen: RTX-5090-Praxistest ai-coding.wiselychen.com
- Apidog: Qwen4-35B-A3B vs Qwen3.8-27B apidog.com
- Ollama Library: qwen4 ollama.com
- GitHub: Helldez/BigMoeOnEdge github.com
- Nearloop Release v3.8 github.com
Ask the AI assistant
Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.
The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.
Comments
What do you think? Already tried it? Write it here, no sign-up needed.
Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.