Skip to content
AI Dev Toolkit.
Esc
  • Loading…

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?

Quantisation8K context32K context128K context160K context
FP16 / BF161,375 GB1,377 GB1,384 GB1,387 GB
Q8_0 (8-bit)731 GB733 GB740 GB742 GB
Q6_K564 GB566 GB573 GB575 GB
Q5_K_M490 GB492 GB499 GB502 GB
Q4_K_M421 GB423 GB430 GB432 GB
Q3_K_M344 GB346 GB353 GB355 GB
Q2_K272 GB274 GB281 GB283 GB

Weights + FP16 KV cache + overhead, batch 1; the VRAM calculator shows the formula.

GPUs

Which GPUs can run DeepSeek R1 (671B)?

MemoryExample cardBest quality at 8KLongest context at that qualityLongest context at Q4_K_M
8 GBGeForce RTX 4060Doesn’t fit——
12 GBGeForce RTX 5070Doesn’t fit——
16 GBGeForce RTX 5080Doesn’t fit——
24 GBRadeon RX 7900 XTXDoesn’t fit——
32 GBGeForce RTX 5090Doesn’t fit——
48 GBL40SDoesn’t fit——
80 GBH100 80GBDoesn’t fit——
96 GBRTX PRO 6000 BlackwellDoesn’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 memoryGPU can useBest quality at 8KLongest context
16 GB11 GBDoesn’t fit—
24 GB16 GBDoesn’t fit—
32 GB21 GBDoesn’t fit—
36 GB27 GBDoesn’t fit—
48 GB36 GBDoesn’t fit—
64 GB48 GBDoesn’t fit—
96 GB72 GBDoesn’t fit—
128 GB96 GBDoesn’t fit—
192 GB144 GBDoesn’t fit—
256 GB192 GBDoesn’t fit—
512 GB384 GBQ3_K_M · 344 GB160K

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?

ContextKV cache, FP16KV cache, 8-bitTotal at Q4_K_M
8,1920.5 GB0.3 GB421 GB
32,7682.1 GB1.1 GB423 GB
131,0728.6 GB4.6 GB430 GB
163,84011 GB5.7 GB432 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 quantisationBits per weightApproximate size
FP16 / BF1616.001,250 GB
Q8_0 (8-bit)8.50664 GB
Q6_K6.56512 GB
Q5_K_M5.70445 GB
Q4_K_M4.89382 GB
Q3_K_M4.00312 GB
Q2_K3.16247 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 VRAMIn system RAMRAM to have
8 GB413 GB512 GB
16 GB405 GB512 GB
24 GB397 GB512 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?

ModelParametersTypeQ4 at 8KSmallest GPUContext on 24 GB
DeepSeek R1 Distill Qwen 32B32.8BDense23 GB24 GB12K
DeepSeek R1 (671B)671.0BMoE421 GBNone—

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 in the VRAM calculator

Keep exploring