Learn AI Math

Memory Footprint

What is Memory Footprint?

In one sentence: Memory footprint is how much memory a model takes up when it runs.

It includes the model weights, plus extra memory for the KV cache, activations and the software. A rough rule is: parameters × bytes per parameter, plus extra for context. Long conversations increase the footprint because the KV cache grows.

Σ Quick math / rule of thumb: Rule of thumb for inference VRAM: (Billion Parameters × Bytes per Weight) × 1.2 overhead — e.g., 7B in FP16 ≈ 16.8 GB; 7B in 4-bit ≈ 4.2–5 GB.

What does Memory Footprint look like?

A 7B model at 4-bit might need about 4 GB for weights plus 1 to 2 GB more for a long chat.

Why does Memory Footprint matter?

Memory footprint decides whether a model can run on your device at all.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.