LESSON 31.02 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Disaggregated prefill and decode
Prefill and decode move to separate GPUs, and the KV cache travels between them.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 31.02 · SERVING BAYPROMPT TOKENS PER GPU 2,180 / 1,030 / 0
01
Stage 1 of 6 · Route
The router sends each request to a prefill GPU. Least loaded picks the GPU with the least work.
Explain it simply
Each teal tick at the top is a request arriving. The curved line shows the GPU the router picks for it. Least loaded counts the tokens each GPU still has to do and picks the smallest pile. The bars on the right count the prompt tokens each GPU gets.
Ten arrival ticks, each with a line to its GPU lane. Prompt tokens per GPU: 2,180, 1,030, 0.
request, prefill step, KV transferdecode step, TTFT and gapstall, wait, missed SLOGPU role, SLOGPU lane
Toy: the 29.C2 trace, 10 requests on 3 toy GPUs, 128 KiB of KV per token
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The router picks the GPU with the least work left, in tokens.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.