Why it matters: disk-backed n-gram tables change the VRAM math
Qwen4-35B-A3B (Apache-2.0, 40 layers, 256 experts with 8 routed plus 1 shared, 1,048,576-token native context) carries 35B Mixture-of-Experts weights with 3B activated parameters (Hugging Face’s blog cites ~3.8B active and ~56B total), plus a 20B per-layer n-gram embedding (PLE) table and a 2B multi-token prediction (MTP) layer for 57B total parameters. On paper, a 32.9GB Q4_K_M GGUF looks too heavy for consumer GPUs under 32GB.
In practice, llama.cpp v1.1.1 (PR #33626, Dec 4) changes how that file maps to memory. Under default --lazy-mode auto, tensors larger than 4 GiB stream on demand from storage instead of sitting permanently in RAM, and Hugging Face notes each generated token reads only 16 rows of the PLE table. That architecture shifts the bottleneck toward NVMe SSD throughput and smart MoE CPU offloading, breaking the old rule that local inference demands a $4,799 to $6,499 flagship GPU.
Official ggml-org files vs. Ollama sizes
File (ggml-org/Qwen4-35B-A3B-GGUF) |
Total size | Quantization and packaging notes |
|---|---|---|
| Q2_K (3 shards: 10.9MB + 23.5GB + 4.39GB) | 27.9GB | Routed gate/up at Q2_K; routed down kept at Q4_K; PLE at IQ4_NL |
| Q4_K_M (3 shards: 10.9MB + 28.0GB + 4.90GB) | 32.9GB | No imatrix; PLE at IQ4_NL (4.1GB smaller than Ollama’s 37GB Q4_K_M) |
| Q8_0 (3 shards: 10.9MB + 42.6GB + 6.37GB) | 49.0GB | No imatrix; PLE at IQ4_NL |
| MTP sidecar (Q4_0 / Q8_0 / BF16) | 1.09GB / 2.01GB / 3.76GB | Single MTP layer for speculative decoding (+34.0GB total with Q4_K_M) |
Vision projector (mmproj, Q8_0) |
614MB | Required only for image and video inputs |
Hugging Face’s launch blog cites commands for a Q6_K build, yet no Q6_K file existed in the ggml-org repository when inspected on Dec 5, 2026. Neither Qwen nor ggml-org publishes the exact byte share occupied by the 20B IQ4_NL PLE table inside the 32.9GB archive, so true resident VRAM/RAM consumption remains unpublished.
Key llama.cpp flags for 8GB to 32GB cards
Hugging Face’s reference launch command (llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3) requires llama.cpp v1.1.1 or newer. On discrete GPUs, six documented flags control memory fit and stability:
| Flag | Documented behavior (tools/server/README.md) |
Practical rule for Qwen4-35B-A3B |
|---|---|---|
-cmoe, --cpu-moe |
Keeps all MoE expert weights in system RAM | Default starting point on 8GB to 16GB cards; leaves attention and shared layers on GPU |
-ncmoe N, --n-cpu-moe N |
Offloads MoE weights for the first N layers to CPU | Tune N (out of 40 layers) upward on 24GB and 32GB cards until load succeeds |
-ot, --override-tensor |
Pins matching tensor patterns to a chosen buffer | Issue #33673 reporter pins PLE via -ot per_layer_token_embd=CPU |
--spec-type draft-mtp, --spec-draft-n-max N |
Speculative decoding via MTP sidecar (N draft tokens) | Use N=3 on Apple Silicon; cap at N=1 on CUDA until #33673 closes |
-np, --parallel N |
Server slot count (default -1 auto) |
Set 1 for solo use; CUDA crashes occurred on both 2-slot and 1-slot setups |
-ctk, -ctv |
KV cache precision (default f16; accepts q8_0, q4_0) |
Quantize KV cache when pushing long contexts on 8GB to 16GB cards |
MTP speedup vs. the open CUDA crash (issue #33673)
Hugging Face measured a 22% generation speedup with 3 MTP draft tokens on an Apple Silicon M5 running Q4, without publishing raw tokens per second. On NVIDIA CUDA builds, GitHub issue #33673 (opened Dec 4) documents CUDA error: an illegal memory access inside llama-server whenever draft depth reaches 2 or higher. Two Dec 5 MTP builds (b13004 PR #33702 and b13005 PR #33778) shipped without mentioning or resolving the crash.
User-reported telemetry inside issue #33673 (2 slots, ~8K context, 3 CUDA GPUs) shows why capping draft depth at 1 captures almost all of the gain safely:
| MTP setting (issue #33673 user setup) | Reported generation speed | Draft acceptance | Stability outcome |
|---|---|---|---|
| No MTP | 84.7 / 76.3 tok/s | Baseline (no draft) | Stable |
| MTP, 1 draft token | 101.5 / 88.7 tok/s (+16% to +20%) | 0.909 / 0.924 | Stable |
| MTP, 3 draft tokens | 105.0 / 110.0 tok/s | 0.743 / 0.620 | Crashed in round 3 |
Additional Windows RTX 4090 reports (--parallel 1) in the same thread recorded 7 crashes in 29 requests at depth 3 versus 0 crashes in 16 requests at depth 1, alongside ~183 tok/s at 87% acceptance on image captioning at depth 1. A proposed src/llama-context.cpp synchronization patch held across 24 of 24 turns in user testing but remained unmerged as of Dec 5.
GPU VRAM pricing cliff and Qwen Cloud API breakeven math
Street GPU prices from Tom’s Hardware’s Dec 3, 2026 US in-stock tracker expose a 4.0x per-GB pricing cliff above 16GB. Pairing hardware street prices against Qwen Cloud’s official Qwen4-35B-A3B API list rate ($0.06/M input, $0.36/M output, $0.003/M cache read) reveals how many tokens local iron must generate purely to amortize the card sticker (excluding host PC and power):
| VRAM tier | Cheapest in-stock GPU (Dec 3) | Street price | Price per GB | NVIDIA equivalent (price, $/GB) | Output tokens to break even vs. Qwen Cloud ($0.36/M) |
|---|---|---|---|---|---|
| 8GB | Intel Arc A750 | $349 | $43.63 | RTX 5050 ($419, $52.38/GB) | 0.97B (Arc) / 1.16B (RTX) |
| 12GB | Intel Arc B580 | $616 | $51.33 | RTX 5070 ($799, $66.58/GB) | 1.71B (Arc) / 2.22B (RTX) |
| 16GB | Intel Arc A770 16GB | $721 | $45.06 | RTX 5060 Ti 16GB ($799, $49.94/GB) | 2.00B (Arc) / 2.22B (RTX) |
| 24GB | GeForce RTX 4090 | $4,799 | $199.96 | RTX 4090 ($4,799, $199.96/GB) | 13.33B output tokens |
| 32GB | GeForce RTX 5090 | $6,499 | $203.09 | RTX 5090 ($6,499, $203.09/GB) | 18.05B output tokens |
The Radeon RX 7900 XTX (24GB) was out of stock in the Dec 3 tracker; the lowest-priced 16GB Radeon was the RX 9060 XT 16GB at $739 ($46.19/GB). Moving from an RTX 5060 Ti 16GB ($799) to an RTX 4090 ($4,799) adds $4,000 (+501%), and stepping to an RTX 5090 ($6,499) adds $5,700 (+713%). Even on a 4:1 blended workload (4M input + 1M output = $0.60 per 5M tokens, or $0.12/M blended), $6,499 buys 54.16 billion tokens on Qwen Cloud. Unless privacy, air-gapped compliance or local latency drives the purchase, high-VRAM consumer cards cannot pay back on token cost alone, making a $721 to $799 16GB card with --cpu-moe (or a unified-memory mini PC; see running a 120B model at home) the rational local baseline.
What is verified vs. what remains unverified
- Verified from primary docs: Qwen4-35B-A3B Apache-2.0 architecture (40 layers, 256 experts, 1M context), exact
ggml-orgGGUF shard totals (Q2_K 27.9GB, Q4_K_M 32.9GB, Q8_0 49.0GB, MTP sidecars 1.09/2.01/3.76GB,mmproj614MB, absence of Q6_K on Dec 5), Ollama’s 37GB Q4_K_M size, llama.cpp v1.1.1 (PR #33626) and Dec 5 buildsb13004/b13005,--lazy-mode auto(>4 GiB threshold), Hugging Face’s +22% M5 MTP measurement, Qwen Cloud’s $0.06/$0.36 list rates, and Tom’s Hardware’s Dec 3 GPU street prices. - User-reported in GitHub issue #33673: CUDA illegal memory access at draft depth >=2, 3-GPU 2-slot speeds (84.7/76.3 to 101.5/88.7 at depth 1; crash at depth 3), Windows RTX 4090 crash counts (7/29 at depth 3, 0/16 at depth 1) and ~183 tok/s captioning speed, and 24/24 stability with an unmerged
src/llama-context.cppfix. - Unpublished or unverified: Exact GB size of the 20B PLE table inside the 32.9GB Q4_K_M file, official NVIDIA RTX tokens-per-second figures from Qwen or llama.cpp, and Qwen4 performance on Vulkan, SYCL or HIP backends (Intel Arc and Radeon cards).
The verdict
For local Qwen4-35B-A3B inference, pair llama.cpp v1.1.1+ with the 32.9GB ggml-org Q4_K_M file, the 1.09GB Q4_0 MTP sidecar, a fast NVMe SSD, ample system RAM and a 16GB GPU ($721 to $799) running --cpu-moe. On NVIDIA hardware, hold --spec-draft-n-max 1 to capture an apparent 16% to 20% throughput lift while dodging issue #33673 crashes. Skip $4,799 to $6,499 consumer GPUs strictly for this model when Qwen Cloud serves 13.3 billion to 18.1 billion output tokens for the same capital. Compare local inference hardware efficiency on The Benchmarque Benchmarks Leaderboard or explore multi-box pooling in splitting models across two mini PCs with llama.cpp RPC.
The catch: no official tokens-per-second benchmarks exist for consumer RTX, Radeon or Arc cards on Qwen4-35B-A3B, and true resident memory depends on an unpublished PLE table byte split.
Building local inference engines or GPU hardware benchmarks? Submit reproducible throughput telemetry or sponsorship inquiries at thebenchmarque.com/advertise.