LESSON 32.C2 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Diagnosing a slow request
Four yes-or-no questions on one trace find why a request is slow.
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 · 32.C2 · TRIAGE BAYR5 TPOT 1,123 µs · HEALTHY 342 µs
01
Stage 1 of 5 · Time per token
R5 gets one token per step, so its TPOT is the step time. It is 1,123 µs against a healthy 342 µs.
Explain it simply
R5 is one of 16 requests that decode together. Each step makes one new token for each of them, so R5 waits one step for every token. The first question compares this step with a healthy step. It must be more than 10 percent slower to count as slow.
A trace of one decode step on rank 0, 1,123 µs long, and a decision tree below it. The healthy step ends at 342 µs. The first question answers yes.
kernels, pathtoken copiesweight copy, healthy stepidle and waitsCPU work
Toy: one decode step of 16 requests on 2 GPUs, six traces
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The step is slow if it is over 10% longer than healthy.
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.