VRAM · Local model
DeepSeek R1 671B VRAM requirements: can you run it locally?
Not on consumer hardware: even at Q2_K it needs about 272 GB. At Q4_K_M it needs about 421 GB, which takes 6 × 80 GB data-centre cards; at Q2_K it just fits a 512 GB Mac. Estimates from the model’s official config.json, checked 2026-10-08.
- Parameters
- 671.0B
- Layers
- 61
- Max context
- 163,840
- Experts
- 256 (8 active)
Attention: 61 layers with multi-head latent attention (one compressed 576-value vector per token).
Requirements
How much VRAM does DeepSeek R1 (671B) need?
| Quantisation | 8K context | 32K context | 128K context | 160K context |
|---|---|---|---|---|
| FP16 / BF16 | 1,375 GB | 1,377 GB | 1,384 GB | 1,387 GB |
| Q8_0 (8-bit) | 731 GB | 733 GB | 740 GB | 742 GB |
| Q6_K | 564 GB | 566 GB | 573 GB | 575 GB |
| Q5_K_M | 490 GB | 492 GB | 499 GB | 502 GB |
| Q4_K_M | 421 GB | 423 GB | 430 GB | 432 GB |
| Q3_K_M | 344 GB | 346 GB | 353 GB | 355 GB |
| Q2_K | 272 GB | 274 GB | 281 GB | 283 GB |
Weights + FP16 KV cache + overhead, batch 1; the VRAM calculator shows the formula.
GPUs
Which GPUs can run DeepSeek R1 (671B)?
| Memory | Example card | Best quality at 8K | Longest context at that quality | Longest context at Q4_K_M |
|---|---|---|---|---|
| 8 GB | GeForce RTX 4060 | Doesn’t fit | — | — |
| 12 GB | GeForce RTX 5070 | Doesn’t fit | — | — |
| 16 GB | GeForce RTX 5080 | Doesn’t fit | — | — |
| 24 GB | Radeon RX 7900 XTX | Doesn’t fit | — | — |
| 32 GB | GeForce RTX 5090 | Doesn’t fit | — | — |
| 48 GB | L40S | Doesn’t fit | — | — |
| 80 GB | H100 80GB | Doesn’t fit | — | — |
| 96 GB | RTX PRO 6000 Blackwell | Doesn’t fit | — | — |
None of these tiers, up to 96 GB on one card, holds DeepSeek R1 (671B) at Q4_K_M: it needs about 421 GB with an 8K context. No single card here holds it at 8-bit (731 GB) or at full precision (1,375 GB). Split across several cards (llama.cpp and vLLM both do this), it needs 6 × 80 GB at Q4_K_M.
Apple Silicon
Can you run DeepSeek R1 (671B) on a Mac?
| Mac memory | GPU can use | Best quality at 8K | Longest context |
|---|---|---|---|
| 16 GB | 11 GB | Doesn’t fit | — |
| 24 GB | 16 GB | Doesn’t fit | — |
| 32 GB | 21 GB | Doesn’t fit | — |
| 36 GB | 27 GB | Doesn’t fit | — |
| 48 GB | 36 GB | Doesn’t fit | — |
| 64 GB | 48 GB | Doesn’t fit | — |
| 96 GB | 72 GB | Doesn’t fit | — |
| 128 GB | 96 GB | Doesn’t fit | — |
| 192 GB | 144 GB | Doesn’t fit | — |
| 256 GB | 192 GB | Doesn’t fit | — |
| 512 GB | 384 GB | Q3_K_M · 344 GB | 160K |
No Mac holds DeepSeek R1 (671B) at Q4_K_M with the default GPU memory limit: it needs about 421 GB and the largest Mac’s GPU can use about 384 GB. By default macOS lets the GPU use about two thirds of memory on Macs with 32 GB or less and about three quarters on larger ones; the table uses that limit. You can raise it with sudo sysctl iogpu.wired_limit_mb, leaving at least 8 GB for macOS. With the limit raised that way, 512 GB is enough for DeepSeek R1 (671B) at Q4_K_M, which no Mac manages by default.
Context
How much memory does DeepSeek R1 (671B)’s context use?
| Context | KV cache, FP16 | KV cache, 8-bit | Total at Q4_K_M |
|---|---|---|---|
| 8,192 | 0.5 GB | 0.3 GB | 421 GB |
| 32,768 | 2.1 GB | 1.1 GB | 423 GB |
| 131,072 | 8.6 GB | 4.6 GB | 430 GB |
| 163,840 | 11 GB | 5.7 GB | 432 GB |
DeepSeek R1 (671B)’s FP16 cache grows by about 67 MB for every 1,000 tokens. At 8K tokens that is 0.5 GB, under 1% of the total at Q4_K_M; at its full 163,840-token context it is 11 GB, 3% of the 382 GB of Q4_K_M weights. Its 61 attention layers use multi-head latent attention: each caches one compressed vector of 576 values per token instead of separate keys and values for every head, which keeps the cache small for a model of 671.0B parameters. On 6 × 80 GB cards at Q4_K_M, the longest context is about 160K tokens with an FP16 cache, its full context.
Download
How big is the DeepSeek R1 (671B) download?
| GGUF quantisation | Bits per weight | Approximate size |
|---|---|---|
| FP16 / BF16 | 16.00 | 1,250 GB |
| Q8_0 (8-bit) | 8.50 | 664 GB |
| Q6_K | 6.56 | 512 GB |
| Q5_K_M | 5.70 | 445 GB |
| Q4_K_M | 4.89 | 382 GB |
| Q3_K_M | 4.00 | 312 GB |
| Q2_K | 3.16 | 247 GB |
A 671.0B-parameter model takes about 382 GB of disk at Q4_K_M and 1,250 GB as 16-bit weights, so the quantised file saves about 868 GB. Sizes are parameters × bits per weight; real GGUF files differ by a few per cent because some tensors stay at higher precision.
Offload
Can you run DeepSeek R1 (671B) with less VRAM by offloading to RAM?
| GPU VRAM | In system RAM | RAM to have |
|---|---|---|
| 8 GB | 413 GB | 512 GB |
| 16 GB | 405 GB | 512 GB |
| 24 GB | 397 GB | 512 GB |
Yes: llama.cpp can keep part of DeepSeek R1 (671B) in system RAM and run it on the CPU, so the GPU and RAM together need about 421 GB at Q4_K_M and an 8K context. On an 8 GB card that leaves 413 GB in RAM. Because only 8 of its 256 experts run for each token, the usual approach is to keep attention and shared layers on the GPU and move expert weights to RAM with --n-cpu-moe or -ot; each token then reads only a small part of what sits in RAM, so speed drops less than it would for a dense model of 671.0B parameters.
Compare
How does DeepSeek R1 (671B) compare with other DeepSeek models?
| Model | Parameters | Type | Q4 at 8K | Smallest GPU | Context on 24 GB |
|---|---|---|---|---|---|
| DeepSeek R1 Distill Qwen 32B | 32.8B | Dense | 23 GB | 24 GB | 12K |
| DeepSeek R1 (671B) | 671.0B | MoE | 421 GB | None | — |
DeepSeek R1 (671B) is number 2 by size of the 2 DeepSeek models we cover. The next smaller, DeepSeek R1 Distill Qwen 32B, needs about 23 GB at Q4 with an 8K context.
FAQ
Frequently asked questions
How much VRAM does DeepSeek R1 (671B) need?
With an 8K context, about 421 GB at Q4_K_M, 731 GB at 8-bit (Q8_0) and 1,375 GB at full 16-bit precision. That covers the weights, the KV cache and runtime overhead.
Can DeepSeek R1 (671B) run on a 24 GB GPU like the RTX 4090?
Not on one card: even Q2_K needs about 272 GB. It needs more than eight 24 GB cards.
Can I run DeepSeek R1 (671B) on a Mac?
Not at Q4_K_M with the default GPU memory limit: it needs about 421 GB, more than the largest Mac gives the GPU. At Q2_K it fits a 512 GB Mac.
Why does DeepSeek R1 (671B) need so much memory if only 8 experts are active?
Each token uses 8 of its 256 experts, but a different set for every token, so all 671.0B parameters must stay loaded: about 382 GB of weights at Q4_K_M. The active experts make it fast, not small.
Can I run DeepSeek R1 (671B) with only 24 GB of VRAM by using system RAM?
Yes, with CPU+GPU offload in llama.cpp: about 397 GB of it goes in system RAM, so you need 512 GB of RAM or more. Generation is slower than fully on the GPU, though less so for a mixture-of-experts model.
How big is the DeepSeek R1 (671B) download?
About 382 GB for a Q4_K_M GGUF, 664 GB at Q8_0 and 1,250 GB for the 16-bit weights.
Related
Try other settings
Try other settings in the VRAM calculator
- Guide: How much VRAM do you need to run an LLM locally?
- Glossary: Quantisation, GGUF, KV cache, Mixture of experts
Keep exploring