Qwen4-35B-A3B: 3B Active, 1M Context, $0.36 per Million Output Tokens, Yet Its 37GB 4-Bit Build Outgrows a 32GB RTX 5090
- Get link
- X
- Other Apps
Local AI · Analysis
Alibaba Qwen's Apache-2.0 mixture-of-experts model runs 3B parameters per token across a native 1,048,576-token window, yet its 57B total weights push the Ollama 4-bit download to 37GB, past a single 32GB RTX 5090.
By The Benchmarque Staff · · Updated Dec 6, 2026 · 6 min read
Specifications come from Qwen's model card and Hugging Face's Dec 4, 2026 launch post; benchmark scores come from Qwen's official chart; quantized file sizes from Ollama; API pricing from Qwen Cloud; GPU street prices from Tom's Hardware's tracker (Dec 3, 2026). Win tallies, percentages and token breakevens are calculated from those figures.
Image: Alibaba Qwen
Qwen4-35B-A3B in 4 cards
Hosted output price
$0.36/M
$0.06 input and $0.003 cached input (95% discount) with 128K to 256K output.
Native context
1.05M
1,048,576 tokens across text, image and video under an Apache-2.0 license.
Benchmark split
10-1-1
Beats dense Qwen3.8-27B on 10 of 12 tests; splits 6-6 with Qwen3.8-Flash-Next.
Ollama 4-bit size
37GB
57B total weights outgrow a 32GB RTX 5090 before KV cache enters VRAM.
Qwen4-35B-A3B activates just 3B parameters per token across a native 1,048,576-token window at $0.36 per million output tokens on Qwen Cloud, yet all 57B stored parameters must sit in memory. That pushes the default Ollama 4-bit build to 37GB, leaving a $6,499 32GB RTX 5090 unable to hold the weights alone. On Qwen's 12 published tests, the Apache-2.0 model beats dense Qwen3.8-27B in 10 benchmarks and splits 6-6 with Qwen3.8-Flash-Next.
What sits inside Qwen4-35B-A3B?
Only 5.3% of the model runs on each token, yet a 20B n-gram embedding table and 2B multi-token prediction heads expand the weight file to 57B parameters.
| Specification | Qwen4-35B-A3B detail |
|---|---|
| Parameters | 35B main, 3B active per token, plus 20B n-gram embedding and 2B multi-token prediction (57B total weights) |
| Layers and experts | 40 layers; 256 experts with 8 routed plus 1 shared active |
| Attention | 3 of every 4 layers use Gated DeltaNet (linear attention); every 4th uses Qwen Sparse Attention |
| Context window | 1,048,576 tokens native |
| Input modalities | Text, image and video |
| License | Apache-2.0 |
| Published formats | BF16, FP8, GGUF (Q4_K_M, Q6_K, Q8_0), MLX |
Hugging Face's Dec 4 launch post cites roughly 3.8B active and 56B total parameters; Qwen's model card states 3B active and 57B total. Under either tally, per-token compute tracks a small model while RAM sizing tracks a 57B file.
How does Qwen4-35B-A3B score across Qwen's 12 benchmarks?
Qwen4 splits 6 wins and 6 losses against Qwen3.8-Flash-Next while winning 10 of 12 comparisons against the dense Qwen3.8-27B.
| Test | 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 | 21.2 | 24.2 | 5.6 | 5.6 |
| FrontierCode-AA 2.0 | 16.1 | 27.1 | 14.9 | 15.1 |
| NL2Repo | 51.7 | 48.1 | 42.3 | 41.8 |
| Work360 | 42.9 | 43.7 | 37.1 | 30.4 |
| APEX Agents v1.1 | 59.0 | 61.0 | 47.5 | 50.9 |
| AA-Briefcase v1.1 (Elo) | 1486 | 1567 | 1391 | 1263 |
| AutomationBench-AA | 57.9 | 55.9 | 48.2 | 41.8 |
| HealthBench Professional | 47.4 | 34.8 | 29.8 | 45.7 |
| GPQA | 86.9 | 91.7 | 89.2 | 86.9 |
| Chartography | 27.8 | 24.6 | 27.8 | 22.1 |
| VideoIndex | 52.9 | 51.4 | 51.9 | 44.0 |
Source: Qwen official chart (Dec 4, 2026). Gaps vs. Flash-Next span -11.0 points (-40.6%) on FrontierCode-AA 2.0 to +12.6 points on HealthBench Professional. Against dense Qwen3.8-27B, Qwen4 posts 10 wins, 1 tie (Chartography) and 1 loss (GPQA), scoring 3.79x higher on Terminal Bench 4.1. Qwen did not disclose Qwen3.8-Flash-Next's parameter count.
How much memory and serving speed did Qwen publish?
Even at 4-bit quantization, the weights require 36GB to 37GB before KV cache, putting single-GPU local inference into 48GB workstation or 64GB unified-memory territory.
| Build | Download size | Single-machine memory target |
|---|---|---|
| BF16 (full precision) | 114GB | One H200 141GB (Hugging Face test setup) |
| Q4_K_M (Ollama default) | 37GB | Too large for a 32GB RTX 5090 or 24GB RTX 4090 alone; needs 48GB+ VRAM or 64GB unified RAM |
| NVFP4 (MLX, Apple) | 36GB | Unified-memory Mac with headroom above 36GB for KV cache |
File sizes come from Ollama's library page (Dec 5, 2026); Hugging Face did not list ggml-org GGUF sizes. Published speed figures: vLLM on 1x H200 (BF16, MTP 2 draft tokens) hits ~330 tok/s single-stream (~90 ms TTFT) and ~2,660 output tok/s at 64 concurrent requests; SGLang on the same H200 hits ~260 tok/s (~80 ms TTFT) and ~2,180 output tok/s. On Apple M5 (llama.cpp Q4, MTP 3 draft tokens), generation is 22% faster than without MTP (absolute speed unpublished). No desktop RTX speed tests were announced.
Does local GPU hardware beat the $0.36/M API?
At Dec 3 street prices, one RTX 5090 buys 18.05 billion hosted output tokens on Qwen Cloud while still falling 5GB short of holding Q4_K_M in VRAM.
| Option | Verified price | Capacity and API equivalent |
|---|---|---|
| Qwen Cloud API | $0.36/M out | $0.06/M input, $0.003/M cached input; full model, 128K output (256K thinking) |
| GeForce RTX 5090 (32GB) | $6,499 street | Launch MSRP $1,999; 5GB short of 37GB Q4_K_M; street cost equals 18.05B API output tokens |
| GeForce RTX 4090 (24GB) | $4,799 street | 13GB short of 37GB Q4_K_M; street cost equals 13.33B API output tokens |
GPU street prices from Tom's Hardware tracker (Dec 3, 2026); API rates from Qwen Cloud (Dec 5, 2026). Even at the $1,999 RTX 5090 launch MSRP, hardware capex equals 5.55 billion hosted output tokens before electricity.
The verdict
API and agent builders: test Qwen4-35B-A3B on Qwen Cloud at $0.36/M output ($0.003/M cached input) when workflows center on repository editing, automation or clinical reasoning, where it posts 61.8 DeepSWE and 47.4 HealthBench scores.
Single-GPU desktop owners (24GB to 32GB): skip buying a flagship consumer card for this model; size local hardware by the 37GB 4-bit download and target 48GB+ VRAM or 64GB unified-memory systems instead.
Algorithmic coding pipelines: verify FrontierCode-style accuracy before migrating from Qwen3.8-Flash-Next, which outscores Qwen4-35B-A3B by 11.0 points on FrontierCode-AA 2.0.
The catch: every benchmark and speed metric comes from Qwen or Hugging Face's launch post, with zero independent desktop RTX or Apple Silicon absolute throughput numbers published yet.
Quick answers
Why is a 35B model 37GB at 4-bit quantization?
Qwen4-35B-A3B stores 57B total parameters in its checkpoint: the 35B main backbone plus a 20B n-gram embedding table and 2B multi-token prediction heads. Although only 3B parameters run per token, every stored weight must load into memory, bringing the Ollama Q4_K_M build to 37GB.
Can a single 32GB RTX 5090 run Qwen4-35B-A3B at 4-bit entirely in VRAM?
No. The default Ollama Q4_K_M download is 37GB before KV cache and runtime overhead, exceeding 32GB VRAM by at least 5GB. Running locally without offloading requires a 48GB-class GPU setup or a machine with 64GB or more unified memory.
How much does Qwen4-35B-A3B cost on Qwen Cloud?
Qwen Cloud charges $0.06 per million input tokens, $0.36 per million output tokens and $0.003 per million cached input tokens (a 95% cache discount), supporting up to 128K output tokens or 256K tokens in thinking mode.
How does Qwen4-35B-A3B compare with Qwen3.8-27B and Qwen3.8-Flash-Next?
On Qwen's 12 published evaluations, Qwen4-35B-A3B beats the dense Qwen3.8-27B in 10 tests, ties 1 (Chartography) and loses 1 (GPQA), including a 3.79x gain on Terminal Bench 4.1 (21.2 vs. 5.6). Against Qwen3.8-Flash-Next, it splits 6 wins and 6 losses.
Compare local VRAM sizing and frontier API rates
Compare AI models and GPU value on The Benchmarque
Read next: Qwen4-35B-A3B llama.cpp GPU Setup · MiniMax M4 Pricing and 2.74T Weights · Local AI GPU Memory Guide
Building open-weight inference hardware or cloud endpoints? Submit primary benchmarks or sponsorship inquiries at thebenchmarque.com/advertise.
Sources
- Qwen: Qwen4-35B-A3B model card huggingface.co
- Qwen: Qwen4-35B-A3B benchmark results (chart) aliyuncs.com
- Hugging Face: Qwen4 launch post (Dec 4, 2026) huggingface.co
- Qwen Cloud: qwen4-35b-a3b pricing and limits qwencloud.com
- Ollama: qwen4 tags and download sizes ollama.com
- Tom's Hardware: lowest GPU prices tracker tomshardware.com
Comments
Post a Comment