Learn Inference: an interactive guide to serving generative models in production

Learn
Inference

Serving generative
models in production

Everything after training

Training teaches a model what it knows. Inference is everything that happens afterward, every time somebody uses it, and it is where the bill actually lands. Serving a generative model well means working across a strange range of the stack: attention kernels at one end, GPU procurement across three clouds at the other.

This is an interactive companion to Inference Engineering by Philip Kiely. It follows the book’s structure and covers the same ground. I rewrote the explanations and built simulators for the parts you grasp faster by turning a dial than by reading a paragraph.

Try one

This one is from chapter 1. Press run, then drag the sliders to feel the difference between starting fast and finishing fast.

Press run to stream a response.

TTFT
400ms
Compute bound, scales with prompt length
TPS
30/s
Bandwidth bound: the same full model read every token
Total
1.4s
31 words end to end
Adjust

33ms between tokens

Figure 1.4. Time to first token versus tokens per second. Two numbers, two phases, two bottlenecks. A response that starts instantly and trickles can feel faster than one that pauses and then dumps, even when the second finishes first.Illustrative numbers

Chapters

Glossary

Every term, defined once