Qwen4-35B-A3B VRAM & GPU Requirements Calculator
Qwen4-35B-A3B requires 67.7 GiB in FP16, 33.8 GiB in FP8, and 20.6 GiB in GGUF Q4_K_M for GPU weights alone (with 20.48B layer-2 n-gram table (Host RAM / mmap) on Host RAM / mmap) (40L · 30 Gated DeltaNet + 10 Qwen Sparse Attn (16Q/2KV, 2K budget) · 36.3B GPU core (35B+ViT+MTP) + 20.5B Host-RAM n-gram table · 3.0B active MoE). At 8K context (batch=1, FP16 KV), KV-cache adds 0.16 GiB (31.5× smaller than MHA) plus 61.4 MiB/seq linear SSM state.
Can Your GPU or Mac Run Qwen4-35B-A3B? (8K Context, Batch=1)
Pre-computed fit verdict and estimated decode speed across RTX 4090, Apple Silicon Unified Memory, and NVIDIA H100/H200 clusters. Column headers show 1× GPU baseline (incl. 1.0 GiB runtime; multi-GPU rows add per-GPU NCCL overhead). Apple Silicon runs Q8_0 (Metal/llama.cpp) instead of datacenter FP8.
| Hardware Rig | Q4_K_M (22.3 GiB) | FP8 / Q8_0* (35.4 GiB FP8) | FP16 (69.3 GiB) |
|---|---|---|---|
| 1× RTX 4090 (23.9 GiB usable) | FIT · ~230 tok/s | OOM (-12G) | OOM (-45G) |
| 2× RTX 4090 (47.8 GiB usable) | FIT · ~131 tok/s | FIT · ~118 tok/s | OOM (-24G) |
| Apple M4 Max (128 GiB Unified · 96 GiB GPU) | FIT · ~145 tok/s | Q8_0 FIT · ~97 tok/s | FIT · ~57 tok/s |
| Apple M3 Ultra (256 GiB Unified · 192 GiB GPU) | FIT · ~192 tok/s | Q8_0 FIT · ~134 tok/s | FIT · ~82 tok/s |
| 1× H100 SXM (79.6 GiB usable) | FIT · ~390 tok/s | FIT · ~333 tok/s | FIT · ~240 tok/s |
| 4× H100 SXM (318.4 GiB usable) | FIT · ~154 tok/s | FIT · ~151 tok/s | FIT · ~144 tok/s |
| 8× H100 SXM (636.8 GiB usable) | FIT · ~116 tok/s | FIT · ~115 tok/s | FIT · ~113 tok/s |
| 8× H200 SXM (1,123.2 GiB usable) | FIT · ~116 tok/s | FIT · ~116 tok/s | FIT · ~114 tok/s |
Ready-to-run deployment commands for Qwen4-35B-A3B
vllm serve Qwen/Qwen4-35B-A3B --tensor-parallel-size 1 --trust-remote-code --reasoning-parser qwen4 --enable-auto-tool-choice --tool-call-parser qwen4 --max-model-len 8192 --gpu-memory-utilization 0.90Sized at 69.3 GiB total BF16 VRAM (including CUDA/NCCL overhead) out of 79.6 GiB usable. Assumes 38.1 GiB 20.48B layer-2 n-gram table (Host RAM / mmap) stays on Host RAM / mmap.
llama-server -m /path/to/qwen4-35b-a3b-Q4_K_M.gguf -c 8192 -ngl 999 -fa on -ot per_layer_token_embd=CPU --load-mode mmap --lazy-mode on --jinjaWith 20.5B n-gram table on Host RAM (~11.6 GiB), fits on a single RTX 4090 (23.9 GiB usable) at ~230 tok/s. Offloads the 20.5B n-gram embedding table to Host RAM/mmap; add --mmproj for image/video inputs.
Interactive Qwen4-35B-A3B VRAM & Roofline Simulator
1. Model & Workload
2. Target GPU / Mac Silicon
VRAM Allocation vs. Hardware Capacity
Decode Arithmetic Intensity Roofline
Compare Other LLM VRAM Requirements
All 37 Models →Frequently Asked Questions
Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run Qwen4-35B-A3B?
At 8K context (batch=1) in GGUF Q4_K_M, Qwen4-35B-A3B needs 22.3 GiB single-GPU VRAM (20.6 GiB weights with the 20.5B n-gram table offloaded to Host RAM/mmap). Single 23.9 GiB usable RTX 4090: Fits at ~230 tok/s. Dual 47.8 GiB usable (2× RTX 4090): Fits Q4_K_M cleanly (~131 tok/s TP).
Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run Qwen4-35B-A3B?
An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (22.3 GiB GPU wired at 8K, plus ~11.6 GiB mmap'd/host n-gram table sharing system RAM), it fits on M4 Max 128 GiB at ~145.0 tok/s.
How much KV-cache does Qwen4-35B-A3B use at 32K context?
Qwen4-35B-A3B uses GQA with hybrid attention (30 Gated DeltaNet linear + 10 Qwen Sparse Attention layers), giving a 31.5× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 0.63 GiB plus 61.4 MiB/seq constant linear-attention recurrent state.