What is a model memory footprint?

Definition

The footprint includes model weights, caches, activations, buffers and runtime overhead. It changes with numeric precision, context length, batch size and whether components use accelerator or ordinary system memory.

Telemetry should measure peak use during a realistic workload. A model that barely loads can still run out of memory later when a long conversation expands its cache.

ELI5

A model memory footprint is the amount of working space a computer needs to load and run a model. This includes the model itself plus temporary information it keeps while processing a request.

For example, a model might fit on a laptop after its weights are compressed, but a long document could still make it run out of memory. The computer needs room for both the model and the extra working data created during the task.

Why can a model memory footprint grow during chat?

The runtime may retain an expanding attention cache and other state as the conversation becomes longer.

How should model memory use be measured?

Measure peak use with realistic context, settings and output length on the target runtime.

  1. Memory Hungry - Compute Light beside a flat memory stack feeding sparse compute nodes
  2. David Ondrej and Ahmad M. Osman beside the words Own Your AI Compute
  3. Portrait of Bijan Bowen beside the words Q8 Builds Better Games
    Ornith 1.5 35B Q4 vs Q8
    Bijan Bowen31m 40s1 VIEW
  4. Chris Alexiuk, Daniel Han, Asma Beevi in a light headscarf, and Merve Noyan beside the white-and-blue headline “AI AT THE EDGE” on black.
  5. Ray Fernando and Prince Canuma beside the words Local AI Gets Practical
  6. The words MiniMax H3 Runs Faster beside three receding frame outlines
    Run MiniMax H3 Faster in ComfyUI
    AI Search28m 18s2 VIEWS
  7. Headline Run H3 Locally beside a flat film and audio symbol
  8. Sophia Dew, Anush Elangovan and Quentin Anthony from left to right in blue tops under the white and blue headline OPEN AI STACK on black.
  9. Portrait of Bijan Bowen beside the words DeepSeek Flash Punches Up
  10. Sheilah Kirui beside the blue and white headline “SPECULATIVE DECODING - WORTH IT?” on a black background.
Definition card for model memory footprint: What is a model memory footprint?

A model memory footprint is the total working memory required to load and run an AI model in a chosen configuration.