Guide

How much GPU memory do you need to run an LLM?

Last updated: 1 December 2026

The first question for any language model is whether it fits in GPU memory. A simple rule gets you close before you rent anything.

Instant VPS from $7.99 a month

See Instant VPS plansHow ordering works

The rule of thumb

Memory for the weights is roughly the number of parameters times the bytes per parameter. In 16-bit precision that is 2 bytes, in 8-bit 1 byte, and in 4-bit about half a byte. Then add room for the context cache and overhead: plan for at least 10 to 30 percent more.

Examples

Context length and batching

Long prompts and many parallel users grow the context cache. If memory runs out, lower the context length, reduce the batch size or use a smaller quantization.

Matching it to a GPU

T4 has 16 GB, L4 and A30 have 24 GB each, H100 has 80 GB and H200 has 141 GB. A server with 2 or 4 GPUs adds the memory together for models that can be split across cards.

Need a GPU server?

See our GPU servers: NVIDIA T4 to H200, built to order, no ID documents, pay with Monero or Bitcoin. Use them within our acceptable use policy.

Questions and answers

Does quantization hurt quality?
A little, and it depends on the model and method. Test with your own prompts.

Can the CPU RAM help?
Some tools offload layers to RAM, but it is much slower than GPU memory.

What about training?
Training needs several times more memory than inference, because of gradients and optimizer states.

How do I check usage?
Run nvidia-smi and watch the memory column while the model runs.

Related guides

Ready to try it? Instant VPS from $7.99 a month

See Instant VPS plansHow ordering works