FLOPs vs FLOP/s: fill in the counts versus rate distinction.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
FLOPs is a count of operations; FLOP/s is a rate. Prefill does many FLOPs and is compute-bound, while decode does few FLOPs per byte read and is bandwidth-bound.
Imagine measuring how much running someone does. You can count total steps taken, a pure number with no clock attached. Or you can measure steps per second, which only makes sense alongside a stopwatch. FLOPs and FLOP/s are exactly that pair. FLOPs is the count of math operations a job needs, like asking how many steps fit in a marathon. FLOP/s is how fast a chip can do math, like asking how fast a runner moves. The interesting question is whether a chip spends its time waiting on data or actually doing math. When the prompt is processed all at once, the chip is busy computing. When the model produces output one word at a time, the chip is mostly waiting for data from memory.
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.
5 min: nail the count versus rate distinction, give the 2NT forward-pass estimate, anchor peak FLOP/s for H100 and B200 across dtypes, place prefill and decode on the roofline using arithmetic intensity, then close with how to use the pair to localise bottlenecks.
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 FLOPs and FLOP/s as synonyms. The first is a job size; the second is a hardware throughput rate. Confusing them produces nonsense like saying an H100 has 990 trillion FLOPs.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.