{"slug": "qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test", "title": "Qwen4 Is Finally Open: Slower Than Qwen3.6, Better on My Coding Test", "summary": "Qwen released Qwen4-35B-A3B, the first open-weight model in the Qwen4 series, under Apache 2.0 on 4 December, with llama.cpp merging support on the evening of 3 December. On the author's 2014 Xeon with an RTX 4070 and RTX 3060, Qwen4-35B-A3B passed all 24 coding runs in 3 minutes 53 seconds at low reasoning effort under a 16,000-token cap, while Qwen3.6-35B-A3B took 37 minutes and passed 18, failing six runs that were still reasoning when the budget ran out. The 4-bit GGUF from ggml-org is 36.0 GB on disk, 14 GB of it an n-gram table that llama.cpp reads through the memory-mapped file, so Qwen4 used 22.4 GB of VRAM at 32K context on two cards versus 22.3 GB for Qwen3.6's 22.7 GB file.", "body_md": "*This article was written with the help of Claude (Anthropic), from my notes, ideas and measurements; I reviewed and edited the text. Every measurement was run on my own machines.*\n\n**Qwen4 is finally open: Qwen4–35B-A3B is the first open-weight model of the series.** On my 2014 Xeon with an RTX 4070 and an RTX 3060, Qwen4–35B-A3B passed all 24 coding runs in 3 minutes 53 seconds at low reasoning effort. Qwen3.6–35B-A3B took 37 minutes under the same 16,000-token cap and passed 18; in all six failed runs it was still reasoning when the budget ran out. With thinking off, Qwen4 had passed 20 in 2 minutes 35 seconds: low effort cost 78 seconds more and passed the four it had failed.\n\nThis article is part of a series about running language models on hardware nobody wants any more. In [the first](https://medium.com/towards-artificial-intelligence/ddr5-costs-five-times-more-my-2013-workstation-runs-a-125b-model-anyway-3e78d3cfe24f), a 2013 X79 workstation with two used Titan Xp cards ran a 125-billion-parameter model at 38 tokens per second. In [the second](https://medium.com/towards-artificial-intelligence/two-home-pcs-one-125b-model-splitting-stratas-layers-over-gigabit-ethernet-5fe7eadbb751), two PCs shared it over gigabit Ethernet. In [the third](https://medium.com/towards-artificial-intelligence/a-2014-xeon-vs-two-mac-studios-on-a-125b-model-who-wins-74aabdfa603a), an X99 board with €100 of DDR3 ran it next to two Mac Studios.\n\nQwen4–35B-A3B, released by Qwen under Apache 2.0, replaces Qwen3.6–35B-A3B, the model I use most. The headline size is the same, 35 billion parameters with about 3 billion active per token, and so is much of the skeleton; what is new sits around it. llama.cpp merged support on the evening of 3 December, Qwen announced the model on 4 December, and the llama.cpp team’s own GGUF files were up that morning.\n\nI tested Qwen4–35B-A3B on release day: my usual test series on three PCs, with Qwen3.6–35B-A3B on the same cards as the reference, two models on six hardware configurations, about three hours from the start of the download to the last number.\n\nThe skeleton is Qwen3.6’s: 40 layers in a pattern of three Gated DeltaNet linear-attention layers and one attention layer, 256 experts with 8 routed plus 1 shared per token, a 27-layer vision encoder and one multi-token-prediction (MTP) layer for speculative decoding. What changes, from the model card and the configuration files of the two models:\n\nThe n-gram table is the part that matters most at home. The 4-bit GGUF from ggml-org is 36.0 GB on disk, of which 14 GB is the table. llama.cpp does not copy the table to the GPU: it reads it through the memory-mapped file, so the operating system loads the pages a prompt touches into RAM as page cache and can drop them again. What I measured is the result: on two cards at 32K of context, Qwen4 used **22.4 GB of VRAM, against 22.3 GB for Qwen3.6**, a 36 GB file against a 22.7 GB one.\n\nQwen’s benchmark chart does not include Qwen3.6. It compares Qwen4–35B-A3B with Qwen3.8-Flash-Next, the 125B model of the first three articles in this series, with Qwen3.8–27B and with Inkling 2 Mini. On the four coding benchmarks, the 35B model is ahead of the 125B on two, DeepSWE (61.8 against 58.7) and NL2Repo (51.7 against 48.1), and behind on two, Terminal Bench (21.2 against 24.2) and FrontierCode-AA (16.1 against 27.1). These are Qwen’s numbers, some cited from Artificial Analysis, and I did not reproduce them. Because the chart has no Qwen3.6, I measured that comparison myself.\n\nThe X79 and the X99 have 24 GB of VRAM each: just enough for the model plus a 32K context. With one 12 GB card, part of the experts has to stay in system RAM: -ncmoe 24 keeps the expert weights of 24 of the 40 layers on the CPU. soft-14 is the PC that runs my everyday chat.\n\nMy usual test series. llama.cpp release b12974, the latest when I started (Qwen4 support arrived in b12969); 32K context; flash attention; one request at a time; thinking off for both models. For each configuration:\n\nThe reference is **Qwen3.6–35B-A3B in Unsloth’s UD-Q4_K_M** (22.7 GB), against **Qwen4–35B-A3B in ggml-org’s Q4_K_M**. Both are 4-bit files of about the same resident size, but not the same recipe, so a difference of a few percent can come from the quantization as much as from the model.\n\nQwen4 is slower everywhere. With all the experts in VRAM, it loses 17–20% on the newer cards and 30% on the Titans. Each machine draws the same power with both models, so every token costs more energy, in proportion to the lost speed. The GPUs alone: 280 W for the two Titans with Qwen4 and 287 W with Qwen3.6, 111 and 112 W for the two 5060 Ti. Energy per token counts all the monitored parts (CPU package, RAM where the board reports it, all GPUs): on the X79, 312 W at 45.2 tokens per second makes 6.9 joules per token, against 5.0 for Qwen3.6; on soft-14, 1.7 against 1.3.\n\nWith part of the experts in system RAM, the gap halves to 10–11% on the X99 and 20% on the X79. There, the CPU reading experts from DDR3 sets the pace for both models, and Qwen4’s extra work on the GPU matters less.\n\nWhere does the time go? Qwen4 does more per token than its 3 billion active parameters suggest: four residual streams instead of one, the sparse-attention indexer, the n-gram lookup. I did not profile it. The developer of Basalt, an inference engine for Blackwell cards, did on an RTX 5090: in [the pull request](https://github.com/jesdga95/basalt/pull/1263) that adds Qwen4, the reads of the hyper-connection streams are the largest single item per token. Basalt also observed a slowdown on its RTX 5090: 454 against 588 tokens per second with MTP on.\n\nBoth models found the password in every run. With all the experts in VRAM, Qwen4 reads the 17.7K-token prompt 23–42% slower. With experts in system RAM, it reads it 14–20% *faster*. I have no explanation for this yet. The quantization is the first suspect, but in both files the expert weights are k-quants only, with no IQ types: Q4_K for the gate and up projections; for the down projection, Q5_K in Qwen3.6 and Q4_K and Q6_K in alternate layers in Qwen4. The 24 layers of experts left in system RAM weigh 11.7 GB in one file and 11.6 GB in the other.\n\nThe MTP head comes as a separate 1.3 GB file. llama.cpp loads it with -md and --spec-type draft-mtp; the head proposes the next few tokens and the main model verifies them.\n\nThe X79 baseline is from the 32K run; on the X99 I measured it at both sizes, 78.1 tokens per second at 32K and 78.2 at 20K, so the context size does not change generation speed here.\n\nOn the X99, where I compared two and three drafted tokens, two was clearly better: with three, the gain fell to 1%, because the share of accepted drafts fell from 51% to 34% and every rejected guess still costs work. With two, Qwen4 on soft-14 is back at Qwen3.6’s speed without MTP: 107.7 against 108.1 tokens per second. On the coding test the gain is larger, as usual with drafting: the 24 answers took 61 seconds instead of 96 on soft-14, and 126 instead of 196 on the X79.\n\nOn 24 GB, though, the head barely fits. At 32K of context the X99 server refused to start, 16 MB short for the MTP context; the X79 started, generated, and then ran out of memory on the long prompt. At 20K both generated normally, but only the X79 also got through the 17.7K-token prompt (912 tokens per second, against 1,150 without MTP). On the X99 the RTX 3060 ran out of memory again, so on that machine the MTP numbers cover generation only.\n\nThe test is the one from the X99 article: twelve Python exercises with unit tests, from a Roman-numeral converter to a date calculator that may not use the date modules, up to 3,000 tokens per answer, one attempt, no tools. The exact prompts and unit tests are my own and unpublished, although the problems themselves, a Roman-numeral converter or a wildcard matcher, are well known. That is 12 distinct exercises, asked twice in each of six configurations: 144 answers per model.\n\nQwen3.6 scored 18/24 in five configurations and 19/24 in the sixth. On the X79 and the X99 it failed the same three exercises in both rounds almost every time: an expression calculator, a wildcard matcher and the date calculator. Qwen4 solves each of the three at least once in most configurations, and what it still gets wrong is mostly the calculator and the wildcard matcher (12 of its 16 failures: 7 and 5; the date calculator 3, the Roman numerals once). The most useful number is not the total but the spread: Qwen4 is ahead in all six configurations, by two to five correct answers out of 24.\n\nQwen4’s template has levels of reasoning effort; Qwen3.6’s has only on and off. I ran the coding test once more on the X99’s two cards with each model’s lightest thinking setting: Qwen4 at “low”, Qwen3.6 “on”, both with the same cap of 16,000 tokens per answer. It is an operational comparison: the cheapest way each model offers to think.\n\nAll six of Qwen3.6’s failures are truncations: answers that hit the 16,000-token cap while still reasoning and never got to the code.\n\nThe thinking-off rows come from the main test, capped at 3,000 tokens per answer, and one of Qwen4’s low-effort answers used 3,177, so the two Qwen4 rows compare two practical settings rather than a single variable. None of Qwen4’s four failures with thinking off was a truncation: all four were complete code that failed its tests.\n\nQwen4 at low effort solved everything, including the calculator, the wildcard matcher and the date calculator, in about one and a half times the time of its run without thinking. Its reasoning was short: from nothing at all on the easy exercises to about 7,600 characters on the calculator. I did not try “high”, the default, or “xhigh”: “low” had already passed all 24.\n\nQwen3.6 produced 11.4 times as many output tokens and took 9.5 times as long, for the same 18/24 it scored without thinking.\n\nllama.cpp is not the only engine working on Qwen4, and probably not the fastest. Two engines I have used in earlier articles have Qwen4 support in pull requests, not yet in a release, with numbers measured by their authors and users:\n\nI have not measured these yet. When they are released, they are the next test.\n\n[Qwen4 Is Finally Open: Slower Than Qwen3.6, Better on My Coding Test](https://pub.towardsai.net/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test-4d6bba1d3fc2) was originally published in [Towards AI](https://pub.towardsai.net) on Medium, where people are continuing the conversation by highlighting and responding to this story.", "url": "https://wpnews.pro/news/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test", "canonical_source": "https://pub.towardsai.net/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test-4d6bba1d3fc2?source=rss----98111c9905da---4", "published_at": "2026-12-05 18:01:02+00:00", "updated_at": "2026-12-05 18:15:09.637558+00:00", "lang": "en", "topics": ["large-language-models", "ai-research", "ai-tools", "ai-infrastructure"], "entities": ["Qwen", "Qwen4-35B-A3B", "Qwen3.6-35B-A3B", "llama.cpp", "ggml-org", "Qwen3.8-Flash-Next", "Qwen3.8-27B", "Inkling 2 Mini"], "also_reported_by": [], "takeaway": "Qwen4-35B-A3B passed all 24 coding runs in 3 minutes 53 seconds at low reasoning effort versus 18 of 24 in 37 minutes for Qwen3.6-35B-A3B, and its 14 GB n-gram table stays in the memory-mapped file rather than VRAM, holding usage to 22.4 GB at 32K context.", "recommendation": {"advice": "Keep the 14 GB n-gram table memory-mapped on the CPU rather than copying it to the GPU; the author measured 22.4 GB VRAM at 32K context versus 22.3 GB for the smaller Qwen3.6 file.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test", "markdown": "https://wpnews.pro/news/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test.md", "text": "https://wpnews.pro/news/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test.txt", "jsonld": "https://wpnews.pro/news/qwen4-is-finally-open-slower-than-qwen3-6-better-on-my-coding-test.jsonld"}}