Model weights are only 1 of 4 VRAM allocations: why loaded LLMs still OOM

blaizedsouza · x · 2026-10-13

A repost of @avichawla's article "How LLM Inference Works, Clearly Explained", addressing a common misconception: a model can load successfully yet run out of GPU memory on the first requests, because weights are only one of four VRAM allocations.

Key points:

The article also breaks each generate() call into two phases: prefill (processing the prompt) is compute-bound, while decode (one token at a time) is memory-bound.

Original post →

More from Infra

Infra channel →