DeepSeek R1
671.1B total, 37.6B active · 160k context · MIT License · released 2025-01-20
chatreasoningcoding
In short
DeepSeek R1 is an open model from DeepSeek with 671.1B parameters (37.6B active per token). At mlx-2bit, DeepSeek R1 needs about 236 GB of memory at 8k context and 236 GB at 8k, counting the weights, the KV cache and runtime buffers. Nothing we price in the US runs DeepSeek R1 fully in memory at 8k context at a usable speed; see the table for what comes closest.
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.
Something we price holds it fully in memory, but none reaches 15 tok/s, our bar for recommending it. The table below has the speeds.
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 |
|---|---|---|---|---|---|
| Mac Studio M3 Ultra 512GB | Q4_K_M | fits | 14 tok/s | $23,000 | 0.6 |
39 other cards and machines we price cannot hold it at this context.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| mlx-2bitmlx | 234.5 GB | 235.8 GB | 237.5 GB | 239.9 GB | 244.5 GB |
| mlx-3bitmlx | 312.6 GB | 313.9 GB | 315.7 GB | 318.0 GB | 322.6 GB |
| Q4_K_Mgguf | 376.7 GB | 377.9 GB | 379.7 GB | 382.0 GB | 386.7 GB |
| mlx-4bitmlx | 390.7 GB | 392.0 GB | 393.8 GB | 396.1 GB | 400.8 GB |
| Q5_K_Mgguf | 442.7 GB | 444.0 GB | 445.8 GB | 448.1 GB | 452.8 GB |
| Q6_Kgguf | 513.0 GB | 514.3 GB | 516.0 GB | 518.3 GB | 523.0 GB |
| Q8_0gguf | 664.3 GB | 665.6 GB | 667.3 GB | 669.7 GB | 674.3 GB |
Run it
Copy a command for the runtime you use.
- mlx-2bit
- LM Studio
lms get mlx-community/DeepSeek-R1-2bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-2bit
- LM Studio
- mlx-3bit
- LM Studio
lms get mlx-community/DeepSeek-R1-3bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-3bit
- LM Studio
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M - LM Studio
lms get unsloth/DeepSeek-R1-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/DeepSeek-R1-4bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-R1-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q5_K_M - LM Studio
lms get unsloth/DeepSeek-R1-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q6_K - LM Studio
lms get unsloth/DeepSeek-R1-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-GGUF:Q6_K
- Ollama
- Q8_0
- Ollama
ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q8_0 - LM Studio
lms get unsloth/DeepSeek-R1-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/DeepSeek-R1-GGUF:Q8_0
- Ollama
Notes
Transformers does not directly support it; see the DeepSeek-V3 repo for local running. Avoid system prompts, use temperature 0.6, and force responses to start with "<think>\n". Excludes 13.4B parameters of multi-token-prediction layers, which local runtimes do not load.
Questions
- How much VRAM does DeepSeek R1 need?
- At mlx-2bit, DeepSeek R1 needs about 236 GB of memory at 8k context and 236 GB at 8k, counting the weights, the KV cache and runtime buffers.
- Can I run DeepSeek R1 on a 16 GB GPU?
- No: it does not fit in 16 GB at 8k context, even with system RAM.
- Can I run DeepSeek R1 on a 24 GB GPU?
- No: it does not fit in 24 GB at 8k context, even with system RAM.
- How do I run DeepSeek R1 locally?
- With Ollama: ollama run hf.co/unsloth/DeepSeek-R1-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is DeepSeek R1 released under?
- MIT License, which allows commercial use.