Today's open-weight release Qwen4-35B-A3B (Qwen/Qwen4-35B-A3B, Apache 2.0) packs frontier-class reasoning and agentic coding scores into a 35B core Mixture-of-Experts model that activates only 3B parameters per token.
Before you pull the weights, though, there is a critical hardware catch in the 56.8B total safetensors checkpoint: alongside the 35B MoE core, Qwen4 ships a 20B host-offloadable n-gram embedding table (at layer 2) and a 2B Multi-Token Prediction (MTP) head.
Here is the exact VRAM, host RAM, and KV-cache math for running Qwen4-35B-A3B across 16 GB–32 GB GPUs, Apple Silicon Macs, and workstation hardware.
1. Architecture & Published Benchmarks (Qwen/Qwen4-35B-A3B)
| Component / Spec | Value | Hardware Impact |
|---|---|---|
| Core MoE Parameters | 35B total / 3B active per token | Decode compute tracks a ~3B dense model |
| Expert Routing | 256 experts (8 routed + 1 shared) | All 35B core weights must reside in VRAM/RAM |
| Attention Layout | Hybrid Gated DeltaNet + Qwen Sparse Attention | Slashes KV-cache growth to ~0.021 GB per 1K tokens |
| Native Context Window | 1,048,576 tokens (1M) | Long-context runs stay memory-efficient |
| N-Gram Embedding Table | 20B parameters (layer 2) | Host-offloadable to system RAM (bigram/trigram lookup) |
| MTP Speculative Head | 2B parameters | Optional for draft-token acceleration |
| Total Safetensors Tree | 56.8B parameters (Apache 2.0) | Leave host RAM / NVMe headroom beyond core VRAM |
Official published scores on Qwen/Qwen4-35B-A3B:
- GPQA:
86.9% - DeepSWE v1.1:
61.8% - APEX Agents v1.1:
59.0% - AutomationBench-AA:
57.9% - NL2Repo:
51.7%
2. Precision & Memory Sizing: Q4 vs Q8 vs FP16/BF16
Unlike dense 32B–70B models, Qwen4's 35B MoE core separates neatly from the 20B host-offloadable n-gram lookup table. At Q4 (~4.8 bpw) and 8K context, the core model requires ~22.7 GB total memory (21.0 GB weights + 0.2 GB cache allowance + 1.5 GB runtime buffers):
| Precision | Core 35B Memory Budget (8K) | Recommended Hardware Tier |
|---|---|---|
| Q4 (~4.8 bpw) | ~22.7 GB | All on GPU: RTX 3090 / 4090 (24 GB), RTX 5090 (32 GB), Mac 32 GB+ Unified |
| Q4 (on 8–16 GB GPU) | ~22.7 GB (hybrid split) | RTX 3070 Ti (8 GB), RTX 3060 (12 GB), RTX 4060 Ti (16 GB) — spills to system RAM |
| Q8 (~8.5 bpw) | ~39 GB | Mac Studio / MacBook Pro 48–64 GB+, 2× 24 GB GPUs, or 48 GB+ workstation |
| FP16 / BF16 (16-bit) | ~72 GB+ | Mac 96 GB / 128 GB Unified, RTX PRO 6000 (96 GB), or DGX Spark (128 GB) |
Don't Forget the 20B N-Gram Table in System RAM
Because the 20B bigram/trigram embedding table at layer 2 is designed as an offloadable lookup table, you do not need to cram all 56.8B parameters into discrete GPU VRAM. However, if your runtime loads the full 56.8B safetensors tree (core + 20B n-gram + 2B MTP):
- On a 24 GB GPU desktop, pair the GPU with 32 GB–64 GB of host DDR4/DDR5 RAM (and fast Gen4 NVMe swap/mmap headroom) so the n-gram table and OS don't compete for memory.
- On Apple Silicon Unified Memory, GPU and CPU share one pool—a 32 GB Mac fits the quantized 35B core tightly, while 64 GB–128 GB Unified Memory gives comfortable room for Q8/BF16 weights, long context, and the offloaded embedding table.
You can check GPU-by-GPU placement and exact breakdowns on the Qwen4-35B-A3B Hardware Requirements Guide or compare systems side-by-side in the Local AI Hardware Benchmarks.
3. Why 1M Context Works Better Here: Hybrid Gated DeltaNet + Sparse Attention
Traditional 32B dense models blow through 24 GB VRAM as soon as you push past 16K–32K context because full-attention KV caches scale rapidly. Qwen4's hybrid Gated DeltaNet + Qwen Sparse Attention keeps KV-cache growth around ~0.021 GB per 1K tokens:
| Context Length | Cache Allowance | Total Q4 Core Budget | 24 GB GPU (RTX 3090 / 4090) Placement | RTX 5090 (32 GB) Placement |
|---|---|---|---|---|
| 8K tokens | 0.2 GB | 22.7 GB | All on GPU | All on GPU (~9 GB headroom) |
| 32K tokens | 0.7 GB | 23.2 GB | All on GPU (tight with display OS) | All on GPU (~8.5 GB headroom) |
| 64K tokens | 1.3 GB | 23.8 GB | Spills to system RAM if OS reserves >200 MB | All on GPU (~8 GB headroom) |
| 128K+ → 1M tokens | ~2.7 GB → ~21 GB+ | ~25.2 GB → ~43+ GB | Hybrid GPU + host RAM offload | All on GPU at 128K; 64–128 GB Unified/workstation for 512K–1M |
(Calculated estimates via localaihardware.dev/models/qwen4-35b-a3b.)
4. Practical Sizing Recommendations by Machine
- 16 GB GPU (RTX 4060 Ti 16 GB / RTX 4080 / RTX 5080): Stick to Q4 with 32 GB+ system RAM. Most of the 21 GB weights stay in VRAM, with the overflow experts and 20B n-gram lookups served from host RAM.
- 24 GB GPU (RTX 3090 / RTX 4090): Sweet spot for Q4 at 8K–32K context completely on GPU, with 32–64 GB DDR4/DDR5 for the host-offloadable 20B n-gram table. Run headless (or drive display off iGPU) to preserve the final ~1 GB of VRAM for 32K–64K context.
- 32 GB GPU (NVIDIA RTX 5090): Comfortably holds Q4 all on GPU even at 64K–128K coding contexts (
DeepSWE/NL2Repoagent loops) while leveraging 1792 GB/s GDDR7 bandwidth for fast 3B-active MoE decode. - Apple Silicon Mac (64 GB / 96 GB / 128 GB Unified) & DGX Spark (128 GB): Ideal if you want Q8 (~39 GB) or FP16/BF16 (~72 GB+) core precision plus room for the full checkpoint and deep
256K–1Mcontext windows in one unified pool.
Compare your exact GPU, system RAM, and context budget interactively at localaihardware.dev/?mode=benchmarks.

