Glossary: Transformers Basics
Also written: top-k
Sampling only from the k likeliest tokens, after setting all others' logits to minus infinity.
Top-p samplingSampling