Run Qwen4 35B A3B Locally: VRAM & GPU Requirements
Qwen4 35B A3B is Qwen's first open-weight Qwen4 model (December 2026), with 35B parameters, 3B active per token, and a ~20B n-gram lookup table. The 4-bit download is 34.6 GB, but because the lookup table stays in system RAM, a single 24GB GPU can fit the rest of the model in VRAM. On smaller GPUs, you can offload experts to RAM, so a 12GB GPU paired with 32GB of system RAM can still run 2-bit. Unified memory machines such as Macs must count the entire file, which takes roughly 36 GB at 4-bit.
Qwen4 35B A3B details
- Min VRAM at 4-bit (8K context)25 GB
- Parameters56.8B
- Active params3B
- Max context1M
- Architecture
- MoE
- Experts offloaded
- 4 GB VRAM + 34 GB RAM
- License
- Apache-2.0
- Launch date
- Dec 4, 2026
- Vendor
- Alibaba
- Hugging Face repo
- Qwen/Qwen4-35B-A3B
- GGUF repo
- unsloth/Qwen4-35B-A3B-GGUF
- Layers
- 40
- Hidden size
- 2,048
- KV heads
- 2
- Head dim
- 256
How does Qwen4 35B A3B score on benchmarks?
Despite activating only 3B parameters per token, it beats Qwen3.8 Flash Next (6B active, roughly 111 GB at 4-bit) on 6 of the 10 benchmarks shown. Against other models that fit on a 24GB GPU, Qwen3.8 27B and Inkling 2 Mini, it ties or leads on everything except GPQA. On coding, it scores 61.8 on DeepSWE, about 3 points ahead of Flash Next, but falls behind on harder programming problems with 16.1 on FrontierCode versus Flash Next's 27.1. All scores in the chart come from Qwen's official model card.

