Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Describe the throughput and TPOT (time-per-output-token) curves as batch size B grows for LLM decode. Identify the breakpoint and explain what happens to throughput and to per-request latency before and after it.
Decode throughput rises almost linearly with batch until the critical batch B*, then plateaus; past B* per-token latency rises linearly while throughput buys you nothing.
Imagine a bus that drives the same route in the same time no matter how many riders are aboard. With one rider the trip is wasteful, since all the fuel is spread over a single person. Add more riders and each ride gets cheaper, because that fixed driving cost is now shared. People delivered per hour keeps climbing. But the bus has only so many seats. Once every seat is full, cramming in more cannot make the bus go faster, so the number of people delivered per hour stops rising. Worse, the extra people now have to wait for room before they ever get moving, so each person's door to door time grows longer and longer. The smart move is to fill the bus right up to its seats, and no further.
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: memory-bound decode + batching amortizes the weight read + roofline ridge point and B* formula + throughput plateau and TPOT climb past the knee + how continuous batching picks the operating point.
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 throughput keeps rising with batch forever, or that latency is flat. Past the critical batch, throughput is pinned and every extra request only inflates per-token latency.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.