LLM Open Source Benchmark: Qwen 4 35B, the New Champion

Over the past two months I have been documenting my hunt for the best open-weight model to run locally on consumer hardware. I kicked things off in October with the open-source verdict in LLM Benchmark v4 and followed up right away with dedicated home-hardware benchmarks, where Qwen3.8 Flash-Next (IQ3_S) served on Basalt became my daily driver on my RTX 5090.

Last week I put Inkling 2 Mini head-to-head against Qwen3.8 Flash-Next. Thinking Machines Lab’s model proved to be a great pick for smaller GPUs or RAM-constrained boxes, landing a solid second place (94.3 versus Qwen3.8’s 98.4 across the 18 adversarial tasks in benchmark-v3). Earlier this week I also tested the experimental Looped Qwen3.8 Flash-Next adapter (IQ3_S at T=2 on Strata), which nudged the score up to 99.3 while cutting output tokens by 59%.

Today the Qwen team finally dropped the heavyweight everyone was waiting for: Qwen4-35B-A3B under Apache 2.0, accompanied on day zero by dynamic quantizations and a full local guide from Unsloth. Since Qwen3.8 Flash-Next was still wearing the belt as of last night, I cleared the bench and ran the full llm-opensource-benchmark suite across both my RTX 5090 and my AMD Strix Halo to see how the new generation stacks up.

What changed inside Qwen4-35B-A3B’s architecture

On paper, stepping down from Qwen3.8 Flash-Next’s 125 billion total parameters to a model named 35B-A3B might look like a size downgrade. In practice, Alibaba redesigned where every billion parameters lives:

  • Lean 35B MoE with 3B active: 40 layers arranged as 10 blocks of 3 × Gated DeltaNet + 1 × Qwen Sparse Attention, with 256 experts (8 routed + 1 shared active per token), native multimodal inputs (text, image, and video), and a native 1-million-token context window (1,048,576).
  • 20B Engram split away from the MoE: the model adds a 20-billion-parameter Per-Layer N-gram Embedding table (10 million bigrams and trigrams at layer 2). Because that table is just a direct token lookup rather than matrix math on the GPU, the entire 20B block can sit mmap-mapped on CPU or NVMe SSD at zero VRAM cost.
  • 2B MTP head baked right into the GGUF: for Multi-Token Prediction speculative decoding, every Qwen 4 GGUF embeds its ~2B MTP layer inside the main model file (0.59 GB in Q5_K on 4-bit quants), getting rid of separate draft files altogether.

Official Qwen4-35B-A3B benchmark chart comparing results against Qwen3.8-Flash-Next, Qwen3.8-27B, and Inkling 2 Mini across software engineering and reasoning tasks

Look at Alibaba’s official chart above, which lines up the exact four models I have been tracking: on DeepSWE v1.1, Qwen4-35B-A3B clears both Inkling 2 Mini (48.2) and the 125B Qwen3.8-Flash-Next (58.7) at 61.8, while also pulling ahead on NL2Repo (51.7 vs 48.1) and AutomationBench-AA (57.9 vs 55.9).

Why plain llama.cpp is already enough (no Strata or Basalt needed)

Anyone who read my earlier posts remembers the hoops we had to jump through to get fast speeds out of Qwen3.8 Flash-Next on a 32 GB RTX 5090. Because a 125B MoE in IQ3_S blows right past 32 GB of VRAM, I needed specialized engines like Strata and Basalt (plus custom .basalt pack conversions) just to park cold experts in ~42 GB of system RAM without tanking throughput.

