Free tool
LLM VRAM calculator: will your model fit on a GPU?
Estimated GPU memory
122GB
- Weights
- 71 GB
- KV cache
- 43 GB
- Runtime overhead
- 8.1 GB
Cheapest configurations that fit
-
$3,090/mo
-
$4,590/mo
-
$5,190/mo
Estimate with about 8% of GPU memory kept free. Real usage depends on the framework, batch size and sequence lengths.
How the LLM VRAM calculator works
For inference, the estimate is:
GPU memory ≈ weights + KV cache + overhead (10–20%)
Model weights: parameters × bytes per parameter
Each parameter is stored in a numeric format, and the format sets its size:
| Precision | Bytes per parameter | 8B model | 70B model |
|---|---|---|---|
| BF16 / FP16 | 2 | about 16 GB | about 140 GB |
| FP8 / INT8 | 1 | about 8 GB | about 70 GB |
| FP4 / INT4 | 0.5 | about 4 GB | about 35 GB |
KV cache: memory that grows with every token
During generation, the model keeps the attention keys and values of every token in context, so it does not recompute them. Per token, that costs:
KV cache per token = 2 × layers × KV heads × head dimension × bytes per value
The factor 2 counts keys and values. Multiply by the tokens in flight: context length × concurrent sequences.
Worked example: a 70B model with grouped-query attention
Take a 70B model with 80 layers, 8 KV heads and a head dimension of 128, with the cache in BF16 (2 bytes per value):
- 2 × 80 × 8 × 128 × 2 = 327,680 bytes, or about 320 KB per token.
- One sequence of 32k tokens (32,768): about 10 GB.
- Eight concurrent 32k sequences: about 80 GB, more than the model's FP8 weights.
Runtime overhead and activations
Expect monitoring tools to show a nearly full GPU even at idle. Inference servers such as vLLM reserve a fixed share of memory at startup and fill it with KV cache blocks; the size of that reserve decides how many requests run at once.
Fine-tuning memory: full, LoRA and QLoRA
Full fine-tuning with AdamW in mixed precision needs roughly 16 bytes per parameter before activations: 2 for BF16 weights, 2 for gradients, 4 for an FP32 master copy and 8 for the two optimizer moments. For a 70B model that is about 1.1 TB, a job for an 8-GPU server with sharding (FSDP orZeRO-3 ), such as 8× B200 (1.44 TB) or 8× B300 (2.3 TB).- LoRA freezes the base model and trains small adapter matrices, usually well under 1% of the parameters. Memory is roughly the frozen weights (about 140 GB for 70B in BF16) plus the adapters, their gradients and optimizer states, plus activations.
- QLoRA
loads the frozen weights in 4-bit , about 0.5 bytes per parameter, so a 70B base model takes roughly35–40 GB before adapters and activations. One 80 GB H100 or 96 GB RTX PRO 6000 handles it at moderate sequence lengths.
Activations grow with batch size and sequence length and can exceed the weights on long sequences. Gradient checkpointing trades extra compute for much less activation memory.
Splitting a model across several GPUs
Limits of any VRAM estimate
run only a few experts per token, but every expert must sit in memory. Size them by total parameters, not active parameters.Mixture-of-Experts models- Framework overheads vary with the engine, its version, kernels and settings. Two servers running the same model can differ by several gigabytes.
- Long contexts
shift the balance: from 128k tokens up, the KV cache can outgrow the weights. Attention variants such as sliding-window or latent attention change theper-token formula. - Multimodal models add vision or audio encoders and their activations.
Which GPU fits your estimate
Keeping about 8% of memory free, the same margin as the calculator, these are the largest estimates each single GPU can hold:
| Your estimate | Single GPU | Memory |
|---|---|---|
| up to about 29 GB | GeForce RTX 5090 | 32 GB GDDR7 |
| up to about 44 GB | L40S | 48 GB GDDR6 |
| up to about 73 GB | H100 SXM | 80 GB HBM3 |
| up to about 88 GB | RTX PRO 6000 Blackwell | 96 GB GDDR7 |
| up to about 129 GB | H200 | 141 GB HBM3e |
| up to about 165 GB | B200 | 180 GB HBM3e |
| up to about 248 GB | B300 | 288 GB HBM3e (about 270 GB usable) |
Found the right size?
Deploy the server that fits: root access over SSH, billed monthly, delivered in under 10 minutes.
Deploy a serverFAQ
Questions, answered.
The short version. The help center has the details, and customers with an active server get answers by ticket, 24/7.
Visit the help centerHow much VRAM do I need to run a 70B model?
How does context length affect GPU memory?
Why add 10–20 % on top of the weights and KV cache?
How much GPU memory does fine-tuning need?
Do Mixture-of-Experts models need less VRAM?
Not for the weights: every expert must be loaded, even though only a few run per token. Size an MoE model by its total parameter count; the smaller active count reduces compute per token, not memory.
Can I split a model across several GPUs?
Deploy a GPU server
Get your GPU server this month.
Choose a configuration, create your account in the same form and pay the first month from your balance. Your server is delivered in under 10 minutes.
- Delivered in under 10 minutes
- Cancel any month
- Pay with crypto, up to +50% bonus