LESSON 29.10 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
TTFT, TPOT and ITL
Follow one request on a busy GPU and time each token it writes.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 29.10 · SERVING BAYR2 · 4 REQUESTS · 16 TOKENS
01
Stage 1 of 5 · Latency
Latency is the time a user waits. Each lane is one request: a wait, a prefill, then one token per step.
Explain it simply
Each row is one request to a chatbot. Brick is waiting, and teal is the prefill, which reads the whole prompt. Each blue dot is one new token on the user's screen. On this toy GPU, every step reads the weights once, in 16 ms, and each prompt token adds a little.
4 request lanes on a time axis in ms, over a row of 17 GPU steps. R2 is sent at 10 ms and writes 16 tokens.
request, prefillwait, stretched gapoutput token, TTFT, E2EGPU step
Toy: the 29.C2 trace on one toy GPU
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A step costs 16 ms plus its prompt tokens and running sequences.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 2 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.