Skip to content
Launch imminent

Official date to be announced shortlyGPU offers available at launch; figures shown are indicative.

Priority access: sign up

How much VRAM do you need for an LLM?

Calculate the GPU memory a language model needs: weights by precision for 7B to 405B models, plus KV cache, and the GPU that fits.

Guide4 sections2 min read

The short answer

The model weights need about the number of parameters multiplied by the bytes per parameter: 2 bytes in FP16 or BF16, 1 byte in INT8 or FP8, and half a byte in INT4. A 70B model therefore needs about 140 GB for its weights in FP16, 70 GB in INT8 and 35 GB in INT4.

The formula

Weight memory (GB) = parameters (billions) × bytes per parameter. The values in the table use decimal gigabytes and count the weights only.

Add memory for the KV cache, which grows with context length, batch size and the number of layers, plus activations and framework overhead. Leave room for them: a model whose weights exactly fill a GPU will not run on it.

Reading the table

The last column names the smallest single GPU, among common rental options, whose memory exceeds the FP16 weights. It is a starting point, not a guarantee: check the KV cache for your context length, or use several GPUs.

Quantization to INT8 or INT4 cuts weight memory by two or four, with a possible quality trade-off that you should measure on your own prompts.

Training needs much more

Training and full fine-tuning also store gradients and optimizer states, which multiply the memory needed well beyond the weights. Parameter-efficient methods such as LoRA and QLoRA keep most weights frozen and need far less.

Weight memory by model size and precision, and the smallest single GPU that holds the weights

Model sizeWeights in FP16 / BF16Weights in INT8 / FP8Weights in INT4Smallest single GPU (FP16)
7B parameters14 GB7 GB3.5 GBNVIDIA GeForce RTX 4090 24GB
13B parameters26 GB13 GB6.5 GBNVIDIA GeForce RTX 5090 32GB
34B parameters68 GB34 GB17 GBNVIDIA A100 SXM 80GB
70B parameters140 GB70 GB35 GBNVIDIA H200 141GB
405B parameters810 GB405 GB202.5 GBSeveral GPUs

Frequently asked questions

How much VRAM do I need to run a 70B model?
About 140 GB for the weights in FP16, 70 GB in INT8 and 35 GB in INT4, plus memory for the KV cache and overhead.
Can a 7B model run on a 24 GB GPU?
Its weights need about 14 GB in FP16, so it fits on a 24 GB GPU such as the RTX 4090 with room left for the KV cache at moderate context lengths.
Does the KV cache matter?
Yes. It grows with context length and batch size and can take a large share of memory for long contexts or many concurrent requests.

Keep reading

All guides

Next guide2 min read

Best GPU for Stable Diffusion and Flux

Which GPU to rent for Stable Diffusion, SDXL and Flux image generation: memory first, then speed, with RTX, L40S and RTX PRO options.

Guide 161 min read

Cheapest way to rent a GPU for AI

How to pay less for AI GPU time: right-size memory, quantize, bid below the market, and stop paying when the job ends.

Be ready on launch day

Create your account now: you can top up your balance and launch a GPU as soon as the market opens.