Interactive calculator

VRAM calculator for local LLMs

Honest VRAM math. Picks up where the model card's "just {n} GB" line ends — separates weights from KV cache from activations from runtime overhead. Long context bites. KV quantization helps. The bar shows exactly how much.

Pure client. No tracking. Math is open and citable.

Inputs

8.0 B
8,192 tokens

VRAM breakdown

8.0 GB
total VRAM required
8 GB12 GB
Weights 4.8 GBKV 1.1 GBActivations 0.2 GBOverhead 1.8 GB
Where this fits
8 GB — tight12 GB — fits16 GB — fits24 GB — fits32 GB — fits48 GB — fits80 GB — fits
Model weights4.8 GB
KV cache @ ctx1.1 GB
Activations0.2 GB
Runtime overhead1.8 GB
Bits-per-param4.83 bpw
KV bytes/elt2

Operator notes

Add 2-3 GB on top of the total for OS, display output, and driver overhead — the calculator returns "model footprint" not "total card consumption".

Long context = mostly KV cache. At 32K ctx, KV often exceeds weights. Quantize KV to fp8 to halve it, or to int4 to quarter it (small quality cost).

Weights alone: 4.8 GB. KV cache alone @ 8,192 ctx: 1.1 GB.

Rent instead
Not enough VRAM for this model? Rent a GPU by the hour

If the total above is more than your card has, you can rent a GPU with enough VRAM by the hour to run the model now, or to test it before you buy hardware.

Referral links: RunLocalAI may earn a commission or account credits if you sign up and rent, at no extra cost to you. Hourly rates and which GPUs are listed change all the time, so check the provider's page before you start. How we make money.

Embed this calculator

Link to this page from articles, READMEs, or community threads — screenshot welcome, attribution appreciated.

Suggested citation: Calculator by RunLocalAI · runlocalai.co · CC-BY-4.0

Related: Custom build engine · GPU memory flow diagram · Quantization formats · Electricity calculator