Course map · S1 How LLMs work · Episode 8 of 12
Sampling
Lesson complete
Sampling
The rule to keep
Set sampling for the task, and judge a model by its rate across many runs, never by one answer.
1 / 17
Lesson notes
Sampling draws each token from the model's odds, so settings like temperature trade consistency for variety, and a feature must be judged by its rate across many runs.
Decision rule
Set sampling for the task, and judge a model by its rate across many runs, never by one answer.
Ideas in this lesson
- Next-token prediction
- Probability
- Measuring, not quoting