~/can-i-run/deepseek-r1
DeepSeek

Can I run DeepSeek R1?

Short answer: yes, on a M3 Ultra 512 (512GB) at Q4_K_M. Long answer below.

deepseek-r1LM StudiovLLMMLXoMLX

The math, in one paragraph.

$ ./vrambudget --explain deepseek-r1

DeepSeek R1 has 671B parameters (MoE: 37B active per forward pass, but all 671B must fit in memory). At FP16 that's 1342 GB of raw weights. Quantization shrinks that, but you also need budget for the KV cache (definition), framework overhead, and safety headroom. The rule of thumb: real usable budget on a card is roughly its nameplate VRAM minus 25%. That's how the table below was computed.

What hardware actually fits.

$ grep "fits" gpus.json
FP16/BF16
1342GB
0 GPUs fit
— none in the catalog —
Q8_0
713GB
0 GPUs fit
— none in the catalog —
Q5_K_M
461GB
0 GPUs fit
— none in the catalog —
Q4_K_M
377GB
1 GPU fits
M3 Ultra 512512GB
Q3_K_M
289GB
1 GPU fits
M3 Ultra 512512GB

Pick your path.

$ ls strategies/
Tightest budget

Smallest GPU that fits DeepSeek R1 at any quant: M3 Ultra 512 at Q4_K_M.

Reference quality (FP16)

Lossless inference needs 1342 GB. Pick from multi-GPU only.

Best quality on a 24GB card

None of the showcase quants fit on a 24GB card. Step up.

Tune the math yourself

Open the calculator pre-tuned for DeepSeek R1: ↗ /calc?model=deepseek-r1

See the full model page.

$ ./open

Discussion.

$ gh discussion list

// sign in with github to leave a comment. threads live in the repo's discussions tab.