Run DeepSeek R1 Distill Qwen 32B Locally: VRAM & GPU Requirements
DeepSeek R1 Distill Qwen 32B fits a single 24GB GPU at 4-bit, with only about 17K of context left. It is the largest Qwen-based model in the first batch of R1 distills. Fine-tuned from Qwen2.5 32B, it beat OpenAI o1-mini on several launch benchmarks according to DeepSeek. Today, the similarly sized Qwen3.8 27B scores much higher and needs less VRAM for long context.
DeepSeek R1 Distill Qwen 32B details
- Min VRAM at 4-bit (8K context)24 GB
- Parameters32.8B
- Max context128K
- Architecture
- Dense
- License
- MIT
- Launch date
- Jan 20, 2025
- Vendor
- DeepSeek
- Hugging Face repo
- deepseek-ai/DeepSeek-R1-Distill-Qwen-32B
- MLX repo (Apple)
- mlx-community/DeepSeek-R1-Distill-Qwen-32B-4bit
- Ollama tag
- deepseek-r1:32b
- Layers
- 64
- Hidden size
- 5,120
- KV heads
- 8
- Head dim
- 128
How much VRAM does DeepSeek R1 Distill Qwen 32B need?
| Quantization | WeightsGB | 8K contextGB | 32K contextGB | 128K context (max)GB |
|---|---|---|---|---|
| 1-bit | 8.3est. | 11.5 | 17.9 | 43.7 |
| 2-bit | 13.1GGUF | 16.3 | 22.8 | 48.5 |
| 3-bit | 17.9GGUF | 21.1 | 27.6 | 53.3 |
| 4-bit | 19.9GGUF | 23.1 | 29.6 | 55.3 |
| 5-bit | 23.3GGUF | 26.5 | 33 | 58.7 |
| 8-bit | 34.8GGUF | 38 | 44.5 | 70.2 |
| BF16/FP16 | 65.5GGUF | 68.7 | 75.2 | 100.9 |
Full calculation rules are on the Methodology page.
Can a single GPU run DeepSeek R1 Distill Qwen 32B?
A 24GB card runs DeepSeek R1 Distill Qwen 32B at 4-bit, but context is cramped. The 4-bit weights take about 20 GB, leaving an RTX 3090 or RTX 4090 with roughly 17K of context, so hard reasoning problems can run out of room. Halving context VRAM in llama.cpp stretches those cards to around 32K. The 32GB RTX 5090 reaches about 49K and runs nearly twice as fast, while the full context window takes 48GB or more. 16GB cards are stuck at 2-bit, which isn't worth it. 128GB unified-memory machines fit 8-bit, but this dense model reads every weight per token, so expect single-digit speeds.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $41316 listings | 45.6 | 11K | |
| $88045 listings | 23.5 | 11K | |
| $1,37813 listings | 45.6 | 75K | |
| Radeon RX 7900 XTX24 GB | $1,40027 listings | 48.5 | 43K |
| $1,992116 listings | 47.4 | 43K | |
| $3,82574 listings | 50.7 | 43K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,02531 listings | 13.6 | 128K |
| $4,89925 listings | 39.3 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 60.9 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 31.8 | 128K |
| $7,385128 listings | 85.5 | 75K | |
| $7,90037 listings | 14.5 | 128K | |
| $18,60020 listings | 85.5 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $1,37813 listings | 31.5 | 49K | |
| Radeon RX 7900 XTX24 GB | $1,40027 listings | 33.5 | 17K |
| $1,992116 listings | 32.7 | 17K | |
| $3,82574 listings | 35.1 | 17K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,02531 listings | 9.2 | 128K |
| $4,89925 listings | 27 | 113K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 42.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 21.8 | 128K |
| $7,385128 listings | 60.1 | 49K | |
| $7,90037 listings | 9.9 | 128K | |
| $18,60020 listings | 60.1 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,02531 listings | 5.4 | 128K |
| $4,89925 listings | 16.1 | 58K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 25.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 12.9 | 128K |
| $7,90037 listings | 5.8 | 128K | |
| $18,60020 listings | 36.4 | 128K |
Only common GPUs and systems are listed, from cheapest to most expensive.
What to know before running DeepSeek R1 Distill Qwen 32B locally
Squeezing more context onto a 24GB card
At 4-bit, every extra 1K of context takes about 0.27 GB (going from 8K to 32K adds 6.5 GB). In llama.cpp,
-ctk q8_0-ctv q8_0shrinks the context cache to about half; by this site's VRAM formula, that stretches context on a 24GB card from about 17K to about 32K. Don't move up to 5-bit: 5-bit with 8K already needs 26.5 GB, which a 24GB card can't hold.Use it the same way as the 14B distill
The repository defaults are
temperature0.6 andtop_p0.95, and DeepSeek asks you to keeptemperaturewithin 0.5 to 0.7. Don't use a system prompt. It occasionally skips thinking, so forcing the output to start with “<think>” is recommended. See the 14B distill for details.The official vLLM example uses two GPUs at 32K
The vLLM command on the model card uses two GPUs and 32K of context (
--tensor-parallel-size 2--max-model-len 32768), but it is written for the original BF16 weights, about 66 GB, which don't fit even on two 24GB cards. On consumer cards, stick with the 4-bit GGUF; the Ollama tag is deepseek-r1:32b, about a 20 GB download.
Launch commands
Ollama
- Windows
- macOS
- Linux
ollama run deepseek-r1:32bllama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server -hf bartowski/DeepSeek-R1-Distill-Qwen-32B-GGUF:Q4_K_M \ -c 8192
vLLM
- Linux
- NVIDIA
- AMD
vllm serve deepseek-ai/DeepSeek-R1-Distill-Qwen-32BMLX
- Apple Silicon
On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.
mlx_lm.server --model mlx-community/DeepSeek-R1-Distill-Qwen-32B-4bitFile names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
Other models in the DeepSeek family
| Model | Total params | Active params | 4-bit size |
|---|---|---|---|
| 8.2B | 8.2B | 5 GB | |
| 14.8B | 14.8B | 9 GB | |
| 284B | 13B | 155.1 GB | |
| 671B | 37B | 405.4 GB | |
| 763B | 8 / 16B | 444.7 GB | |
| 1,600B | 49B | 849.7 GB |