GPU and AI
How much VRAM do you need to run an LLM?
A sizing rule you can do in your head: parameters, quantization and context, with worked examples from 16 to 288 GB.

Before speed, before price, one question decides which GPU can run a language model: does it fit in memory? If the weights do not fit in VRAM, the model either refuses to load or crawls. The good news is that the answer is arithmetic you can do in your head.
The rule
VRAM needed ≈ parameters (in billions) × bytes per weight × 1.2
- Parameters are in the model’s name: a “70B” model has 70 billion.
- Bytes per weight depend on the precision you load it at (next section).
- × 1.2 adds about 20% for the context window and the runtime itself.
Precision: the lever that matters most
A model’s weights are numbers. Stored at 16-bit precision (FP16 or BF16) they take 2 bytes each. Quantization stores them with fewer bits, trading a little quality for a lot of memory.
| Precision | Bytes per weight | Quality | Typical use |
|---|---|---|---|
| 16-bit (FP16, BF16) | 2 | Reference | Training, fine-tuning, maximum fidelity |
| 8-bit | About 1 | Practically identical | Production inference |
| 5 to 6-bit | About 0.75 | Very close | A good middle ground |
| 4-bit | About 0.6 | Slight, usually acceptable loss | Fitting a bigger model on a smaller card |
Below 4 bits quality falls quickly. A common finding is that a larger model at 4-bit beats a smaller one at 16-bit, so quantizing to fit the next size up is usually worth it.
Worked examples
| Model | Precision | Calculation | VRAM | Fits on |
|---|---|---|---|---|
| 8B | 8-bit | 8 × 1 × 1.2 | About 10 GB | RTX 5080 (16 GB) |
| 13B | 4-bit | 13 × 0.6 × 1.2 | About 9 GB | RTX 5080 (16 GB) |
| 32B | 4-bit | 32 × 0.6 × 1.2 | About 23 GB | RTX 5090 (32 GB) |
| 70B | 4-bit | 70 × 0.6 × 1.2 | About 50 GB | 2 × RTX 5090 (64 GB) |
| 70B | 8-bit | 70 × 1 × 1.2 | About 84 GB | RTX PRO 6000 (96 GB) |
| 120B | 4-bit | 120 × 0.6 × 1.2 | About 86 GB | RTX PRO 6000 (96 GB) |
| 70B | 16-bit | 70 × 2 × 1.2 | About 168 GB | B200 (180 GB) |
| 100B | 16-bit | 100 × 2 × 1.2 | About 240 GB | B300 (288 GB) |
These are planning figures. Real usage varies by a few gigabytes with the model’s architecture and the software that loads it.
Context is not free
The 20% margin covers ordinary context lengths. Memory for context grows with the number of tokens you keep in the window and with the number of requests served at once. If you plan to use very long contexts, or to batch many requests, budget more: 30 to 50% above the weights is a safer starting point. Most model servers let you cap the context length, which is the first setting to lower when a model almost fits.
One card or several?
Inference frameworks can split a model across GPUs, so two 32 GB cards behave like one 64 GB pool for a language model. There is a small speed cost, and each individual layer still has to fit on one card. Two rules of thumb:
- If the model fits on one card, use one card. It is simpler and faster.
- If it does not, compare a multi-GPU server with the next larger single card. A single 96 GB card is often cheaper and easier than three smaller ones.
Fine-tuning needs more
Training stores gradients and optimizer state on top of the weights.
- LoRA or QLoRA on a quantized base model: plan for roughly 1.5 to 2 times the inference figure. A 13B model fine-tunes comfortably in 32 GB.
- Full fine-tuning at 16-bit: three to four times the size of the weights. This is where 96, 180 and 288 GB cards earn their place.
And speed?
Once a model fits, tokens per second depend on the GPU’s memory bandwidth and compute, on the precision, and on how many requests run in parallel. Two practical points: a model that fits entirely in VRAM is many times faster than one that spills into system memory, and a newer, smaller card can out-run an older, larger one on the models that fit both.
Picking a server
- Take the model you want and the precision you accept.
- Apply the rule.
- Choose the smallest card that leaves a little room.
- Load the model and watch
nvidia-smi. If memory sits near 95% you chose well; if the model fails to load, lower the precision or move up one size.
The matching servers and their monthly prices are on the GPU servers page. To go from an empty server to a working endpoint, continue with Run your own LLM on a GPU server.
Sources and further reading
Read nextTwo guides to follow this one.
All GPU and AI guides
GPU and AIHow to run your own LLM on a GPU serverFrom a fresh GPU server to a private, OpenAI-compatible endpoint: drivers, a model server, and safe remote access.
Privacy and policyDMCA takedowns explained, and what DMCA-ignored hosting meansHow a DMCA notice works, why hosts suspend first and ask later, and what “DMCA-ignored” hosting does and does not cover.
A whole GPU, one flat monthly price.
GPU servers from $165 a month, at a flat price: no meter on hours or bandwidth.
- No KYCNo email, no ID
- No DMCANotices not acted on
- Crypto friendlyBTC, ETH, XMR, USDT, SOL
- UnmeteredOn every plan