AI Glossary
Top-k sampling
What does “Top-k sampling” mean?
Top-k sampling: Sampling from only the k tokens with the highest predicted probabilities at a generation step.

What is an example of “Top-k sampling”?
A model draws from its twenty most likely next tokens.