Educational Playground
LLM Memory Estimator
Estimate weight and KV-cache memory under explicit model, precision, context, batch, and runtime assumptions.
Processing happens in your browser; no installation, account, or API key is required.
This tool estimates weight and KV-cache memory from simplified assumptions. Runtime overhead and safety margin are shown separately. It does not guarantee a model will run on specific hardware; activations, allocator behavior, parallelism, offload, and quantization metadata are not modeled exactly.
Estimated components
KV-cache formula: 2 × layers × batch × sequence length × KV heads × head dimension × bytes per element. Weight memory is parameter count × bits per parameter ÷ 8; quantization scales and packing overhead are excluded.