How to Deploy DeepSeek R1 Qwen3 8B Locally
DeepSeek R1 Qwen3 8B is Qwen3 8B trained on R1-0528's reasoning traces, and it is the model Ollama pulls when you simply run deepseek-r1. At 4-bit with 8K of context it takes about 7.3 GB, so an 8GB card can run it. It is a clear step up from the original Qwen3 8B at math, but the trade-off is that it writes out a stretch of thinking every time. For a new setup, we now recommend Qwen3.5 9B, whose thinking can be switched on and off.
DeepSeek R1 Qwen3 8B details
- Min VRAM at 4-bit8 GB · 8K
- Parameters8.2B
- Max context128K
- Architecture
- Dense
- License
- MIT
- Launch date
- May 29, 2025
- Vendor
- DeepSeek
- Hugging Face repo
- deepseek-ai/DeepSeek-R1-0528-Qwen3-8B
- MLX repo (Apple)
- mlx-community/DeepSeek-R1-0528-Qwen3-8B-4bit
- Ollama tag
- deepseek-r1:8b
- Revision
- 0528
- Layers
- 36
- Hidden size
- 4,096
- KV heads
- 8
- Head dim
- 128
How much VRAM does DeepSeek R1 Qwen3 8B need for local deployment?
| Quantization | WeightsGB | 8K contextGB | 32K contextGB | 128K context (max)GB |
|---|---|---|---|---|
| 1-bit | 2.4GGUF | 4.7 | 8.3 | 22.8 |
| 2-bit | 3.5GGUF | 5.8 | 9.4 | 23.9 |
| 3-bit | 4.3GGUF | 6.6 | 10.2 | 24.7 |
| 4-bit | 5GGUF | 7.3 | 10.9 | 25.4 |
| 5-bit | 5.9GGUF | 8.2 | 11.8 | 26.3 |
| 8-bit | 8.7GGUF | 11 | 14.6 | 29.1 |
| BF16/FP16 | 16.4GGUF | 18.7 | 22.3 | 36.8 |
Full calculation rules are on the Methodology page.
Can a single GPU run DeepSeek R1 Qwen3 8B?
Yes, on almost any discrete GPU; the 4-bit build fits even an 8GB card. What you really need to plan around is context. It writes a long chain of thought before every answer, and on hard problems that reasoning can run to tens of thousands of tokens, so leave at least 32K or it gets cut off mid-thought. By that standard, a 16GB card like the RTX 5060 Ti 16GB can go straight to 8-bit and still fit 32K, with quality close to the original, while a 24GB card runs 8-bit out to about 105K, at roughly 70 tokens/s on an RTX 3090. On 12GB cards, use 4-bit. 2-bit saves too little space to be worth it on a model this small.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 136.4 | 83K | |
| $86958 listings | 75.1 | 83K | |
| $89518 listings | 136.4 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 143.7 | 128K |
| $1,799107 listings | 140.8 | 128K | |
| $3,75868 listings | 149.4 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 45 | 128K |
| $4,89916 listings | 119.8 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 174.1 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 99.1 | 128K |
| $8,24022 listings | 47.7 | 128K | |
| $8,395123 listings | 228.4 | 128K | |
| $22,50011 listings | 228.4 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 105.2 | 73K | |
| $86958 listings | 56.6 | 73K | |
| $89518 listings | 105.2 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 111.1 | 128K |
| $1,799107 listings | 108.8 | 128K | |
| $3,75868 listings | 115.8 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 33.5 | 128K |
| $4,89916 listings | 91.8 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 136.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 75.3 | 128K |
| $8,24022 listings | 35.6 | 128K | |
| $8,395123 listings | 182.8 | 128K | |
| $22,50011 listings | 182.8 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 67.3 | 49K | |
| $86958 listings | 35.1 | 49K | |
| $89518 listings | 67.3 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 71.3 | 105K |
| $1,799107 listings | 69.7 | 105K | |
| $3,75868 listings | 74.5 | 105K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 20.5 | 128K |
| $4,89916 listings | 58.2 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 88.8 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 47.3 | 128K |
| $8,24022 listings | 21.8 | 128K | |
| $8,395123 listings | 122.5 | 128K | |
| $22,50011 listings | 122.5 | 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 Qwen3 8B locally
It isn't the full R1
Despite R1 in the name, it is not the same thing as the full 671B R1. Its architecture is identical to Qwen3 8B; DeepSeek simply post-trained Qwen3 8B on R1-0528's reasoning traces. DeepSeek specifically points out that its tokenizer configuration follows R1-0528, so when you deploy or convert it yourself, take the config files from DeepSeek's repository rather than substituting the original Qwen3 ones.
Which quantization to pick
If you have the VRAM, use 8-bit: the weights are 8.7 GB, and with 32K of context the total is about 14.6 GB, which fits on a 16GB card. On a 12GB card, use 4-bit (about 10.9 GB at 32K). 2-bit is only 1.5 GB smaller than 4-bit, and for an 8B model that saving isn't worth it.
Official recommended settings
DeepSeek's website and app use
temperature0.6, and its evaluations usetop_p0.95. Unlike the 14B and 32B distills from January 2025, the 0528 version supports system prompts and no longer needs the thinking tag added manually at the start of the output.Don't run hard problems at the default context
Default context is often too short, so long thinking gets cut off. Ollama sets its default based on VRAM: only 4K below 24GB, and 32K from 24 to 48GB. The llama-server command on this page uses 8K (
-c 8192). For math and coding problems, raise-cto 32768 or more in llama-server; in Ollama, increase it with the OLLAMA_CONTEXT_LENGTH environment variable or /set parameternum_ctx.
Launch commands
Ollama
- Windows
- macOS
- Linux
ollama run deepseek-r1:8bllama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server -hf unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF:Q4_K_M -c 8192
vLLM
- Linux
- NVIDIA
- AMD
vllm serve deepseek-ai/DeepSeek-R1-0528-Qwen3-8BMLX
- 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-0528-Qwen3-8B-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 |
|---|---|---|---|
| 14.8B | 14.8B | 9 GB | |
| 32.8B | 32.8B | 19.9 GB | |
| 284B | 13B | 155.1 GB | |
| 671B | 37B | 405.4 GB | |
| 763B | 8 / 16B | 444.7 GB | |
| 1,600B | 49B | 849.7 GB |