1
Memory: bytes × parameters
A model is just billions of numbers (weights). Storage depends on how many bytes each number takes:
memory ≈ params × bytes/param
+ ~10–20% (KV cache, buffers)
Worked example — Llama-class 8B: at FP16 (2 bytes) → 8 × 2 = 16 GB. At 4-bit (~0.56 bytes incl. scales) → ~4.5 GB. Same brain, quarter the memory.
2
Speed: bandwidth ÷ model size
Generating one token means reading every weight from memory once. Decode is memory-bandwidth-bound, so:
tokens/sec ≈ bandwidth (GB/s)
÷ model bytes (GB)
Worked example: RTX 4090 has ~1,008 GB/s. An 8B model at Q4 is ~4.5 GB → theoretical ceiling ≈ 224 tok/s; real-world ~60–70% of that. That's why smaller quants feel faster, not just lighter.