Qwen 4 35B: how much memory do you need to run it?
Alibaba's new open-weight model has 35 billion main parameters and a large lookup table that can stay on your SSD.

To run Qwen 4 35B (Qwen4-35B-A3B), Unsloth suggests starting with its 4-bit GGUF on a 24 GB Mac or graphics card, or a 3-bit file with a short context on 18 GB. The 4-bit file is a 32.0 GB download, so plan disk space too.
What is Qwen4-35B-A3B?
Qwen4-35B-A3B is an open-weight mixture-of-experts model from Alibaba's Qwen team that takes text, images and video. The Apache 2.0 weights are on Hugging Face. The model card lists 35 billion parameters with 3 billion activated, plus a 20 billion parameter n-gram embedding table and 2 billion for multi-token prediction. Hugging Face's launch post puts the active figure near 3.8 billion per token.
Those two extra parts are why Hugging Face counts about 57 billion parameters on the model page. The native context length is 1,048,576 tokens.
Qwen says the model beats its dense Qwen3.8-27B. In Neowin's reading of Qwen's own benchmark chart, it wins on almost every test, while the larger Qwen3.8-Flash-Next still leads on some. Those are vendor numbers, so test on your own tasks.
How much memory does Qwen 4 35B need?
The answer depends on the build you pick and on where the n-gram table sits. Unsloth stores that table, which it calls the engram, on the SSD when memory is short, and its desktop app moves it into RAM when there's room.
| Unsloth quant level | Memory (RAM plus VRAM, or unified) |
|---|---|
| 1-bit | 10 to 11 GB |
| 2-bit | 12 to 16 GB |
| 3-bit | 17 to 19 GB |
| 4-bit | 21 to 25 GB |
| 5-bit | 26 to 28 GB |
| 6-bit | 29 to 31 GB |
| 8-bit | 41 GB |
For a 24 GB Mac or a 24 GB card such as an RTX 4090 or Radeon RX 7900 XTX, Unsloth suggests starting with its UD-IQ4_XS file. That one downloads as 32.0 GB, and its weights come to 20.5 GB when the table stays on disk. On 16 GB cards Unsloth points to 2-bit or 3-bit.
The ggml-org repository ships three quantized files with these download sizes: 36 GB for Q4_K_M, 51 GB for Q6_K and 59.4 GB for Q8_0. The full BF16 file is 111 GB. File size on disk and memory in use aren't the same thing, so don't read Unsloth's table as applying to these files.
How do you run Qwen4 locally?
llama.cpp supported the model on day one. Hugging Face's post gives this command to serve the 6-bit ggml-org build:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K
To turn on multi-token prediction, add --spec-type draft-mtp --spec-draft-n-max 3. With the Q4 file on an Apple M5, the post measured 22% faster generation using 3 draft tokens. For its own builds, Unsloth recommends a draft depth of 2 and found 3 and 4 slower.
Unsloth's own guide has you keep the engram on the SSD in llama.cpp with --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU. Unsloth Desktop, which runs on macOS, Windows and Linux, handles that placement for you. On Macs, there's also a 34.0 GB MLX 4-bit build from Unsloth that is text only. Don't assume it fits in 24 GB: on a 128 GB M5 Max, Unsloth measured peak memory of 35.0 GB with a 512-token prompt. The model card lists Ollama, mlx-vlm and LiteRT-LM as other options.
What license and API options does Qwen4 35B have?
The weights are licensed under Apache 2.0. If you'd rather not host it, Qwen Cloud serves it under the model name qwen4-35b-a3b. For production serving on your own hardware, the model card strongly recommends dedicated engines such as vLLM, SGLang or TokenSpeed.
Reasoning is on by default at the high effort level. You can also pick xhigh, low or off. Lower effort isn't automatically cheaper in agent work: Qwen warns it can cause more failures and retries, which may raise total time and token use.
What should you do before you deploy it?
Start small, measure, then scale up.
- Check free memory and disk space against the build you plan to download.
- On a 24 GB machine, try Unsloth's 4-bit UD-IQ4_XS first.
- Keep the context short at first. A 1 million token window is a model limit, and your hardware sets the practical one.
- Use a current version of your inference engine, as the model card advises.
- Run your own coding or document tasks at
highandlowand compare results, time and tokens.
Related: MedGemma 2 hardware and license terms and whether AWS Lambda is a cheap way to serve a small LLM.