Predicting the Next Word
Given some text, an LLM produces a probability distribution over what comes next, then picks from that distribution, then does it again.
That's all it does.
The essay it produced, the code you asked for, the email you edited, and the fabricated citations are that loop running over and over.
Today we build toy models of this loop by hand, with dice.