firehose> #llmops

You can't optimize inference without measuring it, and for autoregressive models latency decomposes into two components: time to first token (TTFT) — how fast the first token appears after a query — and time per output token (TPOT) — how long each subsequent token takes. Total latency ≈ TTFT + TPOT × number of output tokens. A related metric, time to publish, accounts for the first token not always being shown to the user (e.g. when the model first generates a plan or chain-of-thought). Because latency varies request to request, percentiles are far more meaningful than averages. Beyond latency, throughput — output tokens per second across all requests — usually drives cost, so higher throughput means lower cost. The two are in tension: a fundamental latency-throughput trade-off means techniques like batching raise throughput but can raise individual latency, and your strategy must balance them for the application. Utilization metrics (model-FLOPs utilization, memory-bandwidth utilization) round out the picture.

Claims


Linked from