GPU VRAM calculator · DeepSeek

How much VRAM does DeepSeek V3.1 need?

DeepSeek V3.1 has 671 billion parameters. The weights alone take about 1249.8 GB in FP16/BF16, 624.9 GB in FP8 and 378.9 GB at 4-bit. KV cache comes on top: about 0.5 GB per sequence at an 8K context in FP16.

It is a mixture-of-experts model (256 experts, 8 active per token). Only some experts run for each token, but all of them must sit in GPU memory, so VRAM follows the total parameter count.

At Q4_K_M / 4-bit with an 8K context it does not fit on one GPU: 6× A100 80GB / 6× H100 / 4× H200 / 3× B200.

At FP16 / BF16 it is too large for 8 data-center GPUs.

VRAM for inference (8K context, 1 sequence)

PrecisionWeightsTotalSmallest GPU
FP16 / BF161249.8 GB1313.9 GB—
FP8 / INT8624.9 GB657.7 GB6× H200 / 5× B200
Q6_K512.4 GB539.6 GB8× A100 80GB / 8× H100 / 5× H200 / 4× B200
Q4_K_M / 4-bit378.9 GB399.3 GB6× A100 80GB / 6× H100 / 4× H200 / 3× B200

Which GPU on CloudGPU fits DeepSeek V3.1

GPUVRAMFP16 / BF16FP8 / INT8Q6_KQ4_K_M / 4-bit
RTX 309024 GBToo smallToo smallToo smallToo small
RTX 409024 GBToo smallToo smallToo smallToo small
RTX 509032 GBToo smallToo smallToo smallToo small
RTX 4090 48GB48 GBToo smallToo smallToo smallToo small
L40S48 GBToo smallToo smallToo smallToo small
A100 80GB80 GBToo smallToo smallToo smallToo small
H10080 GBToo smallToo smallToo smallToo small
H200141 GBToo smallToo smallToo smallToo small
B200180 GBToo smallToo smallToo smallToo small

8K context, 1 sequence. Each card links to its rental page. Current prices are on the pricing page; availability is shown on the deploy page.

KV cache by context length (per sequence)

ContextKV cache (FP16)KV cache (FP8)
4K0.3 GB0.1 GB
32K2.1 GB1.1 GB
128K8.6 GB4.3 GB

Multiply by the number of concurrent sequences. Maximum context in the model config: 163,840 tokens. Models with sliding-window attention use less than this upper bound.

VRAM for fine-tuning (2K-token sequences, batch 1)

WorkloadTotalSmallest GPU
QLoRA fine-tune460.1 GB7× A100 80GB / 7× H100 / 4× H200 / 3× B200
LoRA fine-tune1502.9 GB—
Full fine-tune11249.6 GB—

How the estimate works

Weights = parameters × bits per parameter ÷ 8. KV cache = per-token KV size from the model config × context × concurrent sequences (halved for an FP8 KV cache). Runtime overhead = 1 GB plus 5% of the weights. LoRA assumes a 16-bit base model ×1.2 + 2 GB, QLoRA a 4-bit base ×1.3 + 2 GB, and full fine-tuning 18 bytes per parameter (AdamW, mixed precision). Real usage varies with the framework, sliding-window attention and batch shape, so leave some headroom.

Parameter count and architecture read from deepseek-ai/DeepSeek-V3.1 on Hugging Face on 2026-12-03. These are estimates, not measurements; leave some headroom.

DeepSeek V3.1 VRAM FAQ

How much VRAM does DeepSeek V3.1 need?

About 1249.8 GB for FP16 weights, 624.9 GB for FP8 and 378.9 GB at 4-bit, plus KV cache (about 0.5 GB per sequence at an 8K context) and about 1 GB of runtime overhead.

Can DeepSeek V3.1 run on an RTX 4090 (24 GB)?

Not on one 24 GB card: even at 4-bit it needs about 399.3 GB with an 8K context. At Q4_K_M / 4-bit with an 8K context it does not fit on one GPU: 6× A100 80GB / 6× H100 / 4× H200 / 3× B200.

How much VRAM do I need to fine-tune DeepSeek V3.1?

Roughly 460.1 GB with QLoRA, 1502.9 GB with LoRA on a 16-bit base model, and 11249.6 GB for full fine-tuning with AdamW (2K-token sequences, batch 1).