With Qwen4-35B-A3B, that whole headache disappears. When I ran these benchmarks on release day, Strata (v0.2.25) had zero Qwen 4 support and Basalt (v0.6.2, PR #1242) only had early prep scaffolding without weight conversion, so I pointed the harness straight at mainline llama.cpp (1.1.0-dev, built for CUDA 13 sm_120).

With Qwen4-35B-A3B in 4-bit (UD-IQ4_NL), 100% of the MoE experts and the MTP head fit inside an RTX 5090’s 32 GB VRAM, making complex RAM expert offloading unnecessary.

Look at the measured telemetry from my workstation showing how Unsloth’s two-shard UD-IQ4_NL dynamic quant (33.1 GB total, 0.0474 KLD, and 1.000 on 128K RULER) fits the RTX 5090 like a glove:

  • Shard 1 (21.58 GB) 100% in VRAM: loads all 35B main MoE weights plus the 2B MTP head straight onto the GPU with zero MoE layers offloaded to system RAM.
  • Tiny KV cache at 131k context: because 30 out of 40 layers use linear Gated DeltaNet attention (constant-size recurrent state) and only 10 layers use Sparse Attention with 2 KV heads, allocating a full 131,072-token q8_0 KV cache (-np 1) takes under 1 GiB! Across the entire run, GPU memory settled at 27,190 MiB used, leaving 4.98 GiB of free VRAM for Hyprland, my browser, and desktop apps.
  • Shard 2 (11.52 GB) via lazy mmap on CPU/NVMe: holds only the 20B Engram table (per_layer_token_embd). With --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU, llama-server cold-started in 5.6 seconds (one brief 6.0 GB/s NVMe read burst to load Shard 1 onto the GPU) and touched under 2 GiB of system RAM, freeing up the ~42 GB of RAM that Qwen3.8 IQ3_S used to lock down under Basalt.
  • Built-in MTP + Preserved Thinking: with --spec-type draft-mtp --spec-draft-n-max 2, draft token acceptance stayed between 59% and 78.5% (2.17 to 2.47 tokens accepted per step). On top of that, llama-server automatically enables --reasoning-preserve for Qwen 4’s chat template, retaining <think> blocks across multi-step OpenCode tool calls and holding a 98.8% to 99.9% KV prefix cache hit rate (0.13 s time to first token on cached 32k follow-ups!).

If you want to run the exact same setup on an RTX 5090 (or swap to UD-IQ4_XS on 24 GB cards and UD-IQ3_XXS on 16 to 18 GB GPUs), here is the llama-server invocation from my bench:

llama-server \
  -m /path/to/Qwen4-35B-A3B-UD-IQ4_NL-00001-of-00002.gguf \
  --spec-type draft-mtp --spec-draft-n-max 2 \
  -ngl 999 -fa on --jinja -np 1 \
  -c 131072 -ctk q8_0 -ctv q8_0 \
  --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
  --host 127.0.0.1 --port 18082

Watch out for two practical quirks in that setup: pass -np 1 explicitly so llama-server gives the full 131k context to your coding agent instead of splitting it across auto-parallel slots, and avoid sending a bare reasoning_effort: "off" in JSON without switching to non-thinking sampling parameters (the current Jinja template throws an HTTP 500 when given that flag alone).

Speed and Canary Results on the RTX 5090

Across the speed canary (cold 4k and 32k prompts plus cached 32k follow-ups) and the hard canary (a 4-turn OpenCode session on a payment reconciler with 36 hidden tests and rule reversals buried inside a 64k-token transcript), stock llama.cpp immediately put Qwen 4 neck-and-neck in interactive speed with Qwen3.8 on Basalt:

Model / Engine (RTX 5090)Decode (tok/s)32k Prefill (tok/s)Cold 32k TTFTSystem RAMMin Free VRAMHard Canary (3 runs)
Qwen4-35B-A3B UD-IQ4_NL (llama.cpp)198 to 2398,3005.1 s (0.13 s cached)11.5 GB mmap (0 MoE)4.98 GiB100 / 100 / 100 (avg 18.7 min)
Qwen3.8 IQ3_S (Basalt v0.2.1)223 to 2318,2005.2 s~42 GB (MoE offload)4.35 GiB100 / 96* / 100 (avg 9.1 min)
Looped Qwen3.8 IQ3_S (T=2, Strata)82 to 964,19510.1 s~42 GB (MoE offload)>4.0 GiB100 / 100 / 100 (avg 16.4 min)
Inkling 2 Mini NVFP4-MX8 (Basalt v0.5.7)250 to 34615,5772.1 s0 GB6.57 GiB100 / 100 / 100 (avg 9.8 min)

* All 36 hidden tests passed on Qwen3.8 IQ3_S run 2; the 4 lost points came from the old ps aux sandbox false alarm.

On the hard canary, Qwen 4 swept 36 of 36 hidden tests across all three runs (14.5, 19.3, and 22.2 minutes). It spent roughly twice the wall time of Qwen3.8 IQ3_S on that specific canary because it wrote far more thorough explicit reasoning (204k average output tokens versus ~98k on Qwen3.8), a habit that paid off handsomely once we moved to the heavy suite.

What about the AMD Strix Halo? A clean sweep on ROCm too

Up until yesterday, running local models on the AMD Strix Halo (64 GB dedicated VRAM carveout + 31 GB GTT over LPDDR5X) meant picking your poison: Inkling 2 Mini read 32k prompts in 51.1 s yet crawled at 13.8 to 24.8 tok/s during generation because its 3x looped middle layers choked memory bandwidth; Qwen3.8 IQ3_S decoded at 47 to 51 tok/s yet took a painful 125.4 s on cold 32k prefill; and 4-bit Qwen3.8 UD-Q4_K_XL drained VRAM to zero and locked up the box completely.

Built on mainline llama.cpp with ROCm 7.2.1 (-DGGML_HIP=ON -DAMDGPU_TARGETS="gfx1151"), Qwen4-35B-A3B (UD-IQ4_NL) ended that trade-off and took first place outright on the Strix Halo as well:

Model / Engine (Strix Halo)Decode (tok/s)32k Prefill (tok/s)Cold 32k TTFTMin Free VRAMQuality Canary
Qwen4-35B-A3B UD-IQ4_NL (llama.cpp ROCm draft-mtp)44.9 to 65.2 (~34 @ 101k)974 (1,157 @ 4k)43.5 s (0.25 s cached)37.6 GiB100 (38.1 min, up to 101k ctx)
Qwen3.8 Q2_0 (Strata HIP)55 to 65371114.1 s22.1 GiB100
Qwen3.8 IQ3_XXS (Strata HIP)50 to 57347122.0 s~12 GiB100
Qwen3.8 IQ3_S (Strata HIP)47 to 51338125.4 s5.4 GiB100
Inkling 2 Mini SQ-20 (Strata 0.1.67 HIP)13.8 to 24.864251.1 s41.9 GiB100 (6.2 min)
Qwen3.8 UD-Q4_K_XL (Strata HIP)17 (4k only)137hung machine0 GiBcrashed

Look at how big a jump that is on AMD’s APU: running in 4.5-bit precision (UD-IQ4_NL), Qwen 4 used just 26.7 GiB of the 64 GiB VRAM pool (37.6 GiB free VRAM and 28.0 GiB free system RAM with the 20B Engram in host memory), prefilled 32k prompts 2.9x faster than Qwen3.8 IQ3_S (43.5 s vs 125.4 s, beating Inkling 2 Mini’s 51.1 s too and dropping to 0.25 s on cached turns), and matched 2-bit Q2_0’s peak decode speed (65.2 tok/s at 4k, 47.2 tok/s at 32k, and holding ~33 to 35 tok/s even out at 101k context!). Built-in MTP drafting (--spec-type draft-mtp --spec-draft-n-max 2) alone added +40.5% decode throughput on ROCm (62.9 tok/s vs 44.8 tok/s without drafting).

One practical note if you run this on Strix Halo (gfx1151): pass HSA_OVERRIDE_GFX_VERSION=11.5.1, GGML_HIP_NO_VMM=1, -ctkd q8_0 -ctvd q8_0, and switch from mmap to direct I/O (-lm dio) to avoid GTT mmap lockups on AMD’s unified memory architecture.

The real tiebreaker: benchmark-v3 (18 multi-language tasks)

Since every contender saturates the hard canary, I ran all 18 adversarial tasks from benchmark-v3 (Ruby, Go, Rust, and Python inside a networkless bubblewrap sandbox, zero nudges, and a hard 900-second cap per task). Qwen4-35B-A3B (UD-IQ4_NL) posted the highest score I have ever recorded from a local model:

Consolidated Metric (benchmark-v3 on 5090)Qwen4-35B-A3B (UD-IQ4_NL, llama.cpp)Looped Qwen3.8 (IQ3_S T=2, Strata)Stock Qwen3.8 (IQ3_S, Basalt)Inkling 2 Mini (NVFP4-MX8, Basalt)
Final Mean Score (18 tasks)99.9 / 10099.3 / 10098.4 / 10094.3 / 100
Perfect 100.0 Scores16 of 1815 of 1815 of 1813 of 18
900 s Timeouts0021
Total Wall Time63.0 min56.1 min76.3 min34.1 min
Total Output Tokens747.1k277.0k679.7k771.5k

Across 18 multi-language projects and challenges graded by hidden adversarial test suites, Qwen4-35B-A3B missed literally 2 individual subtests in the entire run.

Inspecting the specific tasks where the other models stumbled or hit the 15-minute ceiling makes it obvious how Qwen 4 climbed to 99.9:

Task (Language)Qwen4-35B-A3B (llama.cpp)Looped Qwen3.8 (T=2)Stock Qwen3.8 (IQ3_S)Inkling 2 MiniWhat separated them
02-edge-csv (Go)100.0 (41 s)100.0 (64 s)100.0 (101 s)100.0* (900 s TO)Qwen 4 cleared tricky Go CSV edge cases in 41 seconds with zero looping
07-security-safebox (Python)100.0 (306 s)89.1 (200 s)100.0 (243 s)89.1 (32 s)Closed every sandbox escape where both Looped Qwen3.8 and Inkling left gaps
08-perf-rangesum (Python)100.0 (31 s)100.0 (131 s)100.0* (900 s TO)100.0 (4 s)Finished in 31 s on a task where Stock Qwen3.8 burned all 15 minutes
10-latent-cve-restore (Python)100.0 (697 s)100.0 (202 s)75.0 (213 s)37.5 (13 s)Caught every latent CVE where Stock Qwen3.8 stopped at 75 and Inkling at 37.5
15-observation-median (Python)100.0 (23 s)100.0 (48 s)100.0 (71 s)78.7 (66 s)Nailed the full algorithm on the first pass in 23 seconds
16-repo-order-service (16 files)98.3 (292 s)98.3 (303 s)98.3 (221 s)98.3 (17 s)Passed 58 of 59 hidden tests (missed 1 inventory subtest)
17-marketplace-app (37 files)99.3 (691 s)99.3 (762 s)98.6 (498 s)93.1 (118 s)Passed 144 of 145 hidden tests (beating Claude Opus 4.6’s 95.2 baseline)
18-resolver-backtrack (Python)100.0 (57 s)100.0 (524 s)100.0* (900 s TO)100.0 (16 s)Solved the backtracking resolver in under a minute vs Stock Qwen3.8’s 900 s timeout

Notice how Qwen4-35B-A3B combined strengths that previously forced you to pick between two different models: it kept Stock Qwen3.8’s 100.0 on 07-security-safebox, matched Looped Qwen3.8’s 100.0 on 10-latent-cve-restore and 99.3 (144/145) on the 37-file 17-marketplace-app, eliminated Stock Qwen3.8’s two 15-minute timeouts, and wrapped up the whole suite 17% faster (63.0 min vs 76.3 min), all while running in 4-bit precision (UD-IQ4_NL) on a plain llama.cpp binary instead of squeezing 125B down into 3-bit (IQ3_S).

Is it really close to GPT-6 Luna? Cross-checking against my benchmarks

Right as the first public numbers landed this morning, this Artificial Analysis chart started making the rounds on X showing Qwen4 35B A3B at 25 points on the Intelligence Index v5.0.2, beating both Inkling 2 Mini (20) and Qwen3.8 27B (20) by 5 points and sitting just 3 points shy of GPT-6 Luna (28):

Artificial Analysis Intelligence Index v5.0.2 chart showing Qwen4 35B A3B at 25 points, right behind Mistral Large 4 (26) and GPT-6 Luna (28), and ahead of Inkling 2 Mini (20) and Qwen3.8 27B (20)

First, keep in mind why both GPT-6 Luna (OpenAI’s ultra-cheap $0.10/$0.50 mini tier) and Qwen4 35B land in that 25-to-28 band on that chart. Artificial Analysis’s composite index blends nine evaluations weighted heavily toward encyclopedic trivia and PhD-level science (AA-Omniscience, HLE-Diamond, CritPt v2, and GDP.pdf), where smaller parameter budgets always drop points on obscure memorized facts. Notice that on that exact same chart, DeepSeek V4.1 Flash (32) and MiMo-V2.6-Pro (30) both rank above GPT-6 Luna.

When we cross-check that claim against the full history of my llm-coding-benchmark, the picture for real software engineering splits into two clear takeaways:

  • On well-scoped coding and greenfield apps (v3 and v5), the tie is already real: across the two anchor tasks of the v3 ecosystem sweep (17-marketplace-app + 18-resolver-backtrack), Luna (xHigh) scored 99.7 and Qwen4-35B-A3B running locally on my 5090 just scored 99.65 (99.3 + 100.0). In Benchmark v5, GPT-6 Luna cleared every gate with zero nudges for $0.15 by writing a lean, minimal-viable Rails app (~320 lines in app/ and 143 lines of tests), the exact bracket where Qwen 4 35B thrives.
  • On unprompted sabotage vigilance (v4), GPT-6 Luna still punches way above its weight: in the combined Benchmark v4 standings (7 sprints on a growing Rails app with 14 silent sabotages injected between turns), GPT-6 Luna in Codex scored 95.5 / 100 (catching 13 of 14 traps unprompted), beating Claude Sonnet 5 (91.0), GPT-6 Sol (91.0), DeepSeek V4.1 Flash (92.5), and Qwen3.8 Flash-Next (91.0 on my 5090 and 92.5 on a B300, while dense Qwen3.8-27B stalled at 80.5). I have yet to run the 7-sprint v4 gauntlet on Qwen4-35B-A3B, though its jump from 75.0 to 100.0 on 10-latent-cve-restore (while keeping 100.0 on 07-security-safebox) strongly points to it clearing Qwen3.8’s 91.0 and landing squarely in Tier A (~92 to 95), right on Luna’s heels at zero API cost on my own GPU.

Conclusion: Qwen 3.8 retired across both machines

When a smaller, sharper model puts up 99.9 / 100 on a four-language adversarial coding suite, runs at 198 to 239 tok/s out of the box on mainline llama.cpp on day zero on the RTX 5090 (leaving 5 GiB of free VRAM and handing 42 GB of system RAM back to Linux), and simultaneously sweeps both prefill and decode on the AMD Strix Halo with 37.6 GiB of VRAM to spare, there is zero reason to look back.

Once Basalt ships native NVFP4/GSQ support for Qwen 4, raw Blackwell decode throughput will likely climb even higher. Even without waiting on custom pack tooling, stock llama.cpp already delivers everything I need with zero friction. For setups with smaller GPUs or tight storage where even the SSD Engram is inconvenient, Inkling 2 Mini remains a strong runner-up, while on my own desk the switch is already done: I retired my Qwen 3.8 container and promoted Qwen4-35B-A3B (UD-IQ4_NL + Vision at 256K context running ~204 tok/s) as my live local service on port 8080. Every raw report, GPU telemetry trace, and server config from both machines is up on llm-opensource-benchmark.