All studio tools

Local model memory estimate

Estimate the memory needed to load a model and hold its attention cache at a given context length.

Inputs

Use the effective bits per parameter if known.
Use the model's KV head count, which can differ from its query head count.

Result

Use the prefilled example or enter your own values.

Assumptions

Assumes one sequence, dense full-length KV caching and one memory pool. Weight packing, quantization metadata and runtime allocations vary by backend. Enter an overhead allowance and compare with measured use. A GiB is 2³⁰ bytes.

MCP tool local_model_memory