Make room for local AI
Plan memory for your local model
Estimate model weights, context cache, and runtime buffers together. See how context length, quantization, and parallel sessions change your memory budget.
Inference estimate · GiB · One memory poolAssumptions, formula & sources
Weights = billions of parameters × 1,000,000,000 × effective bits per weight ÷ 8, plus the weight allowance. Quantization block scales are already included in effective bits. Mixed formats and non-quantized tensors vary, so this is not an exact GGUF file-size calculator. A known weight size replaces both the parameter estimate and its allowance.
KV cache bytes = 2 (K and V) × layers × KV heads × head dimension × context tokens × parallel sessions × bytes per cache element. FP16/BF16 uses 2 bytes; Q8_0 uses 34/32 and Q4_0 uses 18/32 including block scales. Quantized cache estimates require a head dimension divisible by 32. Real allocation may include padding and alignment.
Planning target = (weights + KV cache + runtime buffers) × (1 + safety margin / 100). The defaults of 10% extra weights, 1 GiB runtime buffers, and 20% safety are editable planning choices, not measured results or universal recommendations. 1 GiB = 1,073,741,824 bytes; 1 GB = 1,000,000,000 bytes.
Scope: one dense, full-attention decoder model with equal K/V head dimensions, one shared set of weights, and an independent full cache for each parallel session. This does not model training, beam search, MoE residency, MLA, hybrid/recurrent/sliding-window attention, vision encoders, speculative draft models, multi-GPU splits, or CPU/GPU offloading. Unified memory is one pool, not additional RAM plus VRAM. Memory fit does not predict speed, runtime compatibility, or guarantee that a model will load; check real peak usage with your backend.
Your estimate as text
Calculated in your browser. No model downloads, hardware scans, API keys, or saved inputs.