Find the wrong move in 'decode is slow, so let's switch to a smaller-FLOP model'
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Click any words you think contain an error. Click again to unmark.
Decode is memory-bandwidth-bound at batch 1: per-step time is set by reading weights and KV cache from HBM, not by the matmul.
Picture a chef whose kitchen is so small that they can only carry one armful of ingredients at a time from the pantry. Once the ingredients are on the counter, chopping them is fast; the slow part is the trip to the pantry and back. Speeding up the chopping does nothing if the chef still has to make the same long walk for the same ingredients. Decode in a large language model is like that. Each new token forces the GPU to fetch the same enormous bag of weights from far-away memory. The actual math is done in a blink once the data arrives. A model that does thirty percent less chopping still walks the same distance to fetch the same load, so the meal is not faster.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: name decode as bandwidth-bound at batch 1, derive the TPOT floor from weights/HBM bandwidth, debunk the FLOP-reduction prediction, and prescribe the bytes-per-step levers (quantization, GQA/MLA, batching, faster GPU).
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating decode as compute-bound and shopping for lower-FLOP models. At batch 1, decode is bandwidth-bound; the matmul finishes well before the HBM read, so cheaper math saves nothing on wall-clock.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.