Turn a model’s scores for the next word into a choice: temperature, softmax, then greedy, top-k, top-p or min-p cut the list, and a random number picks from what is left.
This interactive visualization needs JavaScript.