The article demonstrates that single-user LLM decode throughput is primarily constrained by memory bandwidth rather than compute, enabling a rapid estimation via the formula: tokens/sec ≈ memory bandwidth ÷ model weight size. During token generation, each weight is read once per token, performing roughly 2 FLOPs per weight (1 FLOP/byte in BF16), while GPUs like the H100 offer ~295 FLOPs/byte compute-to-bandwidth ratio, leaving tensor cores idle. The author provides worked ceilings: Llama 3.1 8B BF16 on H100 (16 GB, 3.35 TB/s) yields ~209 tok/s; 4-bit 8B on RTX 4090 (4.9 GB, 1 TB/s) reaches ~205 tok/s; 4-bit 70B on M4 Max (40 GB, 546 GB/s) manages ~13 tok/s; and 4-bit 8B on M3 MacBook Air (4.9 GB, 100 GB/s) achieves ~20 tok/s. Quantization halves bytes per weight, matching bandwidth doubling. Real-world throughput typically reaches 60–80% of the ceiling; below 50% indicates misconfiguration. KV cache adds overhead, significant at 32k+ context. MoE models like Qwen3 30B-A3B decode near their active parameter count (3B). Prefill is compute-bound; batching improves aggregate throughput by reusing weights across users. The checklist: find GPU bandwidth, calculate weight size (params × bytes/param: 2 for BF16, 1 for FP8, ~0.55–0.6 for 4-bit; active params for MoE), divide, multiply by 0.7, verify memory fit (weights + KV cache + overhead). If too slow, change quantization, model, or hardware.

Read original