Serving LLMs
One room, eight lessons
Each lesson adds one thing to the same restaurant. The ones you have read are drawn in.
- 0730 the kitchen Build Your Own Inference Engine
The cook is the model, and the engine is how orders are taken, grouped, stored and returned.
- 0731 the notebook The KV Cache
The cook keeps notes, and every slot's notebook is ruled in advance for 32 places.
- 0732 the bus Batching: A Slot That Frees Early
A bus with eight seats: a seat that frees at a stop goes to the next one waiting.
- 0733 the benches Paged Attention: The Cache in Blocks
Benches of 4 chairs, handed out as each fills, and a seating chart for every party.
- 0734 the labelled drawers The Prefix Cache: Computed Once
A drawer holds one strip's saved notes, labelled so a shared opening is worked out once.
- 0735 the proofreader Speculative Decoding
A cheap guesser drafts ahead, and the proofreader checks the whole draft in one visit.
- 0736 the front door The Engine, Whole
A front door on the whole engine, and someone outside with a stopwatch.
- 0737 the Stop button Stop and Resume
A Stop that has to reach the cook, not just the screen, and a reply that comes back whole.