Skip to content
AgenticAIWiki

Reshaping the next-token odds

Full screen
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.

In this chapter

  1. 6.1Temperature4 min read
  2. 6.2Top-p and top-k4 min read
  3. 6.3Stop sequences and max_tokens4 min read
  4. 6.4Picking settings for extraction vs creative work4 min read
  5. 6.5Frequency and presence penalties5 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…