LESSON 29.C4 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Decoding strategies on one prompt
Four decoding strategies write 8 tokens after one prompt, side by side.
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 · 29.C4 · DECODING BAYAFTER “THE” · CAT 0.383 · DOG 0.314
01
Stage 1 of 6 · Next-token chances
Every strategy reads these chances after “the”. “cat” leads with 0.383.
Explain it simply
The bars show the toy model's chances for the next token after the prompt, “the”. “cat” has 0.383 and “dog” has 0.314. All four strategies in the four rows start from this same row. They differ only in how they pick a token from it.
Ten probability bars after the prompt the. Cat 0.383, dog 0.314. Four empty rows of 8 token slots.
prompt, logitsT, filter, draw u, penaltydropped or penalized tokens, repeatsprobabilities, output, log P
Toy: a hand-set bigram model over 10 tokens, prompt “the”, 8 steps
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Softmax turns the 10 logits into chances that add to 1.
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.