Model memory estimator

How much memory does a model need?

Enter a model’s size and precision to see how much memory its weights need. Add a few details from the model’s config and we also estimate the memory its conversations use (the KV cache).

01

Describe the model and how you will use it

The number in the model’s name, such as 8 for an 8B model, not the download size. Between 0.1 and 5,000.
Real quantized files carry a little extra for packing and metadata, so read the result as a minimum.
Context memory grows with context length × requests at the same time.
Optional: architecture details for a KV-cache estimate

You will find these in the model’s config.json. Leave them blank and we skip the KV-cache part.

What you will get

Enter a model size and precision, then press Estimate memory.

Memory for the model’s weights
Context for every request running at once
How it compares with common GPU sizes

Method and limits

What the calculation includes

Weight estimate: parameters × nominal bits per weight ÷ 8. Optional KV-cache estimate: layers × context × concurrency × KV heads × head dimension × 2 × bytes per cache element. The factor 2 accounts for keys and values.

Transformers documentation describes the key/value cache as per-layer tensors whose sequence dimension grows with processed tokens. Ollama documents that parallel requests scale memory with configured context and concurrency. HostCritiq does not infer architecture values from a model family name.

An estimate is not a compatibility check. Before you rent hardware, see Ollama requirements and the GPU hosting catalog.