How to Deploy DeepSeek R1 Distill Qwen 32B Locally
DeepSeek R1 Distill Qwen 32B is the largest Qwen-based model in the first batch of R1 distills. A 24GB card can hold its 4-bit version, but only about 17K of context is left over. It was fine-tuned from Qwen2.5 32B, and at launch DeepSeek said it beat OpenAI o1-mini on several benchmarks. Today, though, the similarly sized Qwen3.8 27B scores much higher and also needs less VRAM for long context.
DeepSeek R1 Distill Qwen 32B details
- Min VRAM at 4-bit24 GB · 8K
- 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 for local deployment?
| 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 4-bit, but context is cramped. The 4-bit weights take about 20 GB, so an RTX 3090 or RTX 4090 is left with roughly 17K of context, and a reasoning model working through a hard problem can run out of room before it finishes. Halving the memory that context uses in llama.cpp stretches those cards to around 32K. To really open it up, the 32GB RTX 5090 reaches about 49K and is nearly twice as fast; the full 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 is a dense model that reads every weight for every token, so expect single-digit speeds.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 45.6 | 11K | |
| $86958 listings | 23.5 | 11K | |
| $89518 listings | 45.6 | 75K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 48.5 | 43K |
| $1,799107 listings | 47.4 | 43K | |
| $3,75868 listings | 50.7 | 43K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 13.6 | 128K |
| $4,89916 listings | 39.3 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 60.9 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 31.8 | 128K |
| $8,24022 listings | 14.5 | 128K | |
| $8,395123 listings | 85.5 | 75K | |
| $22,50011 listings | 85.5 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $89518 listings | 31.5 | 49K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 33.5 | 17K |
| $1,799107 listings | 32.7 | 17K | |
| $3,75868 listings | 35.1 | 17K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 9.2 | 128K |
| $4,89916 listings | 27 | 113K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 42.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 21.8 | 128K |
| $8,24022 listings | 9.9 | 128K | |
| $8,395123 listings | 60.1 | 49K | |
| $22,50011 listings | 60.1 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 5.4 | 128K |
| $4,89916 listings | 16.1 | 58K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 25.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 12.9 | 128K |
| $8,24022 listings | 5.8 | 128K | |
| $22,50011 listings | 36.4 | 128K |
Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.
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 |