Key takeaways
On Qwen’s 12-benchmark launch chart, Qwen4-35B-A3B beats dense Qwen3.8-27B on 10 tasks (61.8 vs 42.2 on DeepSWE v1.1; 21.2 vs 5.6 on Terminal Bench 4.1) and beats the ~3x larger Qwen3.8-Flash-Next on 6 tasks, while trailing Flash-Next sharply on FrontierCode-AA 2.0 (16.1 vs 27.1) and GPQA (86.9 vs 91.7). Independent testing by Artificial Analysis ranks Qwen4-35B-A3B (xhigh) #1 of 6 open-weight models in the 40B–150B class with an Intelligence Index of 25 (median 9), yet flags severe verbosity: 175M output tokens across the suite (median 95.9M) and 14.3 minutes per task (median 5.3 minutes) despite 238 tok/s output speed. The ’35B’ name excludes 20.5B per-layer n-gram embeddings (PLE/Engram) at layer 2 and a 2B Multi-Token Prediction head, making the BF16 checkpoint 113.7 GB and FP8 60.2 GB. Because each token reads only 16 n-gram rows, llama.cpp lazy mode and Unsloth keep that table on SSD and vLLM pins it in host RAM. In Unsloth’s Dynamic v3.1 GGUF benchmarks, UD-IQ4_XS (32.0 GB download, 20.5 GB resident) holds 95.2% accuracy against 95.3% BF16, while standard mlx_lm.convert -q 4-bit on Mac suffers 8x higher KL divergence (0.3356 vs 0.0432 for Unsloth’s mixed-precision MLX 4-bit). On a single NVIDIA B300, vLLM serves FP8 with an 8 GiB NVFP4 KV cache for the full 1M context (10x smaller than 40-layer BF16 full attention) at 514 tok/s for one request; locally, Unsloth finds MTP speculative depth 2 beats depth 3.
Qwen 4 35B A3B benchmarks paint a split picture on launch day: Alibaba’s first open-weight Qwen4 model (released December 4, 2026 under Apache 2.0) beats dense Qwen 3.8 27B on 10 of 12 vendor tests and leads the 40B–150B open-weight class on the independent Artificial Analysis Intelligence Index with a score of 25 (class median: 9), yet its highest reasoning setting (xhigh) spends 175M output tokens and 14.3 minutes per task to get there—nearly triple the 5.3-minute class median. The model accepts native text, image, and video inputs across a 1,048,576-token (1M) context window.
Hardware numbers carry a similar twist. Hugging Face lists the repository at 57B parameters (113.7 GB in BF16, 60.2 GB in FP8) rather than 35B because the checkpoint includes a 20.5B per-layer n-gram embedding table at layer 2 and a 2B multi-token prediction (MTP) module. Because each token reads only 16 rows from that table, llama.cpp, Unsloth, and vLLM keep it on SSD or host RAM instead of GPU VRAM—putting 4-bit local runs inside 20.5–24.7 GB of active memory and a full 1M-token context inside 8 GiB of NVFP4 KV cache on a single datacenter GPU.
Specification Qwen4-35B-A3B verified figure Source & caveat License & release Apache 2.0, Dec 4, 2026 Official HF model card (Qwen/Qwen4-35B-A3B) Parameters 35B backbone (3B active per Qwen / ~3.8B per HF) + 20.5B n-gram PLE + 2B MTP (~57B stored) Model card, config.json, HF blog Layers & context 40 layers: 10 × (3 Gated DeltaNet + 1 QSA); 1,048,576 native tokens config.json; text, image, video in → text out Official coding / agent peak 61.8 DeepSWE v1.1; 59.0 APEX Agents v1.1; 57.9 AutomationBench-AA Qwen model card (4 AA scores, 1 Mercor score) Independent index (xhigh) 25 Intelligence Index (#1 of 6 in 40B–150B open weights); 14.3 min/task Artificial Analysis (Dec 4, 2026) Local 4-bit memory (Engram on SSD) 20.5 GB resident (UD-IQ4_XS, 32.0 GB disk) / 21.9 GB (ggml Q4_K_M, 36.0 GB disk) Unsloth & ggml-org GGUF docs QwenCloud API pricing $0.06 / $0.48 per 1M in/out (Intl.); $0.003 cached input; Batch 50% off QwenCloud docs (no free quota) Qwen 4 35B A3B benchmarks vs Qwen 3.8 27B and Flash-Next
On Alibaba’s 12-benchmark comparison chart, Qwen4-35B-A3B outperforms dense Qwen3.8-27B on 10 tasks, ties it on Chartography (27.8), and loses only on GPQA (86.9 vs 89.2). Against the roughly three-times-larger Qwen3.8-Flash-Next (125B backbone, 6B active), the scorecard splits evenly at 6–6: Qwen4-35B-A3B wins on software-engineering repos and multimodal tasks, while Flash-Next keeps a wide lead on hard coding and graduate-level reasoning.
The chart also puts Qwen4-35B-A3B head-to-head with Thinking Machines Lab’s Inkling 2 Mini (26.4B looped MoE), where Qwen4-35B-A3B leads on 11 benchmarks and ties GPQA at 86.9. Note the provenance in the model card footnotes: Qwen cites Artificial Analysis for Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1, and AutomationBench-AA, cites the Mercor leaderboard for APEX-Agents v1.1, uses its own internal Work360 suite, and evaluated Chartography with min_pixels raised to 4096×32×32.
Benchmark Category Qwen4-35B-A3B Qwen3.8-Flash-Next Qwen3.8-27B Inkling2 Mini DeepSWE v1.1 Software engineering 61.8 58.7 42.2 48.2 Terminal Bench 4.1 Terminal agent 21.2 24.2 5.6 5.6 FrontierCode-AA 2.0 Hard coding 16.1 27.1 14.9 15.1 NL2Repo Repo generation 51.7 48.1 42.3 41.8 Work360 (Qwen internal) Professional work 42.9 43.7 37.1 30.4 APEX Agents v1.1 Professional agents 59.0 61.0 47.5 50.9 AA-Briefcase v1.1 (Elo) Professional work 1486 1567 1391 1263 AutomationBench-AA Task automation 57.9 55.9 48.2 41.8 HealthBench Professional Healthcare reasoning 47.4 34.8 29.8 45.7 GPQA Graduate science 86.9 91.7 89.2 86.9 Chartography Chart understanding 27.8 24.6 27.8 22.1 VideoIndex Video understanding 52.9 51.4 51.9 44.0
Source: Alibaba Qwen Team official model card (Qwen/Qwen4-35B-A3B, Dec 4, 2026). Bold marks the highest score in each row.

Alibaba’s 12-benchmark launch chart. Qwen4-35B-A3B jumps far ahead of Qwen3.8-27B on agentic and repository tasks, but trails Qwen3.8-Flash-Next by 11.0 points on FrontierCode-AA 2.0 and 4.8 points on GPQA. Source: Qwen/Qwen4-35B-A3B model card.
For engineers comparing Qwen 35B A3B vs 27B, the trade-off is clear. Qwen4-35B-A3B replaces Qwen3.8-27B cleanly for agentic tool use, repository-level coding (+19.6 points on DeepSWE v1.1, +15.6 on Terminal Bench 4.1), and local throughput because it activates 3B–3.8B parameters per token rather than all 27B. If a workflow leans heavily on single-turn hard algorithmic coding or science recall and you already have multi-GPU hosting capacity, Qwen3.8-Flash-Next still holds an 11-point edge on FrontierCode-AA 2.0 and 4.8 points on GPQA.
Qwen 4 35B A3B Artificial Analysis score and xhigh runtime cost
Independent testing by Artificial Analysis places Qwen4-35B-A3B (xhigh reasoning effort) at 25 on its Intelligence Index—ranking #1 of 6 open-weight models in the 40B–150B parameter bucket (median: 9)—but exposes a major runtime penalty: the model generated 175M output tokens across the benchmark suite against a class median of 95.9M, pushing wall-clock latency to 14.3 minutes per task (ranked #5 of 5, versus a 5.3-minute median).
That gap shows why raw tokens-per-second numbers misrepresent real-world latency on reasoning models. Artificial Analysis measured an output speed of 238 tok/s (time to first answer token: 13.66 seconds) and an average evaluation cost of $0.55 per Intelligence Index task. Even at 238 tok/s, generating nearly twice the median token count at xhigh erases the speed advantage on end-to-end tasks.
For broader context across the current leaderboard reported on the same Artificial Analysis page, Qwen4-35B-A3B sits well below frontier closed and trillion-parameter open models—including Qwen4-Max (43), Kimi K3.1 Pro (47), Claude Opus 5.5 (59), Gemini 4 Neon (62), GPT-6.2 Astra (62), and Claude Fable 5.2 (65)—which is expected given its 3B active parameter budget. Qwen’s model card ships four reasoning_effort settings (xhigh, high default, low, and off) and recommends reserving xhigh for difficult tasks while warning that turning effort too low on multi-turn agents can trigger retries that increase total token spend.
Qwen 4 35B A3B architecture: 57B weights and 8 GiB 1M-context KV cache
Qwen4-35B-A3B stores roughly 57B parameters on disk (35B core MoE weights + 20.5B per-layer n-gram embeddings + 2B MTP head) yet fits a full 1,048,576-token context on a single datacenter GPU by combining three memory-saving mechanisms: a 3:1 Gated DeltaNet-to-sparse-attention ratio, a native NVFP4 KV cache that shrinks 1M-token cache memory to 8 GiB, and host/SSD offloading of the layer-2 n-gram table.
Every decoder layer follows the Qwen4 production architecture previewed in Qwen3.8-Flash-Next (config.json and Qwen model card):
40 layers in a 10 × (3 + 1) hybrid layout: Each block stacks three Gated DeltaNet linear-attention layers (32 value heads, 16 QK heads, head dim 128, fixed-size recurrent state that never grows with sequence length) followed by one Qwen Sparse Attention (QSA) layer (16 query heads, 2 KV heads, head dim 256, partial RoPE 0.25 with dim 64 and rope_theta = 10,000,000). Block-indexed sparse attention: In each of the 10 QSA layers, a lightweight MQA indexer (4 query heads, 1 shared key head, dim 128) compresses prefix tokens into groups of 4 and picks up to 512 groups (2,048 tokens) plus the current partial tail block. 256-expert MoE + 4-stream gated residuals: Every layer feeds a Mixture-of-Experts block with 256 routed experts (top-8 routed + 1 shared active per token, intermediate dim 512). Information travels through 4 parallel residual streams mixed by rank-256 learned gates (hc_count: 4, hc_lowrank: 256) before and after each sublayer. 20.5B Layer-2 n-gram embedding table (PLE / Engram): Layer 2 holds a 10-million-entry table of hashed bigrams and trigrams. Each token performs only 16 row lookups (8 for two-token patterns, 8 for three-token patterns), folds them through a gated projection and depthwise convolution (ple_conv_kernel_size: 4), and adds almost zero compute to the forward pass. Native vision & video encoder: A 27-layer ViT (hidden_size: 1152, patch_size: 16, spatial_merge_size: 2) encodes images and video (sampled by default at 2 fps in frame pairs) directly into the 2,048-dim text decoder.

End-to-end Qwen4-35B-A3B architecture breakdown across hybrid attention, QSA block selection, 4-stream gated residuals, layer-2 n-gram lookup, and 256-expert MoE. Source: Hugging Face & Qwen Team (note: the original graphic transposes the model label in the top-left header as “Qwen4-A3B-35B”).
The memory payoff is steepest at long context. According to vLLM’s Day-0 engineering write-up, Qwen4-35B-A3B was natively trained for an NVFP4 KV cache—about 3.6x smaller than BF16. Because only the 10 QSA layers maintain a KV cache while the 30 Gated DeltaNet layers hold fixed-size states, a full 1M-token context requires 8 GiB of KV cache instead of the 80 GiB that 40 layers of BF16 full attention would demand. Meanwhile, vLLM pins the 20.5 GB FP8 n-gram table in host RAM (leaving 39.7 GB of model weights on the GPU; BF16 splits into 72.7 GB model + 41 GB n-gram) and gathers the needed rows asynchronously over a side CUDA stream while layer 1 executes. That split contrasts sharply with pure-weight NVFP4 checkpoints such as GLM-5.3 NVFP4, where all 464 GB of MoE weights must stay resident across two GPUs.
Qwen 4 35B A3B GGUF and Unsloth benchmarks: VRAM, KLD, and Mac limits
For local users, Qwen 4 35B A3B GGUF downloads look alarming—32 GB to 36 GB for a 4-bit file—until you subtract the SSD-resident Engram table: under llama.cpp’s default –lazy-mode auto or Unsloth’s –load-mode mmap –lazy-mode on -ot per_layer_token_embd=CPU, a 4-bit build needs 20.5–24.7 GB of RAM/VRAM (fitting a 24 GB RTX 4090/5090 or 24–32 GB Mac), and a 3-bit build (UD-IQ3_XXS) starts in 17.2 GB (18 GB total machine memory with short context).
Both ggml-org and Unsloth published detailed memory and quality numbers on launch day. In ggml-org/Qwen4-35B-A3B-GGUF, lazy mode keeps the 14.1 GB–21.8 GB n-gram table on disk, putting Q4_K_M at 36.0 GB disk / 21.9 GB RAM (32 GB Mac), Q6_K at 51.0 GB / 29.2 GB (48 GB Mac), and Q8_0 at 59.4 GB / 37.6 GB (64 GB Mac). Unsloth’s Dynamic v3.1 GGUFs embed the optional MTP head directly in every quant and preserve sensitive tensors (hc_* hyper-connections, linear-attention gates) at higher precision.
Unsloth Dynamic v3.1 Quant Download (both files) Resident RAM/VRAM (Engram on SSD) Mean KLD (11 sets, lower better) Top-1 Agreement 4-Bench Accuracy (BF16: 95.3%) BFCL v3 Tool Calling UD-IQ1_S 21.3 GB 9.8 GB 0.3008 80.10% 89.6% (-5.8) 0.818 UD-IQ2_XS 24.5 GB 13.0 GB 0.1616 85.42% 93.8% (-1.6) 0.875 UD-IQ3_XXS 28.7 GB 17.2 GB 0.0760 89.96% 94.8% (-0.5) 0.868 UD-IQ4_XS 32.0 GB 20.5 GB 0.0532 91.83% 95.2% (-0.1) 0.868 UD-Q4_K_XL 36.2 GB 24.7 GB 0.0375 93.20% 95.0% (-0.3) 0.863 UD-Q6_K_XL 52.2 GB 30.5 GB 0.0247 94.52% 94.9% (-0.4) — UD-Q8_K_XL 62.3 GB 40.5 GB 0.0171 95.49% 94.8% (-0.5) 0.870
Source: Unsloth documentation (unsloth.ai/docs/models/qwen4, Dec 4, 2026). Accuracy covers 300 questions across GSM8K, MATH-500, CRUXEval-O, and MMLU-Pro (4 samples each, thinking on); BFCL v3 AST covers 200 items × 2 on A100 80GB. On RULER-style 32K/64K/128K needle tests (thinking off), UD-Q3_K_XL, UD-IQ4_XS, UD-Q4_K_XL, and UD-Q8_K_XL all scored 1.000; on 300 Vision items (ChartQA, DocVQA, TextVQA), UD-Q4_K_XL scored 0.880 vs 0.873 for UD-Q8_K_XL.

Mean KL divergence against BF16 plotted by resident memory footprint (excluding the SSD-offloaded Engram file). The knee sits cleanly between UD-IQ4_XS (20.5 GB, KLD 0.0532) and UD-Q4_K_XL (24.7 GB, KLD 0.0375). Source: Unsloth Qwen4 Documentation.
Three practical traps stand out in Unsloth’s measurements:
Avoid standard mlx_lm.convert -q 4-bit on Apple Silicon: Unsloth measured a default mlx_lm.convert -q 4-bit build (31.3 GB) at 0.3356 Mean KLD and 79.44% Top-1 agreement (+21.04% perplexity vs BF16), because uniform 4-bit quantization damages Qwen4’s sensitive attention and hyper-connection weights. Unsloth’s mixed-precision unsloth/Qwen4-35B-A3B-MLX-4bit (34.0 GB, keeping non-expert layers in 8-bit and the router in BF16; text-only without vision or MTP) drops KLD by 87% to 0.0432 (92.80% Top-1) and runs at 3,977 tok/s prefill / 69 tok/s decode on a 128 GB MacBook Pro M5 Max (4K prompt, 36.2 GB peak RAM). Match the Engram table to your quant: Because Unsloth ships the Engram table as a separate swappable file (–ple), upgrading UD-Q4_K_XL’s Engram from IQ4_NL (11.52 GB) to Q8_0 (21.76 GB) trims KLD by ~6% (0.0375 → 0.0352), while BF16 (40.96 GB) gives zero additional gain (still 0.0352). Downgrading UD-Q8_K_XL’s Engram to IQ4_NL raises KLD by 33%. Set anti-loop flags below 3-bit and enable MoE GPU cache on spill: Unsloth reports that UD-IQ1_S, UD-IQ1_M, and UD-IQ2_XXS can loop without min_p=0.01 and presence_penalty=1.5. When weights spill past GPU VRAM into system RAM, Unsloth’s –moe-cache-mib GPU cache nearly doubles decode speed: 131–138 vs 69–72 tok/s on 24 GB VRAM, 127 vs 70 tok/s on 16 GB, and 95 vs 53 tok/s on 8 GB. Independently, the developer behind the beta Abyss engine measured UD-Q4_K_XL at 220.9 tok/s (~25 GB VRAM) and ggml-org Q4_K_M at 222.0 tok/s (~23 GB VRAM) on an RTX 5090 (4K prompt + 512 tokens, text-only; 194.7 tok/s under a simulated 16 GB VRAM cap).

Standard mlx_lm.convert -q 4-bit quantization degrades sharply on Qwen4-35B-A3B (0.3356 KLD, grey square), whereas Unsloth’s mixed-precision MLX 4-bit (0.0432 KLD, red star) matches Dynamic GGUF quality. Source: Unsloth Qwen4 Documentation.
Qwen 4 35B A3B vLLM setup, MTP depth 2, and API pricing
To deploy Qwen4-35B-A3B cleanly, pick one of three paths based on your hardware: vLLM (vllm/vllm-openai:qwen4) with FP8 weights and NVFP4 KV cache for single-GPU datacenter serving up to 514 tok/s on NVIDIA B300; llama.cpp / Unsloth with –spec-type draft-mtp –spec-draft-n-max 2 for local GPUs and Macs (where draft depth 2 beats depth 3); or QwenCloud API at $0.06 input / $0.48 output per million tokens when you want zero local memory overhead.
Local MTP speculative decoding: why depth 2 beats depth 3
Every Qwen4-35B-A3B checkpoint includes a 1-layer Multi-Token Prediction (MTP) drafter, and Hugging Face reported a 22% speedup on Apple Silicon M5 using Q4 and 3 draft tokens. Unsloth’s broader consumer sweep (UD-Q4_K_XL, greedy, thinking off, mainline llama.cpp) narrows that advice to –spec-draft-n-max 2: acceptance rates drop from ~0.89 at depth 1 to 0.68 at depth 2 and 0.48–0.51 at depth 3, making depths 3 and 4 slower than depth 2 on local machines.
RTX 5090 (32 GB): Baseline 174.9 tok/s (code) / 168.6 (prose) rises to 224.0 tok/s (1.28x) / 205.3 (1.22x) at n-max 1, then dips slightly to 221.2 / 174.9 at n-max 3. Mac M5 Max (128 GB): Baseline 91.2 tok/s rises to 1.40x on code and 1.21x on prose at depth 2 (versus 1.30x / 1.05x at n-max 3). Recommended llama.cpp command (thinking mode, Engram on SSD, MTP depth 2): ./llama.cpp/llama-server \
-hf unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_XL \
–spec-type draft-mtp –spec-draft-n-max 2 \
–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
For non-thinking mode (–reasoning off), switch to temp=0.7, top_p=0.80, top_k=20, and presence_penalty=1.5 per Qwen’s model card.
Datacenter vLLM serving and zero-mismatch RL
At 3B active parameters, a 4-token verify + 3-token draft step on an NVIDIA B300 takes only ~4 ms, exposing CPU scheduling, kernel launch gaps, and sampling overhead. In vLLM’s Day-0 release, three fixes—replaying MTP steps 2 and 3 in one CUDA graph via GPU-side indexer metadata updates, parallelizing top-k/top-p sampling masks across SMs, and overlapping gated-residual and Gated DeltaNet kernels with programmatic dependent launch (PDL)—deliver 514 tok/s per request at concurrency 1 (P50 TPOT 1.91 ms, TTFT 46 ms, 2.25 accepted tokens/step) and 336 tok/s per request at concurrency 4 (TPOT 2.81 ms, TTFT 62 ms) on SPEED-Bench prompts.
vLLM and Inferact also verified Day-0 zero-mismatch RL on NVIDIA GB200 (BF16 + NVFP4 KV + FP8 indexer + MTP-3 + prefix caching + CUDA graphs): without VLLM_BATCH_INVARIANT=1, 97.8% of tokens (4,005 of 4,096, max_abs = 2.84) diverged between rollout and the Megatron-LM (mLite) trainer; enabling batch invariance eliminated all mismatches (0 / 682,536 bits across 10 DAPO-Math-17K steps) while keeping 92.7% of standard RL rollout throughput (6,322 vs 6,821 tok/s at c=32).
Hosted API pricing and when not to self-host
On QwenCloud (International scope), qwen4-35b-a3b bills $0.06 per 1M input tokens, $0.48 per 1M output tokens (Mainland China: $0.057 / $0.452, or ¥0.4 / ¥2.4), $0.003 per 1M cached input tokens (implicit or explicit hit), and 50% off for file-based Batch jobs (capped at 256K context per request). Note that QwenCloud offers no free quota for this model, and Artificial Analysis listed a lower $0.36/M output rate on its December 4 snapshot than QwenCloud’s current $0.48 international table. If you only run occasional long-context or xhigh agent runs—or want to compare Qwen4-35B-A3B against hosted rivals like Amazon Ergo or GLM for coding before reserving 32–36 GB of SSD and 24 GB of memory—calling the API first avoids the local download and tuning overhead.
References Alibaba Qwen Team, Qwen/Qwen4-35B-A3B Model Card & config.json (December 4, 2026): https://huggingface.co/Qwen/Qwen4-35B-A3B vLLM Team & Inferact, Qwen4-35B-A3B on vLLM: Day-0 Support (December 4, 2026): https://vllm.ai/blog/2026-12-04-qwen4-35b-a3b Unsloth, Qwen4 35B-A3B: How to Run Locally (Dynamic v3.1 GGUF, Engram, MLX & MTP Benchmarks) (December 4, 2026): https://unsloth.ai/docs/models/qwen4 Artificial Analysis, Qwen4 35B A3B: Intelligence, Performance & Price Analysis (December 4, 2026): https://artificialanalysis.ai/models/qwen4-35b-a3b Hugging Face & Qwen Team, Welcome Qwen 4: Cutting-edge intelligence on-device (December 4, 2026): https://huggingface.co/blog/qwen4