Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Serving LLMs

One room, eight lessons

Each lesson adds one thing to the same restaurant. The ones you have read are drawn in.

outside0730: the kitchen the kitchen0731: the notebook the notebook0732: the bus the bus0733: the benchesthe benches0734: the labelled drawers the labelled drawers0735: the proofreader the proofreader0736: the front door the front door0737: the Stop button STOPthe Stop button
  1. 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.

  2. 0731 the notebook The KV Cache

    The cook keeps notes, and every slot's notebook is ruled in advance for 32 places.

  3. 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.

  4. 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.

  5. 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.

  6. 0735 the proofreader Speculative Decoding

    A cheap guesser drafts ahead, and the proofreader checks the whole draft in one visit.

  7. 0736 the front door The Engine, Whole

    A front door on the whole engine, and someone outside with a stopwatch.

  8. 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.