VRAM Calculator — Will This Model Fit On My GPU?
Work out exactly how much video memory a local model needs, including the KV cache that scales with context length.
A local model needs memory for three things: the weights (parameters × bits per weight ÷ 8), the KV cache (2 × layers × KV heads × head dimension × context length × concurrent sequences × bytes per element), and about a gigabyte of runtime overhead. This calculator computes all three for twelve real architectures at eight quantisation levels, and shows how the requirement grows with context length — the part every VRAM table omits.
Runs in your browser- Rule of thumb
- Parameters in billions × 0.6 ≈ GB at Q4_K_M, before the KV cache
- The trap
- The KV cache grows linearly with context and can exceed the weights past 32k tokens
- Best trade
- A larger model at Q4 usually beats a smaller model at Q8 for the same memory
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why does my model fit at 4k context but run out of memory at 32k?
Is a bigger model at Q4 better than a smaller one at Q8?
What is grouped-query attention and why does it matter here?
How much extra memory does fine-tuning need?
How to use the llm vram calculator
- 1Choose the model.
- 2Choose the quantisation.
- 3Set the context length.
- 4Choose the kv cache precision.
- 5Set the concurrent sequences.
- 6Turn "Fine-tuning rather than inference" on or off as needed.
- 7Set the parameters (billions).
- 8Set the layers.
- 9Set the hidden size.
- 10Set the attention heads.
- 11Set the key/value heads.
- 12The result appears immediately — copy or download it.
Sources & specifications
Embed this tool
Put the working llm vram calculator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
GGUF Quantisation Size CalculatorWork out the download size of a quantised model at every GGUF level, and what quality each one costs you.LLM Model ComparisonEvery current model side by side: price per million tokens, context window, max output, modalities and cache rates.What Is My Screen Resolution?Check your screen resolution, browser viewport, device pixel ratio, colour depth and GPU.AI API Cost CalculatorWork out what a prompt costs per call, per day and per month, and compare the same workload across every major model.AI Writing Pattern CheckerMeasure sentence-length variance, vocabulary richness, marker phrases and typographic tells, with per-sentence scoring.Chat Export FormatterDrop in an exported conversations file and get clean Markdown, HTML or plain text — one document per conversation.
Last updated
More ai & llm tools