LESSON 29.13 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Static vs dynamic batching
See who waits and what is wasted when requests share a batch.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 29.13 · SERVING BAY8 REQUESTS · 82 OUTPUT TOKENS
01
Stage 1 of 5 · Requests arrive
Eight requests arrive in 200 ms. Prompts run from 60 to 1,000 tokens, and outputs from 4 to 16.
Explain it simply
Each row is one request to a chatbot. The teal tick shows when it arrives. On the left, the teal bar is the prompt length, and the blue number is how many tokens it writes. These lengths matter once requests share a batch.
Eight request lanes, R1 to R8, on a time axis from 0 to 1,600 ms. Arrivals run from 0 to 200 ms. Prompts: 200, 60, 800, 120, 400, 80, 1000, 150 tokens. Outputs: 12, 16, 6, 10, 14, 8, 4, 12 tokens.
request, prompt, prefillbatchwait, padding, empty slotoutput token, resultdecode step
Toy: R1–R8 of the 29.C2 trace on one toy GPU
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each request has an arrival time, a prompt length and an output length.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 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.