Skip to content
E
Educatum
DeepSeek MoE + MLAVerified deepseek-ai/DeepSeek-V3 config.json

DeepSeek-V3 / R1 (671B) VRAM & GPU Requirements Calculator

DeepSeek-V3 / R1 (671B) requires 1249.8 GiB in FP16, 624.9 GiB in FP8, and 381.2 GiB in GGUF Q4_K_M for weights alone (671B total / 37B active MoE · MLA latent dim 512 + 64 RoPE). At 8K context (batch=1, FP16 KV), KV-cache adds 0.54 GiB (56.9× smaller than MHA).

FP16 Inference (8K)
1267.7 GiB
1249.8 GiB weights
FP8 Weights + FP8 KV
642.5 GiB
624.9 GiB weights
GGUF Q4_K_M (8K)
399.0 GiB
381.2 GiB weights
32K KV-Cache (FP16)
2.14 GiB
56.9× vs MHA

Can Your GPU or Mac Run DeepSeek-V3 / R1? (8K Context, Batch=1)

Pre-computed fit verdict and estimated decode speed across RTX 4090/3090, Apple Silicon Unified Memory, and NVIDIA H100 clusters.

Hardware RigQ4_K_M (399.0 GiB)FP8 (642.5 GiB)FP16 (1267.7 GiB)
1× RTX 4090 (23.9 GiB usable)OOM (-359G)OOM (-603G)OOM (-1228G)
2× RTX 4090 / 3090 (47.8 GiB usable)OOM (-337G)OOM (-581G)OOM (-1206G)
Apple M4 Max (128 GiB Unified · 96 GiB GPU)OOM (-287G)OOM (-531G)OOM (-1156G)
Apple M3 Ultra (256 GiB Unified · 192 GiB GPU)OOM (-191G)OOM (-435G)OOM (-1060G)
1× H100 SXM (79.6 GiB usable)OOM (-304G)OOM (-547G)OOM (-1172G)
4× H100 SXM (318.4 GiB usable)OOM (-71G)OOM (-314G)OOM (-940G)
8× H100 SXM (636.8 GiB usable)FIT · ~86 tok/sOOM (-6G)OOM (-631G)
8× H200 SXM (1,123.2 GiB usable)FIT · ~89 tok/sFIT · ~85 tok/sOOM (-144G)

Interactive DeepSeek-V3 / R1 VRAM & Roofline Simulator

1. Model & Workload

MLA · 671B/37B MoE

671B total / 37B active MoE · MLA latent dim 512 + 64 RoPE

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
8,192 tok
1 reqs

2. Target GPU / Mac Silicon

1123.2 GiB Usable · 31.49 TB/s eff.
GPU Count (Tensor Parallel)
FITS IN VRAM (+480.4 GiB headroom)
642.8 / 1123.2 GiB usable (57%)

Decode is HBM-bandwidth bound (2.0 vs 412 FLOPs/B ridge): increasing batch size improves cluster tok/s nearly linearly.

Total VRAM
642.8 GiB
Weights 624.9 GiB (FP8)
KV-Cache
0.5 GiB
56.9× vs MHA
Decode / User
~84.9 tok/s
HBM Bound
Cluster Output
~85 tok/s
AI 2.0 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 642.8 GiB · Usable: 1123.2 GiB (57%) 1123.2 GiB Usable Weights: 624.9 GiBKV-Cache: 0.5 GiBAct + CUDA: 17.3 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 2.0 vs Ridge 412 FLOPs/B
1416642561024 Ridge: 412 FLOPs/B · 12982 TFLOPS Memory-Bandwidth Bound (2.0 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
DeepSeek-V3 / R1 (671B MoE + MLA) · KV_tok = 61L × (512 + 64) × 2B = 68.6 KiB/tok (56.9× vs MHA)
Decode Step Read: 34.5 GiB active weights + 0.54 GiB KV-cache → AI = 1.97 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s)

Compare Other LLM VRAM Requirements

All 14 Models →

Frequently Asked Questions

Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run DeepSeek-V3 / R1 (671B)?

At 8K context (batch=1) in GGUF Q4_K_M, DeepSeek-V3 / R1 (671B) needs 399.0 GiB total VRAM including CUDA runtime overhead (381.2 GiB weights). Single 23.9 GiB usable RTX 4090: OOM without CPU offload. Dual 47.8 GiB usable (2× 4090/3090): Exceeds 47.8 GiB usable VRAM.

Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run DeepSeek-V3 / R1 (671B)?

An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (399.0 GiB needed at 8K), it exceeds M4 Max 128 GiB (needs M3 Ultra 256/512 GiB or multi-GPU cluster).

How much KV-cache does DeepSeek-V3 / R1 (671B) use at 32K context?

DeepSeek-V3 / R1 (671B) uses MLA, giving a 56.9× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 2.14 GiB.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.