Skip to content
AgenticAIWiki

← Chapter 6. Sampling

Reshaping the next-token odds

Prompt"The weather today is"Modela probability per tokenNext-token probability · T = 1.00·sunny45%·cloudy30%·lovely15%·warm5.0%·grey4.0%·purple1.0%Six candidates, all possible.

Swipe to change step

Step 1 of 7. For the next token the model gives every candidate a probability. At the default settings sunny leads with 45%, and even purple has a small chance. Prompt ("The weather today is"). Model (a probability per token). arrow from Prompt to Model. a scores moving along e1.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.