Post

HN
Hacker News (Newest)

GPU Memory Math for LLMs: Formula That Tells You What Fits on Your GPU

One formula that tells you exactly what fits on your GPU

If you’re running models locally, thinking β€œmodel β†’ VRAM” falls apart once you account for how the weights were trained and quantized in the first place.

VRAM (in GB) β‰ˆ Parameters (in billions) x (effective bits per weight Γ· 8)

This one formula explains everything across:

FP16 / BF16 β†’ 16 bits β†’ ~2 GB per 1B params

FP8 / INT8 β†’ 8 bits β†’ ~1 GB per 1B params