Short answer: for the usual 4-bit models, count about 0.6 GB of GPU memory per billion parameters, plus 1 to 4 GB for the context. An 8B model needs about 6 GB, a 14B model about 10 GB, a 32B model about 20 GB. At full 16-bit precision it is about 2 GB per billion, so the same 8B model needs about 16 GB.
The rule is simple because a language model is mostly its weights. Each parameter is a number, and the precision decides how many bytes each number takes.
01The Formula
| Precision | Bytes per parameter | VRAM per billion parameters |
|---|---|---|
| 16-bit (FP16, BF16) | 2 | about 2 GB |
| 8-bit (Q8) | 1 | about 1 GB |
| 4-bit (Q4_K_M, AWQ, GPTQ) | about 0.55 | about 0.6 GB |
On top of the weights comes the KV cache, the memory the model uses to keep the conversation in view. It grows with the context length: a few hundred MB for a short chat, several GB for a 32,000 token context on a larger model. Leave 1 to 4 GB free for it.
4-bit is what most people run. The quality loss against 16-bit is small for chat, coding and summaries, and it lets a card run a model about three times larger.
02Which Models Fit on Which Card
Measured as the 4-bit download size plus room for a normal context:
| Model, 4-bit | VRAM needed | 12 GB card | 16 GB card | 24 GB card |
|---|---|---|---|---|
| Llama 3.1 8B | about 6 GB | Fits | Fits | Fits |
| Qwen 2.5 14B | about 10 GB | Tight, short context | Fits | Fits |
| Mistral Small 24B | about 15 GB | No | Tight | Fits |
| Qwen 2.5 32B | about 20 GB | No | No | Fits |
| Llama 3.3 70B | about 40 GB | No | No | No |
| Stable Diffusion XL (images) | about 9 GB | Fits | Fits | Fits |
When a model does not fit, Ollama and llama.cpp move part of it to the CPU and system RAM. It still runs, but every token then waits on the slower side, and answers can drop to a fraction of the speed. Pick a card the model fits on whole.
03Bandwidth Decides the Speed
Generating text reads the whole model from GPU memory for every token. So once a model fits, the speed depends mostly on how fast the card can read its memory. The spec sheet figures:
| Card | VRAM | Memory bandwidth |
|---|---|---|
| RTX A2000 | 12 GB GDDR6 | 288 GB/s |
| RTX 2000 Ada | 16 GB GDDR6 | 224 GB/s |
| RTX 3090 | 24 GB GDDR6X | 936 GB/s |
The RTX 3090 reads memory about three times faster than the RTX A2000, so the same 8B model answers roughly three times as fast on it. The two smaller cards are about equal in speed; the 2000 Ada has more room, the A2000 slightly more bandwidth.
For one person chatting with an 8B model, the A2000 is already faster than reading speed. The 3090 matters when several people or agents use the model at once, when you run 24B to 32B models, or when you train.
04Training Needs More
Fine-tuning needs memory for the weights, the gradients and the optimizer, several times the size of the model. With LoRA or QLoRA you train a small add-on instead of the whole model, and a 24 GB card can fine-tune 7B to 13B models that way. Full fine-tuning of anything but small models needs more than one card.
05Picking a Server
| You want to | Card | Our server |
|---|---|---|
| Chat with an 8B model, make images | 12 GB | RTX A2000 GPU VPS, Amsterdam, $129 a month |
| Run 14B models or longer contexts | 16 GB | RTX 2000 Ada GPU VPS, Kansas City, $139 a month |
| Run 24B to 32B models, train LoRAs | 24 GB | RTX 3090 dedicated server, Kansas City, $499 a month |
On all of them the card is yours alone, never shared. How to set one up with Ollama and a chat interface is in How to Self-Host an LLM on a GPU Server.
About 6 GB at 4-bit with a normal context, about 16 GB at 16-bit. A 12 GB card runs the 4-bit version with room to spare.
Not whole. At 4-bit a 70B model needs about 40 GB. With part of it on the CPU it runs, but slowly. For 70B models you need two 24 GB cards or one with 48 GB or more.
No, more VRAM only lets bigger models fit. Once a model fits, free memory does not speed it up; the card's memory bandwidth does.
For chat, coding and summaries, yes: most people can't tell 4-bit Q4_K_M from 16-bit in normal use. For exact tasks like long calculations, 8-bit is a safer choice if it fits.
- how much vram for llm
- vram for llama
- gpu for local llm
- llm gpu memory
- vram calculator
- rtx 3090 llm
- rtx a2000 llm