MODEL ARCHITECTURE SPEC โ€ข DEEPSEEK671B MoE

DeepSeek-R1 (671B MoE) VRAM & inference speed

671B Total Params37B Active (MoE)61 Layers โ€ข 128 KV Heads64K Default Ctx (Max 125K)Ollama: deepseek-r1:671bโšก MLA Compressed KV Cache

Accurate memory requirements, KV cache footprint, and tokens/sec generation benchmarks for running DeepSeek-R1 (671B MoE) across local GPUs, Apple Silicon Macs, and cloud instances.

โœ• OOM482.94 GB (296%)0 t/s

Target Hardware & Model

interactive
State-of-the-Art Open Reasoning, Math & Code Verification on Multi-GPU or 512GB Mac
DeepSeek-R1 (671B MoE) on Apple Mac Studio M2 Ultra (192GB Unified Memory)MoE (37B Active / 671B Total)

โœ• Out of Memory โ€” Exceeds VRAM Capacity

โœ• OOM
Required VRAM
482.94 GB
296% of hardware capacity (163 GB)
Est. Decode Speed
0 tok/s
37B active params @ 800 GB/s
Available Headroom
-319.94 GB
Needs +319.94 GB more VRAM
Memory Allocation & Headroom
482.94 GB allocated of 163 GB capacity
296% utilized
Weights: 402.6 GBMoE (37B Active)
KV: (32K): 65.5 GBMLA (-85%)
Overhead: 14.84 GB
Deficit: -319.94 GB
โšก Architecture & Throughput Transparency: Single-user decode speed (~0 tok/s) is memory-bandwidth bound at batch size = 1 on Apple Mac Studio M2 Ultra (192GB Unified Memory) (800 GB/s). Prompt prefill / TTFT (~0 tok/s) is compute-bound and utilizes GPU Tensor cores. Actual latency varies with FlashAttention-2 and runtime engine (Ollama/vLLM/llama.cpp).
MoE Memory vs Speed Architecture: While decode throughput scales with the active parameter count (37B parameters streamed per token), all 671B parameters must be resident in VRAM so the dynamic router can route tokens to any expert layer.
Multi-Head Latent Attention (MLA): DeepSeek compresses Key-Value projections into a low-rank latent vector, cutting KV memory footprint by ~85% compared to standard MHA/GQA.

Quantization Precision Matrix

32K ctx โ€ข KV: Q8_0
QuantizationWeightsKV CacheTotal VRAMEst. SpeedFit Status
FP1616 bpw1342 GB65.5 GB1455.22 GB (893%)0 t/sOOM
Q8_08.5 bpw711.26 GB65.5 GB802.4 GB (492%)0 t/sOOM
Q6_K6.56 bpw550.22 GB65.5 GB635.73 GB (390%)0 t/sOOM
Q5_K_M5.68 bpw476.41 GB65.5 GB559.33 GB (343%)0 t/sOOM
Q4_K_M4.8 bpw402.6 GB65.5 GB482.94 GB (296%)0 t/sOOM
FP44.25 bpw355.63 GB65.5 GB434.33 GB (266%)0 t/sOOM
IQ3_XS3.3 bpw275.11 GB65.5 GB350.99 GB (215%)0 t/sOOM

Export Full Architecture & Infrastructure Spec

Get an executive-ready PDF report with exact memory math, hardware benchmarks, and cost comparisons.

Hardware Compatibility Matrix for DeepSeek-R1 (671B MoE)

Standard Q4_K_M precision with 32K context window and Q8_0 KV cache

20 Systems Benchmarked
Hardware SystemVRAM EnvelopeRequired VRAMHeadroomEst. Decode SpeedCompatibilityTest Fit
NVIDIA GeForce RTX 5090 (32GB GDDR7)
Consumer GPU โ€ข 1792 GB/s
32 GB482.94 GB-450.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA GeForce RTX 4090 (24GB GDDR6X)
Consumer GPU โ€ข 1008 GB/s
24 GB482.94 GB-458.94 GB0 (OOM)โœ• OOMTest Fit โ†’
2x NVIDIA RTX 3090 Dual Rig (48GB Total VRAM)
Multi-GPU Rig โ€ข 936 GB/s
48 GB482.94 GB-434.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA GeForce RTX 5080 (16GB GDDR7)
Consumer GPU โ€ข 960 GB/s
16 GB482.94 GB-466.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA RTX 4070 Ti Super (16GB)
Consumer GPU โ€ข 672 GB/s
16 GB482.94 GB-466.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA GeForce RTX 3060 (12GB)
Consumer GPU โ€ข 360 GB/s
12 GB482.94 GB-470.94 GB0 (OOM)โœ• OOMTest Fit โ†’
Apple MacBook Pro/Air M1 (8GB Unified Memory)
Apple Silicon โ€ข 68 GB/s
7 GB482.94 GB-475.94 GB0 (OOM)โœ• OOMTest Fit โ†’
Apple MacBook Pro/Air (16GB Unified Memory)
Apple Silicon โ€ข 100 GB/s
14 GB482.94 GB-468.94 GB0 (OOM)โœ• OOMTest Fit โ†’
Apple Mac Mini M4 Pro (64GB Unified Memory)
Apple Silicon โ€ข 273 GB/s
54 GB482.94 GB-428.94 GB0 (OOM)โœ• OOMTest Fit โ†’
Apple Mac Studio M4 Max (128GB Unified Memory)
Apple Silicon โ€ข 546 GB/s
112 GB482.94 GB-370.94 GB0 (OOM)โœ• OOMTest Fit โ†’
Apple Mac Studio M5 Ultra (256GB Unified Memory)
Apple Silicon โ€ข 890 GB/s
236 GB482.94 GB-246.94 GB0 (OOM)โœ• OOMTest Fit โ†’
AMD Strix Halo Mini-PC (Ryzen AI Max+ 395 128GB)
Unified APU / Mini-PC โ€ข 256 GB/s
110 GB482.94 GB-372.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA DGX Spark (128GB Grace-Blackwell Unified)
AI Appliance โ€ข 273 GB/s
118 GB482.94 GB-364.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA H100 SXM (80GB HBM3 Cloud GPU)
Datacenter Cloud GPU โ€ข 3350 GB/s
80 GB482.94 GB-402.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA GeForce RTX 5070 Ti (16GB GDDR7)
Consumer GPU โ€ข 896 GB/s
16 GB482.94 GB-466.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA GeForce RTX 5070 (12GB GDDR7)
Consumer GPU โ€ข 672 GB/s
12 GB482.94 GB-470.94 GB0 (OOM)โœ• OOMTest Fit โ†’
NVIDIA GeForce RTX 4080 Super (16GB GDDR6X)
Consumer GPU โ€ข 736 GB/s
16 GB482.94 GB-466.94 GB0 (OOM)โœ• OOMTest Fit โ†’
AMD Radeon RX 7900 XTX (24GB GDDR6)
Consumer GPU โ€ข 960 GB/s
24 GB482.94 GB-458.94 GB0 (OOM)โœ• OOMTest Fit โ†’
AMD Radeon RX 7900 XT (20GB GDDR6)
Consumer GPU โ€ข 800 GB/s
20 GB482.94 GB-462.94 GB0 (OOM)โœ• OOMTest Fit โ†’
Apple Mac Studio M2 Ultra (192GB Unified Memory)
Apple Silicon Workstation โ€ข 800 GB/s
144 GB482.94 GB-338.94 GB0 (OOM)โœ• OOMTest Fit โ†’