Inference Trade-offs Explained

Inference Trade-offs Explained

Which lever helps which metric, for which workload

An interactive map of the serving levers (batching, KV memory, disaggregation, parallelism, quantisation, speculation) and what each one does to each metric.

Loading the Pareto explorer…

How this is checkedFor every one of the 350 sweep points, the simulator's JavaScript engine (the one the what-if runs in your browser) reproduces the recorded TTFT, TPOT and ITL percentiles of the Python run exactly. How it is tested →

What you'll learn

Serving a language model is a stack of decisions: how to batch, how to hold the KV cache, whether to split prefill from decode, how to split the model across GPUs, which number formats, whether to draft tokens speculatively. Each lever helps some measures and costs others, and the answer changes with the workload. This site is organised around those decisions.

Nothing here is asserted. Every number comes from a recorded sweep of a discrete-event simulator: 23 levers and the baseline, 5 workloads and 3 devices, 350 configurations of the same 8 GPUs serving Llama-3-70B. For example, chunked prefill with a small budget changes goodput per GPU on H100 by +28% for chat but by -24% for a coding agent.

The simulator is Disaggregated_Inference_Sim. Its JavaScript engine runs in your browser for the what-if, and reproduces the sweep's recorded latencies exactly. How the sweep was run, and what is illustrative: the method.

One chapter per lever, each opening with its mechanism animated from the simulator's own records, then its row of the matrix and why it behaves as measured: the levers. One workload at a time, with the configuration that serves it best: the case studies.

New to the Inference track? Start here: the four sites in reading order, what you need first, and a glossary of the terms they define.

Part of a family of sixteen companion sites in four tracks, all in the site menu above: Foundations (Decoder, Training), Hardware (Kernels, Systolic, Accelerators, Racks), Inference (Serving, Architectures, Numerics, Trade-offs) and Agents (Harnesses, Protocols, Context, Orchestration, Evals, Security). This one is about the decisions. How it was built: about.