LESSON 10.03 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Autoregressive generation
Watch a model write text one token at a time and read each one back.
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 · 10.03 · GENERATION BAYPROMPT 2 TOKENS · READS 2
01
Stage 1 of 6 · Read the prompt
The prompt is "the cat". The model reads its last 2 tokens.
Explain it simply
The prompt is the text the model starts from. The box around the last 2 tokens shows what the model reads. This toy reads 1 or 2 tokens. A real transformer reads the whole text so far.
The prompt tokens the cat sit in a row. A box marks the last 2 tokens, and a ribbon runs into the model box.
tokens readmodel and passesprobabilities and new tokensreading window
Toy: the 8-token model of 5.17 and 10.01, trained on 4 sentences; 10 new tokens
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The vector h comes from the last 2 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.