LLM VRAM Calculator
How much memory a local language model needs, and which graphics cards and unified-memory systems hold it. All figures are approximate rules of thumb, not measurements.
Hardware
| Device | Memory | Usable | Holds it |
|---|
Method and limits
Weights take about parameters × bits ÷ 8 bytes. The size-class figures add 20–30% for the context (KV cache), runtime buffers and the operating system's share, rounded to a conservative figure for the whole class. For 16-bit and for parameter counts outside the listed classes, the calculator shows that formula directly as a range (weights plus 20% to weights plus 30%) and checks fit against the upper end.
On a graphics card or accelerator, of its memory is treated as usable. On a unified-memory system (Apple silicon, Ryzen AI Max+, DGX Spark), is treated as usable, because the operating system keeps part of the shared pool and GPU limits apply.
- Long contexts need more memory, because the KV cache grows with every token the model keeps in view. Serving several users at once needs more again.
- Mixture-of-experts models run faster than dense models of the same size, but all of their weights still have to be in memory.
- This shows what fits, not how fast it runs. Once a model fits, generation speed depends mostly on memory bandwidth.
- Each card is counted on its own. Two cards add their memory together, but splitting a model across them does not double the speed.
- Systems with several memory options are counted at their base configuration.
Data: models.csv and hardware.csv in the dataset ({{DATASET_URL}}). Source revision .