Local AI tools

LLM VRAM Calculator

See whether a language model fits your GPU. Adjust the model size, weight quantization and context length to estimate memory for local inference.

Configure your setup
Selecting a GPU enables the speed estimate. For Apple chips, set the available unified memory below.
Use the memory available to this workload.
8.2B parameters · 36 layers · 8 KV heads
Weights use the estimated bits per weight.
Include both the prompt and room for the reply.
Advanced settings
Quantized cache requires runtime support.
Assumes a separate cache per sequence.
Leave room for runtime buffers and any desktop usage in the selected budget.
Enter the sum of all shards for this quantization.

Memory estimate

Fits in memory

6.19 GiBof 8.00 GiB

1.81 GiB of estimated headroom after the selected reserve.

Model weights
4.63 GiB
KV cache
0.56 GiB
Runtime / GPU reserve
1.00 GiB

Estimated context ceiling

17,258 tokens At the selected cache precision and reserve. Start below this ceiling.

How fast is that?

Filler code streams token by token. Pick your GPU above and the speed follows the estimate for that setup; you can still drag it.

Pick your GPU model above to estimate the speed for this setup.


          
Tokens
0
Elapsed
0.0 s

Rough single-user estimate: about 65% of the GPU's peak memory bandwidth divided by the bytes read per token (active weights plus the KV cache at the full selected context), plus about 1 ms of fixed work per token. Layers over budget are assumed to run from dual-channel DDR5 system RAM. Prompt processing, batching and compute limits are not modelled, and real speed varies with the runtime and drivers. Bandwidth figures are manufacturer peak specifications.

Compare quantizations

Same model, context and reserve across rows. Weights use typical bits per parameter for each format. Individual GGUF files can vary.

FormatWeightsTotalFit
Q3_K_M3.72 GiB5.29 GiBFits in memory
Q4_K_M4.63 GiB6.19 GiBFits in memory
Q5_K_M5.44 GiB7.00 GiBFits in memory
Q6_K6.30 GiB7.86 GiBTight fit
Q8_08.16 GiB9.72 GiBOver budget
FP1615.27 GiB16.84 GiBOver budget

How the estimate works

Model weights

Parameter count × effective bits per weight ÷ 8. Q4_K_M averages more than four bits per parameter because GGUF files use scales and mixed-precision tensors.

KV cache

2 × KV heads × head dimension × bytes per value × cached tokens, summed across layers and multiplied by concurrent contexts. With a rolling cache, sliding-window layers store up to the model’s window size.

Runtime reserve

Added to the weight and cache estimate. A fit is marked tight when headroom is below 0.5 GiB or 10% of the budget, whichever is greater.

1 GB equals 1 billion bytes. 1 GiB equals 1,073,741,824 bytes. The calculator uses GiB for the GPU budget and results. Calculations run in your browser.

Running models locally

Can I run an 8B model on an 8 GiB GPU?

A Qwen3 8B estimate at Q4_K_M, 4,096 tokens and one FP16 KV cache is about 6.19 GiB with a 1 GiB reserve. That leaves about 1.81 GiB on an 8 GiB card. A different 8B model or a longer context can use more memory.

Why is my GGUF download smaller than the VRAM estimate?

The download contains the model weights and metadata. A running model also needs KV cache and temporary buffers, and the desktop or other apps may already be using part of the GPU budget. Switch to your actual file size in Advanced settings when you have it.

What happens if the model exceeds my VRAM?

Some runtimes can keep part of the model in system RAM and run those layers on the CPU. This depends on your runtime and available RAM and can reduce generation speed. The calculation assumes the entire model and KV cache are on the GPU.

Can I use this with Apple Silicon or an integrated GPU?

Yes. Enter the memory you can allocate to the model, leaving room for the OS and other apps. Unified memory is shared by the CPU and GPU, so the total installed RAM is usually larger than the usable model budget.

Which Google models can I estimate?

Use Google Gemma presets to estimate local VRAM with downloadable model weights. Google serves its hosted Gemini models through the Gemini API, where inference runs on Google’s infrastructure.

How should I budget for a mixture-of-experts (MoE) model?

Use the total parameter count for weights. The active count describes how many parameters participate in a token’s computation. Full GPU loading still needs space for all experts.

Does the estimate cover every model and runtime?

It targets text-only inference. Gemma presets account for sliding-window and global attention, with an option to keep the full context in all layers. Custom models use a uniform full cache. Image and audio encoders, speculative decoding, multiple GPUs and training need separate estimates. Runtime allocation can vary with backend, batch size, cache padding and Flash Attention support.