How much VRAM does Qwen4 35B A3B need?
The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.
Weight size includes an n-gram lookup table (11.5 GB at 4-bit); unified memory machines like Macs count the full file size.
| Quantization | WeightsGB | 32K contextGB | 128K contextGB | 256K contextGB | 1M context (max)GB |
|---|---|---|---|---|---|
| 1-bit | 21.9GGUF | 12.1 | 14.1 | 16.8 | 32.9 |
| 2-bit | 27.2GGUF | 17.4 | 19.4 | 22.1 | 38.2 |
| 3-bit | 30.4GGUF | 20.6 | 22.6 | 25.3 | 41.4 |
| 4-bit | 34.6GGUF | 24.8 | 26.8 | 29.5 | 45.6 |
| 5-bit | 41.7GGUF | 28.1 | 30.1 | 32.8 | 48.9 |
| 8-bit | 60.6GGUF | 40.6 | 42.6 | 45.3 | 61.4 |
| BF16/FP16 | 111.1GGUF | 71.9 | 73.9 | 76.6 | 92.7 |
Full calculation rules are on the Methodology page.
Can a single GPU run Qwen4 35B A3B?
A single 24GB GPU runs 4-bit, with an RTX 3090 estimated at around 134 t/s at 8K context, nearly as fast as Qwen3.6 35B A3B without a lookup table, and scaling up to roughly 77K context. A 32GB RTX 5090 reaches about 486K. Since 4-bit does not fit on 16GB GPUs, you have to drop to 2-bit: an RTX 5060 Ti 16GB hits around 115 t/s, but context tops out at roughly 20K. Running 8-bit on one GPU requires 48GB of VRAM. Unified memory systems can all use the full 1M context, and a 96GB Mac Studio M5 Ultra runs 4-bit at about 147 t/s.
The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $42713 listings | 149.4 | 20K | |
| $90538 listings | 114.8 | 20K | |
| $1,37813 listings | 149.4 | 839K | |
| Radeon RX 7900 XTX24 GB | $1,48025 listings | 152.2 | 429K |
| $1,999113 listings | 151.1 | 429K | |
| $3,70082 listings | 154.3 | 429K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,11228 listings | 85.4 | 1M |
| $4,89925 listings | 142.1 | 1M | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 162.3 | 1M |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 131.2 | 1M |
| $7,335132 listings | 175.4 | 839K | |
| $7,94738 listings | 88.7 | 1M | |
| $18,20019 listings | 175.4 | 1M |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $1,37813 listings | 131.9 | 486K | |
| Radeon RX 7900 XTX24 GB | $1,48025 listings | 135.1 | 77K |
| $1,999113 listings | 133.9 | 77K | |
| $3,70082 listings | 137.5 | 77K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,11228 listings | 67.4 | 1M |
| $4,89925 listings | 123.8 | 1M | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 146.8 | 1M |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 112.1 | 1M |
| $7,335132 listings | 162.7 | 486K | |
| $7,94738 listings | 70.4 | 1M | |
| $18,20019 listings | 162.7 | 1M |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,11228 listings | 46.6 | 1M |
| $4,89925 listings | 97.2 | 554K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 122.1 | 1M |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 85.6 | 1M |
| $7,94738 listings | 49 | 1M | |
| $18,20019 listings | 141 | 1M |
Only common GPUs and systems are listed, from cheapest to most expensive.
What PC or server build do you need to run Qwen4 35B A3B locally?
On desktops with less than 24GB of VRAM, you can offload experts to RAM using llama.cpp's --cpu-moe flag. With all 4-bit experts in RAM, the GPU only needs about 4 GB while system RAM needs around 34 GB (about 22.5 GB for experts and 11.5 GB for the lookup table). More VRAM lets you keep more expert layers on the GPU and lowers RAM usage. A home desktop with a 12GB RTX 5070 and 32GB of DDR5 is a solid fit for 2-bit, keeping 26 of the 40 expert layers in VRAM at an estimated 107 t/s.
2 × GeForce RTX 5070 + Desktop DDR5
Home PCGeForce RTX 5070 + Desktop DDR5
Home PCTesla V100 32GB + Dual Xeon E5 DDR4
BudgetGeForce RTX 3090 + Single EPYC DDR4
Best valueGeForce RTX 5090 + Single EPYC DDR5
FlagshipDetailed calculation rules are on the Methodology page.
As an eBay Partner, VRAMGlass may be compensated if you buy through the eBay links on this page. The price you pay stays the same.
What to know before running Qwen4 35B A3B locally
GGUF splits into two files
Unsloth splits every quant into two files: the first holds the main model weights and the second contains only the lookup table, and you need to download both. The 1-bit through 4-bit quants share the same 11.5 GB IQ4_NL lookup table, so it takes up a larger share at lower quants, accounting for over 40% of the 27.2 GB 2-bit download. The commands on this page use Unsloth's Q4_K_M; official ggml-org GGUFs only cover Q4_K_M, Q6_K, and Q8_0. Make sure to use a llama.cpp build from December 4 or later.
Enabling MTP boosts speed by ~20%
The model includes a built-in Multi-Token Prediction (MTP) layer for speculative decoding, guessing several tokens ahead per step and verifying them in one pass. In llama.cpp, add
--spec-type draft-mtp --spec-draft-n-max 3to turn it on; Hugging Face tested 4-bit on an Apple M5 and measured 22% faster generation. The MTP layer is bundled in Unsloth's first file at about 0.5 GB, and llama.cpp skips loading it when disabled, so the VRAM table on this page excludes it.Ollama and Mac support still catching up
The official model card links to Ollama, but as of December 4, there are no official qwen4 tags in the Ollama library yet. To run it today, use llama.cpp with Unsloth's GGUFs. On Mac, mlx-community already has MLX conversions ready, though mlx-lm requires installing the unmerged PR #2141. oMLX already supports the model with vision, MTP, and SSD offloading for the lookup table to save RAM.
Official vLLM recipe uses FP8
vLLM's official recipe runs the FP8 weights (
Qwen/Qwen4-35B-A3B-FP8) with an NVFP4 KV cache and MTP enabled by default at 3 draft tokens per step, using the dedicated Docker imagevllm/vllm-openai:qwen4. The recipe is validated on single B300, GB200, H200, and MI350X GPUs, with RTX PRO 6000 and H100 listed as supported. SGLang and TokenSpeed also have official recipes.Reasoning effort and sampling settings
reasoning_efforthas four levels: xhigh, high (default), low, and off (no thinking). On simple prompts, the model may answer directly even when thinking is enabled. Qwen notes that lowering reasoning effort in multi-turn agentic tasks does not always save time, since under-thinking can trigger repeated retries. Recommended sampling parameters aretemperature1.0,top_p0.95, andtop_k20 for thinking mode, andtemperature0.7,top_p0.8,top_k20, andpresence_penalty1.5 for non-thinking mode.
Launch commands
llama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:Q4_K_M -c 8192Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 34 GB needed).
llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:Q4_K_M -c 8192 -ngl 99 \ --cpu-moe
vLLM
- Linux
- NVIDIA
Follow the deployment guide to prepare the required runtime and hardware.
vllm serve Qwen/Qwen4-35B-A3B-FP8 \ --trust-remote-code \ --enable-prefix-caching \ --tensor-parallel-size 1 \ --max-model-len auto \ --disable-flashinfer-autotune \ --kv-cache-dtype nvfp4 \ --attention-config.indexer_kv_dtype fp8 \ --enable-auto-tool-choice \ --tool-call-parser qwen4 \ --reasoning-parser qwen4 \ --speculative-config '{"method":"mtp","num_speculative_tokens":3,"index_share_for_mtp_iteration":true}'
Ollama
- Windows
- macOS
- Linux
The Ollama library has no official tag for it yet.
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
Other models in the Qwen family
| Model | Total params | Active params | 4-bit size |
|---|---|---|---|
| 8.2B | 8.2B | 5 GB | |
| 9.7B | 9.7B | 5.7 GB | |
| 27.8B | 27.8B | 16.8 GB | |
| 27.8B | 27.8B | 16.6 GB | |
| 32.8B | 32.8B | 19.8 GB | |
| 36B | 3B | 22.1 GB | |
| 176B | 6B | 111.3 GB | |
| 2,446B | 95B | 1,310.9 GB |