Inference sizing tool

How much memory does your LLM need for inference?

Pick a model, a precision and a context length. You get the memory for weights, KV cache and overhead, then which GPUs and AI accelerators can hold it, and how many you would need. The formulas are on this page.

Model and workload

Requests held in memory at once.
Activations, buffers, fragmentation. 10% is a common allowance.
Model architecture (edit to use your own model)

Memory required

Which chips can hold it

Specs under review. 0 of 0 chip memory figures are marked Unverified because they have no source link and check date yet.
ChipMemoryType Min devices Typical config FillResultSpecNote

Memory is shown as each vendor publishes it, checked against the linked page on 2 December 2026. Google and AWS publish GiB, which the maths converts to decimal GB; other vendors publish GB and are taken at face value. Capacity only: bandwidth, interconnect, software support and availability decide what actually runs well. On-chip SRAM designs are hidden by default because their counts are large by design; switch them on to see why.

Memory requirements by model

Tables by precision and context length, and the chips that can hold each model.

How the numbers are worked out

The calculator adds three things: the weights, the KV cache, and a runtime allowance.

weights   = parameters x bytes per parameter
KV cache  = tokens x KV bytes per token
              tokens = context length x concurrent sequences
              standard / GQA : 2 x layers x KV heads x head dim x bytes
              MLA (DeepSeek) : layers x latent dim x bytes
total     = (weights + KV cache) x (1 + overhead)

Worked example: a 70B model

Llama 3.1 70B has 70.6 billion parameters, 80 layers, 8 KV heads and a head dimension of 128. In FP8 the weights are 70.6 GB. With an FP16 KV cache each token costs 2 x 80 x 8 x 128 x 2 = 327,680 bytes, so an 8,192-token context adds 2.7 GB for one sequence. With a 10% allowance that is about 80.6 GB, which is just over a single 80 GB card.

What it leaves out

Questions

How much GPU memory does a 70B model need?

For 70.6B parameters the weights alone are about 141 GB in FP16, about 71 GB in FP8 or INT8, and about 40 GB in 4-bit group quantisation. The KV cache and overhead come on top.

What is the KV cache?

While generating, the model keeps the attention keys and values of every earlier token so it does not recompute them. It grows with context length and with the number of concurrent requests, and at long contexts or high concurrency it can exceed the weights.

Does this cover training?

No. Training needs far more memory per parameter. This tool is for serving a model.

Does a model that fits run fast?

Not necessarily. Capacity decides whether it fits; bandwidth and interconnect decide how quickly it runs.