DeepSeek R1 Distill Qwen 7B
7.6B parameters · 128k context · MIT License · released 2025-01-20
reasoningchatcoding
In short
DeepSeek R1 Distill Qwen 7B is an open model from DeepSeek with 7.6B parameters. At mlx-3bit, DeepSeek R1 Distill Qwen 7B needs about 4 GB of memory at 8k context and 4 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the US that runs DeepSeek R1 Distill Qwen 7B fully in memory at 8k context is the NVIDIA Tesla P40, $345 at Amazon, at about 25 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
What to run it on in the US
Fully in memory at 8k context, priced at retailers today.
Cheapest
NVIDIA Tesla P4025tok/sest.Q8_0
$345
Best value
NVIDIA GeForce RTX 3080 10GB55tok/sest.Q8_0
$469
Fastest
NVIDIA GeForce RTX 5090130tok/sest.Q8_0
$4,921
Mac
Mac mini M4 Pro 48GB21tok/sest.Q8_0
$2,149
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
| Hardware | Quant | Fits | Decode | Price | tok/s per 1,000 |
|---|---|---|---|---|---|
| NVIDIA Tesla P40 | Q8_0 | fits | 25 tok/s | $345 | 72.5 |
| Intel Arc B580 | Q8_0 | fits | 27 tok/s | $346 | 76.9 |
| NVIDIA GeForce RTX 3060 12GB | Q8_0 | fits | 26 tok/s | $360 | 72.2 |
| Intel Arc A770 16GB | Q8_0 | fits | 33 tok/s | $400 | 81.8 |
| NVIDIA GeForce RTX 3080 10GB | Q8_0 | fits | 55 tok/s | $469 | 117.2 |
| AMD Radeon RX 7600 XT | Q8_0 | fits | 19 tok/s | $480 | 38.5 |
| AMD Radeon RX 9060 XT 16GB | Q8_0 | fits | 21 tok/s | $520 | 39.4 |
| AMD Radeon RX 7800 XT | Q8_0 | fits | 40 tok/s | $550 | 72.9 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q8_0 | fits | 32 tok/s | $618 | 52.4 |
| Intel Arc Pro B60 | Q8_0 | fits | 27 tok/s | $650 | 40.9 |
| NVIDIA GeForce RTX 4070 Super | Q8_0 | fits | 37 tok/s | $699 | 52.2 |
| Mac mini M4 16GB | Q8_0 | fits | 9 tok/s | $749 | 12.1 |
| NVIDIA GeForce RTX 5070 | Q8_0 | fits | 49 tok/s | $750 | 64.8 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q8_0 | fits | 21 tok/s | $770 | 27.0 |
| AMD Radeon RX 7900 XT | Q8_0 | fits | 51 tok/s | $800 | 64.3 |
| AMD Radeon RX 9070 XT | Q8_0 | fits | 41 tok/s | $815 | 50.4 |
| NVIDIA GeForce RTX 4070 Ti Super | Q8_0 | fits | 49 tok/s | $984 | 49.4 |
| NVIDIA GeForce RTX 5070 Ti | Q8_0 | fits | 65 tok/s | $995 | 65.1 |
| NVIDIA GeForce RTX 4080 Super | Q8_0 | fits | 53 tok/s | $1,199 | 44.5 |
| Mac mini M4 32GB | Q8_0 | fits | 9 tok/s | $1,420 | 6.4 |
| AMD Radeon RX 7900 XTX | Q8_0 | fits | 62 tok/s | $1,533 | 40.2 |
| NVIDIA GeForce RTX 3090 | Q8_0 | fits | 68 tok/s | $1,600 | 42.3 |
| NVIDIA GeForce RTX 5080 | Q8_0 | fits | 70 tok/s | $1,600 | 43.4 |
| AMD Radeon AI PRO R9700 | Q8_0 | fits | 41 tok/s | $1,700 | 24.2 |
| NVIDIA GeForce RTX 3090 Ti | Q8_0 | fits | 73 tok/s | $2,060 | 35.4 |
| NVIDIA GeForce RTX 4090 | Q8_0 | fits | 73 tok/s | $2,073 | 35.2 |
| Mac mini M4 Pro 48GB | Q8_0 | fits | 21 tok/s | $2,149 | 9.6 |
| Mac mini M4 Pro 64GB | Q8_0 | fits | 21 tok/s | $2,900 | 7.1 |
| Mac Studio M4 Max 64GB | Q8_0 | fits | 41 tok/s | $3,400 | 12.2 |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q8_0 | fits | 16 tok/s | $3,449 | 4.8 |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q8_0 | fits | 16 tok/s | $3,650 | 4.5 |
| Mac Studio M3 Ultra 96GB | Q8_0 | fits | 62 tok/s | $4,399 | 14.1 |
| NVIDIA GeForce RTX 5090 | Q8_0 | fits | 130 tok/s | $4,921 | 26.4 |
| Mac Studio M4 Max 128GB | Q8_0 | fits | 41 tok/s | $4,999 | 8.3 |
| ASUS Ascent GX10 128GB | Q8_0 | fits | 20 tok/s | $6,100 | 3.2 |
| NVIDIA DGX Spark 128GB | Q8_0 | fits | 20 tok/s | $7,399 | 2.7 |
| NVIDIA RTX PRO 6000 Blackwell | Q8_0 | fits | 130 tok/s | $7,997 | 16.2 |
| Mac Studio M3 Ultra 256GB | Q8_0 | fits | 62 tok/s | $8,499 | 7.3 |
| Mac Studio M3 Ultra 512GB | Q8_0 | fits | 62 tok/s | $23,000 | 2.7 |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q8_0 | fits | 16 tok/s | – | – |
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| mlx-3bitmlx | 3.1 GB | 4.3 GB | 5.7 GB | 7.7 GB | 11.6 GB |
| mlx-4bitmlx | 4.0 GB | 5.2 GB | 6.6 GB | 8.6 GB | 12.4 GB |
| Q4_K_Mgguf | 4.4 GB | 5.5 GB | 7.0 GB | 8.9 GB | 12.8 GB |
| Q5_K_Mgguf | 5.1 GB | 6.3 GB | 7.7 GB | 9.6 GB | 13.5 GB |
| mlx-6bitmlx | 5.8 GB | 6.9 GB | 8.4 GB | 10.3 GB | 14.2 GB |
| Q6_Kgguf | 5.8 GB | 7.0 GB | 8.5 GB | 10.4 GB | 14.3 GB |
| mlx-8bitmlx | 7.5 GB | 8.7 GB | 10.2 GB | 12.1 GB | 16.0 GB |
| Q8_0gguf | 7.5 GB | 8.7 GB | 10.2 GB | 12.1 GB | 16.0 GB |
Run it
Copy a command for the runtime you use.
- mlx-3bit
- LM Studio
lms get mlx-community/DeepSeek-R1-Distill-Qwen-7B-3bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-Distill-Qwen-7B-3bit
- LM Studio
- mlx-4bit
- LM Studio
lms get mlx-community/DeepSeek-R1-Distill-Qwen-7B-4bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-Distill-Qwen-7B-4bit
- LM Studio
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q4_K_M - LM Studio
lms get unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q4_K_M
- Ollama
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q5_K_M - LM Studio
lms get unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q5_K_M
- Ollama
- mlx-6bit
- LM Studio
lms get mlx-community/DeepSeek-R1-Distill-Qwen-7B-6bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-Distill-Qwen-7B-6bit
- LM Studio
- Q6_K
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q6_K - LM Studio
lms get unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q6_K
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/DeepSeek-R1-Distill-Qwen-7B-8bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-Distill-Qwen-7B-8bit
- LM Studio
- Q8_0
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q8_0 - LM Studio
lms get unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q8_0
- Ollama
Notes
Distilled from DeepSeek-R1 onto Qwen2.5-Math-7B (Qwen2.5 series is Apache 2.0); the card licenses the weights under MIT. Use temperature 0.5-0.7, no system prompt, and start output with "<think>\n".
Questions
- How much VRAM does DeepSeek R1 Distill Qwen 7B need?
- At mlx-3bit, DeepSeek R1 Distill Qwen 7B needs about 4 GB of memory at 8k context and 4 GB at 8k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running DeepSeek R1 Distill Qwen 7B locally?
- The cheapest hardware in the US that runs DeepSeek R1 Distill Qwen 7B fully in memory at 8k context is the NVIDIA Tesla P40, $345 at Amazon, at about 25 tok/s (estimated). The best value is the NVIDIA GeForce RTX 3080 10GB (about 55 tok/s for $469). The fastest we price is the NVIDIA GeForce RTX 5090, at about 130 tok/s.
- Can I run DeepSeek R1 Distill Qwen 7B on a 16 GB GPU?
- Yes: at Q8_0 it fits fully in 16 GB at 8k context. On the NVIDIA GeForce RTX 5080 it runs at about 70 tok/s (estimated).
- Can I run DeepSeek R1 Distill Qwen 7B on a 24 GB GPU?
- Yes: at Q8_0 it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 73 tok/s (estimated).
- How do I run DeepSeek R1 Distill Qwen 7B locally?
- With Ollama: ollama run hf.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is DeepSeek R1 Distill Qwen 7B released under?
- MIT License, which allows commercial use.