LESSON 29.16 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Token budgets and admission control
Watch a token budget fill each step, and see which requests the server admits.
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.16 · SCHEDULERSTEP 8 · 513 OF 768 TOKENS
01
Stage 1 of 5 · One step
A token budget caps the tokens in one step. In step 8, request 8 needs 256 tokens, but only 255 are free.
Explain it simply
The bar on the right stacks the tokens of one step: prefill chunks in teal, output tokens in cobalt. A request whose chunk does not fit in the space left waits for the next step. A real step takes longer with more tokens, so the budget keeps each step short.
Step 8: request 7 uses 1 token, request 2 uses 512 tokens. The budget is 768 tokens.
prefill, KV in useoutput tokenswait, lost work, rejectedbudget, pool, targets
Toy: 13 requests, 3 slots, a 3,072-token KV pool, 1 step = 50 ms
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The tokens of every request in a step fit in the budget.
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.