// Model Hardware Sizing Benchmark

DeepSeek-R1 671B (MoE) GPU VRAM & Cluster Sizing Guide

First-principles GPU memory breakdown for DeepSeek-R1 671B (MoE) (Mixture-of-Experts (671B total, 37B active/token), 61 layers, Multi-Head Latent Attention (MLA), up to 128K context)—covering weight quantization, KV-cache concurrency math, and GPU topology fit. All figures are estimates from public model-card parameters.

Customize DeepSeek-R1 671B (MoE) in Interactive Calculator → Local GGUF & Apple Silicon Sizer

32K Context Peak VRAM Summary (1 Active Sequence)

FP8 E4M3 Recommended 713.1 GB 8x NVIDIA H200 (1128GB)
INT4 AWQ / GPTQ 360.8 GB 8x NVIDIA H100 (640GB)
BF16 / FP16 Unquantized 1419.8 GB 8x NVIDIA H200 (1128GB)
FP8 KV-Cache per 1K Tokens 68.6 MB 61 layers × 4 KV heads × 144d (per sequence)
DeepSeek-R1 671B (MoE) VRAM Allocation Across Precision, Context & Concurrency (Click column headers to sort)
Minimum Cloud GPU
INT4 AWQ / GPTQ @ 8K (1x)352.3 GB0.54 GB359.2 GB8x NVIDIA H100 (640GB)$17,275/mo
INT4 AWQ / GPTQ @ 32K (4x)352.3 GB8.58 GB367.3 GB8x NVIDIA H100 (640GB)$17,275/mo
FP8 E4M3 (Production) @ 8K (1x)704.6 GB0.54 GB711.5 GB8x NVIDIA H200 (1128GB)$22,780/mo
FP8 E4M3 (Production) @ 32K (4x)704.6 GB8.58 GB719.5 GB8x NVIDIA H200 (1128GB)$22,780/mo
FP8 E4M3 (Long Context) @ 128K (8x)704.6 GB68.62 GB779.6 GB8x NVIDIA H200 (1128GB)$22,780/mo
BF16 / FP16 (Unquantized) @ 8K (1x)1409.1 GB1.07 GB1416.6 GB8x NVIDIA H200 (1128GB)$22,780/mo
BF16 / FP16 (Production) @ 32K (4x)1409.1 GB17.16 GB1432.7 GB8x NVIDIA H200 (1128GB)$22,780/mo

Production vLLM Deployment Command (DeepSeek-R1 671B (MoE) FP8)

The baseline configuration below launches deepseek-ai/DeepSeek-R1 across 8x NVIDIA H200 (1128GB) (TP=8) with chunked prefill enabled to bound Time-To-First-Token (TTFT) spikes under concurrent load:

Bash • vLLM OpenAI-Compatible Server Export SGLang / Docker / K8s →
python3 -m vllm.entrypoints.openai.api_server \
  --model deepseek-ai/DeepSeek-R1 \
  --tensor-parallel-size 8 \
  --max-model-len 32768 \
  --quantization fp8 \
  --gpu-memory-utilization 0.93 \
  --enable-chunked-prefill \
  --port 8000

Architectural Sizing Notes & FAQ

How is KV-Cache calculated for DeepSeek-R1 671B (MoE)?

DeepSeek-R1 671B (MoE) uses 61 transformer layers with Multi-Head Latent Attention (MLA). In FP8 (1 byte/element) at 32,768 tokens for a single sequence, weights occupy 704.6 GB, the KV-cache consumes 2.14 GB, and CUDA runtime workspace reserves 6.4 GB—totaling 713.1 GB.

Can DeepSeek-R1 671B (MoE) run on a single GPU?

At a 32K context with one sequence, INT4 AWQ/GPTQ weights bring the estimate down to 360.8 GB, which maps to 8x NVIDIA H100 (640GB). FP8 needs 713.1 GB (8x NVIDIA H200 (1128GB)). Each additional concurrent 32K sequence adds about 2.14 GB of FP8 KV-cache. The GPU hourly rates used for the monthly column are illustrative on-demand figures, not quotes.

Explore Other Open-Weights Hardware Guides

DeepGen Command Palette

Copied!