LLM VRAM Calculator
Plan your local language model deployment. Estimate GPU memory requirements before downloading a model or upgrading your hardware.
00 / Model intelligence Local catalog + live Hub
Choose a local preset or import a public Hub configuration. No model weights are downloaded.
01 / Model configuration
Architecture & execution
Hardware & runtime
Multi-device deployment
Multi-device deployment
02 / Memory telemetry Live updates
Memory allocation
Context scaling · GiB
Quantization comparison · GiB
GPU capacity comparison (per device, selected device count)
| Capacity | Budget used | Assessment |
|---|
Understanding your estimate
This calculator estimates inference memory using full attention caches, native compressed MLA or a manually supplied cache size. MoE estimates use total resident parameters. It does not estimate training, tokens per second, or guarantee that a specific runtime will load a model.
How is VRAM calculated?
Weights = parameters × effective bits per weight ÷ 8
KV cache = 2 × layers × KV heads × head dimension × context × concurrent sequences × cache bits ÷ 8
All byte values are converted to GiB (1 GiB = 2³⁰ bytes). Runtime and extra memory are added, then the safety margin is applied to the subtotal. See Hugging Face KV cache quantization and NVIDIA inference optimization.
Why can real memory usage differ?
Quantized weights have metadata, mixed precision and alignment overhead. Effective bits per weight here are illustrative. Quantized KV cache metadata is not explicitly modeled. Prefill buffers, CUDA graphs, framework reservations, drivers and display usage can increase memory. Use actual model file sizes and runtime measurements when possible.
What about Apple Silicon, multiple GPUs and CPU offload?
Enter only memory available to inference. Unified memory also serves the operating system and applications. Multiple GPUs do not automatically pool memory; tensor parallelism and communication buffers affect fit. CPU offloading changes GPU requirements and performance; the optional offload control estimates a fractional weight allocation only.
What models are not covered?
MoE models require total resident parameters, not just active parameters. MLA is available for native compressed caches; hybrid and recurrent architectures require manual cache estimates. Sliding-window and multimodal activation overhead may differ. Presets are representative architecture estimates, not an exhaustive verified model catalog. Check the model config.json. Parameter counts are rounded; all presets are illustrative. Confirm model configuration and supported context limits before deployment.
How much VRAM do local AI models need?
Model weights, attention cache, context length, concurrent requests and inference overhead determine GPU memory needs. Compare GGUF, BF16 and other quantizations, and plan CPU offloading or multiple GPUs. Results are estimates, not measured benchmarks.
For a model with P parameters and effective B bits per weight, weight storage is approximately P × B / 8 bytes. Cache requirements depend on the model architecture and runtime.
Model metadata source: Hugging Face · Nexus technology articles