Throughput, for an LLM serving system: give the working definition
Throughput is total output tokens per second across all concurrent requests on the server; it drives cost per token and trades off against per-request latency as batch size grows.
Picture a coffee shop. Throughput is how many cups the shop serves per hour across every customer at once. Latency is how long your particular drink takes from order to hand-off. A bigger espresso machine and a larger batch pull raise the shop's hourly capacity but might mean your individual drink waits a bit longer in the queue. An LLM server has the same shape. Throughput counts every output token the server produces per second across all the chats it is handling. Latency is one user staring at their own chat window. Operators and finance teams watch throughput because it sets cost per token. Product designers watch latency because it sets whether the chat feels alive or sluggish. Both metrics are real; they just answer different questions.
Detailed answer & concept explanation~6 min readEverything 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. 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: define throughput as aggregated output tokens per second across requests, contrast with per-request latency, explain the batching tradeoff and roofline knee, distinguish prefill (compute-bound) from decode (HBM-bound) throughput, and connect to cost per token.
Real products, models, and research that use this idea.
- vLLM on an H100 can hit 4,000+ output tokens/sec aggregate on Llama 3 70B with continuous batching and FP8 weight quantization.
- OpenAI's Batch API offers ~50% cheaper pricing because relaxed 24-hour latency lets them run at the throughput-optimal batch size.
- Anthropic publishes per-tier rate limits as `tokens/min` (TPM), which is throughput divided across customers; system throughput per backend is much higher than per-customer TPM.
- Together AI, Fireworks, and Groq differentiate primarily on tokens/sec/GPU benchmarks for popular open models; Groq's LPU architecture targets very high single-stream tokens/sec at the cost of aggregate throughput.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy is decode throughput limited by HBM bandwidth, not tensor-core FLOPS?
QHow does prompt length distribution affect reported throughput numbers?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reporting single-stream tokens/sec as system throughput. Single-stream is one request's decode rate; system throughput is summed across every concurrent request on the GPU.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.