- Glossary
- Sampling
Glossary term
Sampling
Choosing the next token from the model’s probability distribution, rather than always taking the most likely one.
Open lesson 6.2
Top-p and top-k · Chapter 6, and 3 more lessons below
In plain words
Sampling settings trade predictability for variety. On current Claude models, defaults are usually best.
Taught in
Also in these lessons
DeterminismExplicit criteriaLogitsOpen-weight modelParallelizationSoftmaxStructured outputsTool use