LLM VRAM calculator
Pick a model preset or enter parameters, choose a quantisation and context length, and see how much VRAM you need and which GPUs it fits on.
Estimate = params × bits ÷ 8 + KV cache (2 × layers × context × KV dim × bytes) + ~0.8 GB overhead. Real usage varies by runtime (llama.cpp, vLLM, ExLlama) and batch size.
Where the memory goes
Running an LLM needs memory for three things: the model weights (parameters × bits per weight), the KV cache that stores attention keys and values for every token in context, and runtime overhead. Weights dominate for short contexts; the KV cache grows linearly with context length and can become significant at 32K tokens and beyond.
Quantisation in one paragraph
Quantisation stores weights with fewer bits. A 4-bit quantisation such as Q4_K_M needs roughly a third of the memory of 16-bit weights with a small quality loss, which is why it's the most popular choice for local use.
- Q8: near-lossless, about half of FP16.
- Q5-Q6: excellent quality/size balance.
- Q4_K_M: the popular default for local use.
- Q2-Q3: noticeable quality loss; last resort.
Common questions
How accurate is the estimate?
It's a solid planning estimate. Actual usage varies by runtime, batch size and implementation details.
What is KV dim?
The number of key/value heads multiplied by the head dimension. Models using grouped-query attention have a much smaller KV dim than their hidden size, which shrinks the KV cache.
Can I split a model across GPUs or into RAM?
Yes. Multi-GPU splitting and CPU offloading let larger models run, at some cost to speed.
Related
AI Model Finder
Answer three questions, task, hardware, priority, and get suggested open-weight models to try.
Free toolLLM Token Counter
Estimate tokens, words and cost for any text and see how much of a model's context window it uses.
Free toolContext Length Calculator
See how many chat turns and words fit in a model's context window after the system prompt and reply reservation, from 4K to 1M tokens.
Free toolLocal vs API Cost Calculator
Estimate your monthly API bill for an open model and compare it with a flat subscription or what you would spend running it locally.
Free toolUncensored System Prompt Builder
Build a clear system prompt for uncensored, abliterated or fine-tuned local models, covering role, job, tone, format and your own boundaries.
Free toolImage Model VRAM Checker
Check whether open image models such as SDXL, FLUX, Chroma and Qwen-Image fit your GPU at BF16, FP8 or GGUF quantisation.
GuideHow to Run an Uncensored LLM Locally: A Beginner's Guide
Step-by-step guide to running an uncensored language model on your own computer: choosing a model, GGUF quantisation, and tools like Ollama, LM Studio and llama.cpp.
Now pick a model.
Use the directory to find a model that matches your numbers.