💻

DeepSeek-R1 (671B) GPU Memory Calculator

Exact VRAM memory allocation, dynamic KV-cache requirements, and tensor parallelism slicing for DeepSeek-R1 Reasoning 671B quantized in FP16 Uncompressed Native deployed on NVIDIA H100 80GB SXM5.

🎛️ Architecture & System Parameters
Reactive Compute Engine

Engineering Execution Protocol

  1. Keep 671B parameters: R1 has the same architecture as DeepSeek-V3.
  2. Set the context to prompt length plus the longest reasoning output you will allow, since R1 often generates thousands of thinking tokens.
  3. Compare the result with a distilled model (for example R1-Distill-Qwen-32B) if a multi-GPU node is out of budget.

Technical Authority & System Specifications

Q: Does DeepSeek-R1 need more memory than DeepSeek-V3?

The weights are the same size. R1 needs more cache and GPU time per answer because its chains of thought are long, so budget for output length and concurrency.

Q: What hardware runs the full R1 model?

FP8 weights are 671 GB, which suits one 8 × H200 node or two 8 × H100 nodes. 4-bit builds of roughly 340–380 GB fit one 8 × H100 node.

Q: Are the distilled R1 models the same model?

No. They are Qwen 2.5 and Llama models fine-tuned on R1's outputs, from 1.5B to 70B parameters. They are far cheaper to run but less capable than the full 671B model.

DeepSeek-R1 in one paragraph

DeepSeek-R1 (January 2025, MIT licence) is a reasoning model: before it answers, it writes out a long chain of thought, and that visible "thinking" is what made it notable. It was trained from the DeepSeek-V3 base model with large-scale reinforcement learning, so its architecture and size are identical to V3: 671B total parameters, about 37B active per token, 61 layers, Multi-head Latent Attention, and a 128K-token context window. DeepSeek later published an updated checkpoint, R1-0528, with the same shape. Alongside R1 it released six much smaller "distilled" models (1.5B, 7B, 14B and 32B based on Qwen 2.5, and 8B and 70B based on Llama) that imitate R1's reasoning style.

For hardware planning the important difference from V3 is not the weights but the length of the outputs. A single R1 answer to a maths or coding question routinely runs to thousands of tokens of reasoning, and DeepSeek's own evaluations allowed up to 32,768 generated tokens. Every one of those tokens adds to the KV cache and occupies the GPU for a decoding step.

The arithmetic behind the result

This page uses the same estimator as the other model pages on the site: weight memory is parameters times bytes per parameter; KV cache is context length × concurrent requests × a per-token figure that the calculator scales from a 70B reference (0.5 MB per token at 16-bit, half that at 8-bit or below); and a flat 1.8 GB covers the CUDA context and framework. The GPU count divides the total by 92% of one card's memory.

The per-token KV figure is where R1 needs care. The scaling rule assigns 671B parameters about 4.8 MB per token. R1's latent attention actually caches 576 numbers per layer per token, about 69 KiB in BF16. If you run R1 on an engine that supports MLA properly, the true cache is a small fraction of the calculator's number, which is why the long reasoning traces are affordable at all.

Example with the default settings

Defaults: 671B parameters, 16-bit precision, 8,192-token window, 2 concurrent requests, 80 GB GPUs.

  • Weights: 671 × 2 bytes = 1,342.0 GB.
  • KV cache by the calculator's rule: 8,192 × 2 × 4.79 MB ÷ 1024 = 76.7 GB (about 1.1 GB with real MLA sizing).
  • Overhead 1.8 GB, so the total shown is 1,420.5 GB.
  • 1,420.5 ÷ 73.6 usable GB per H100 = 19.3, so the calculator asks for 20 × 80 GB GPUs.

An 8,192-token window is short for a reasoning model. Set the context to 32,768 with one request at FP8 and the calculator gives 671 GB of weights plus 76.7 GB of cache, 749.5 GB in total, or 11 H100s. With MLA sizing the cache for that request is closer to 2.3 GB. The gap shows how much the choice of estimator matters for long generations.

Practical deployment choices

OptionApproximate memoryTypical hardware
R1 FP8 (as released)671 GB weights + cacheOne 8 × H200 node, or two 8 × H100 nodes
R1 community 4-bitabout 340–380 GB weightsOne 8 × H100 node; large-RAM CPU offload for slow local use
R1-Distill-Llama-70B, BF16140 GB weights2–4 × 80 GB GPUs
R1-Distill-Qwen-32B, 4-bitabout 17–20 GB weightsOne 24 GB consumer GPU
R1-Distill-Qwen-7B, BF16about 15 GB weightsOne 24 GB GPU

Weights in this table are parameter count times bytes per parameter; 4-bit formats carry some extra scale data, so real files are slightly larger. If you want the full R1 behaviour, plan for FP8 on H200-class memory. If you mostly need "think step by step" quality on a budget, the distilled models change the problem from a multi-node cluster to a single card, at a real cost in capability that you should measure on your own prompts.

  • Budget for output length, not just prompt length. Set the calculator's context to prompt plus the maximum number of new tokens you will allow.
  • Concurrency multiplies cache. Eight simultaneous 32K-token reasoning sessions is a very different load from eight chat turns.
  • DeepSeek's model card recommends a temperature around 0.6 and putting instructions in the user turn rather than a system prompt. These settings affect answer quality, not memory.
  • Reasoning tokens cost decode time. Even when memory fits, a 10,000-token chain of thought takes many seconds per answer, so measure latency before promising interactive response times.

What this page does not capture

  • MLA's compressed cache is not modelled, so long-context figures are pessimistic for engines that support it and roughly right only for engines that expand keys and values per head.
  • The throughput line is a heuristic based on total parameters. R1 touches about 37B parameters per token, so real decoding can be faster than shown, and it depends on expert-parallel balance.
  • Memory for speculative decoding, prefix caching or multiple model replicas is not included.
Sources: DeepSeek-R1 model card · DeepSeek-R1 paper · DeepSeek-R1-0528 model card · NVIDIA H200 product page. Figures were checked against these pages in October 2026; vendors sometimes revise them.
Primary System Output
Calculating...
HARDWARE ARCHITECTURE ACTIVE
ADVERTISEMENT
Tool #8 of 101,000 Compute Matrix
Calculated Output
Calculating...
✓ Architecture specification report copied to clipboard!