VRAM Fit Calculator

Local AI VRAM Fit Calculator
Estimate memory for model weights, attention cache and runtime buffers. Assumes one request at a time and fully resident weights. Actual allocation depends on your model file and runtime.
Use the available memory reported by your runtime when known.
GiB uses binary units. Hardware presets are nominal budgets; this value is editable.
Quantized whole-model averages vary. Advanced settings accept a known weight size, including MLX and native MXFP4 models.
For MoE models, use total parameters, including inactive experts.
Include the prompt and generated response. A memory estimate does not establish context support.
Quantized cache requires runtime support. FP8 and MLX cache formats have different layouts; use a measured cache value for those.
Advanced: known sizes and runtime allowance
Changing the model or draft-component selection resets these overrides. Sizes apply to one request at the selected context. Prefer the runtime's weight allocation, including all loaded components. A model file's size is only an approximation; decimal GB ÷ 1.073741824 = GiB.
Include all KV cache, recurrent states and indexer data. Changing model, context or draft-component selection clears this value.
An adjustable planning allowance, not a measured peak. Increase it for large prompt batches or a demanding runtime.
Enable JavaScript to calculate a memory estimate.
- Weights
- —
- Cache + state
- —
- Runtime allowance
- —
- Estimated total
- —
Calculations use GiB (1,073,741,824 bytes) and TiB. Hardware labels retain their advertised GB capacities, treated as nominal GiB budgets here. Adjust the budget to the memory available to your runtime. The estimate excludes CPU offload, SSD streaming, extra simultaneous requests and image/audio processing buffers. It does not predict speed. Learn about KV cache and quantization.
