VRAM
Calculator.
Select a language model, quantization, and context length to calculate exactly how much VRAM your GPU needs.
5.21GB
Breakdown
Recommended GPU
8GB VRAM — Runs locally
Minimum recommended: RTX 4060
Estimation based on Ollama / llama.cpp. Results may vary by framework.
New to local LLMs?
Read our full guide on how to run models on your PC with Ollama.
Model
Quantization
Context
VRAM by model
Frequently asked questions
addHow much VRAM does a language model need?
Roughly the parameter count multiplied by the bytes per parameter, plus the context. A 7-billion-parameter model at 4-bit needs about 4 GB, at 8-bit about 7 GB, and at full 16-bit precision about 14 GB. A 70B model at 4-bit needs around 40 GB, which is beyond any single consumer card.
addWhat does quantization actually cost me?
It stores each weight in fewer bits, so the model shrinks roughly in proportion. Going from 16-bit to 8-bit is close to free in quality terms; 4-bit is the usual sweet spot and the loss is small for most uses; below 4-bit the degradation becomes noticeable.
addCan I add a second graphics card to fit a bigger model?
Yes — the layers are split across cards and the totals add up, so two 16 GB cards can hold a model that needs 30 GB. Expect some loss to the traffic between them, and note that the slower card sets the pace.
addWhat happens if the model does not fit?
Whatever does not fit spills into system memory, and the parts held there run at a fraction of the speed, because the processor's memory is far slower than the card's. A model that mostly fits is usable; one that mostly does not is not.
addDoes a longer context need more memory?
Yes, and people routinely forget it. The attention cache grows with the number of tokens in play, and at long contexts it can take more memory than the model weights themselves. Size for the context you intend to use, not the smallest one.
Keep going
Other tools and reference pages that pick up where this one leaves off.