Understand the algorithm that turns a trained language model into text, well enough to say what every sampling setting does to the distribution and to tell a model failure apart from a decoder failure
How a Model Picks Its Next Word

The model produces a distribution and something else has to choose a word. This course covers that choice, from greedy search and beam width through temperature, truncation, repetition, grammars and speculative decoding.
8 lessons, written and corrected before you arrived. Reading them here needs no account. The first reads the whole way through; the others open and then stop. Starting the course gives you your own copy, where every idea has problems standing under it and you can ask about any sentence.