How can a model generate text when the number of possible sentences is enormous? Classifying every complete sentence as a separate output is impractical: a vocabulary of 20,000 words already allows 160 quadrillion four-word sequences. section 15.1
A language model takes a more manageable approach: given the tokens seen so far, it predicts a probability distribution over the token that comes next. With a 20,000-word vocabulary, that means choosing among 20,000 possible next-token outputs, not every possible sentence. Repeating the prediction lets the model generate a longer sequence. section 15.1
Start with characters
A small language model can predict the next character from preceding characters. Repeating that step provides a way to generate Shakespeare-like text. section 15.1


































































