Wink Pings

Qwen4 Tested: Labeled 35B, Actually 55B, but 4.8x Faster Than 27B

Sebastian Raschka ran Qwen4-35B-A3B on DGX Spark, achieving a generation speed of 55 tokens/s, 4.8x that of Qwen3.8-27B. But a 20B n-gram table brings the core parameter count to 55B, and memory is about 12 GB higher than the no-n-gram version.

Just one day after Qwen4's release, Sebastian Raschka ran a round of comparisons on DGX Spark using llama.cpp. Test conditions were consistent: 8K context, 4-bit Q4_K_M weights. The results were direct: Qwen4-35B-A3B generated about 55 tokens/s, while Qwen3.8-27B managed only 11.5 tokens/s—4.8x faster. Prompt processing speed was 2.5x. In terms of peak memory, Qwen4 used 32.5 GB, while Qwen3.8-27B used 20.2 GB.

Qwen4测试结果

Architecturally, Qwen4 is similar to Qwen3.6-35B-A3B: 30 of its 40 layers use Gated DeltaNet. In the remaining 10 layers, Qwen4 switched from full gated attention to Qwen Sparse Attention, or QSA. This design appeared earlier on Qwen3.8-Flash-Next, but that was a 125B model. Qwen4 brings it down to the 35B scale, which is a compactness attempt.

The 35B figure is a bit misleading. It comes with a 20B n-gram table; counting core parameters and embeddings, the actual total is close to 55B. Some commenters joked that hiding a 20B lookup table inside 35B is the most typical parameter-counting method of 2026. Sebastian added a more specific data point: compared with Qwen3.8-35B-A3B (without n-gram), Qwen4-35B-A3B uses about 12 GB more memory.

Qwen4与无n-gram版本内存对比

内存对比细节

Someone asked why decoding is 4.8x faster but prompt processing is only 2.5x faster. Sebastian's explanation is that Qwen3.8-27B is a dense model, and dense models have an advantage over MoE in the prefill stage. This also means that Qwen4's speedup is not uniform; in long-prompt scenarios, the gap will narrow.

Other feedback is also worth looking at. One commenter said Qwen4's chat experience is good, which is a bit surprising for such a small model; but when it came to code refactoring, they thought Qwen3.8-27B was still stronger. Another person was curious how QSA would perform at 1M context given that it is used in only 10 layers. Another commenter running FP8 quantization on a 3090 said they achieved over 100 tokens/s with 256K context; Sebastian asked in reply how a 24GB VRAM card could fit an FP8 model, and there was no follow-up answer.

Qwen4-35B-A3B has only been online for one day, and Sebastian has already listed it as the next candidate for his daily-driver local model on DGX Spark. The speed improvement is indeed obvious, but the memory overhead brought by the 20B n-gram table, as well as the remaining advantage of dense models in prefill, are all costs that need to be carefully weighed before choosing.

发布时间: 2026-12-05 02:27