On the roofline, which intervention moves an LLM decode workload most directly toward higher peak throughput?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Decode sits on the roofline's memory-bandwidth slope, so the lever that helps is one that cuts bytes moved per FLOP. INT4 quantization does that; pruning FLOPs does not.
Picture a kitchen where the chef is lightning fast, but ingredients arrive on one slow conveyor belt. The chef finishes each dish instantly, then stands around waiting for the belt. Making the chef faster does nothing, because the belt is the bottleneck. Cutting the recipe's steps does nothing either, because the chef was never the holdup. The only thing that helps is shrinking each ingredient so more fits on the belt per trip. Squeeze every ingredient to a quarter of its size and the same belt now delivers four times as many per second, so the chef finally has enough to work with. The roofline is just a chart that tells you whether you are chef-limited or belt-limited.
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.
4 min: roofline axes + ridge point formula + why decode is left of ridge (memory bound) and prefill right + which levers raise arithmetic intensity (quantization, batching) versus which only cut FLOPs.
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.
Assuming that cutting FLOPs (pruning, smaller matmuls) speeds up decode. Decode is bandwidth bound, so only cutting bytes moved per token helps; fewer FLOPs leave the bottleneck untouched.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.