mackyi.com
An animated illustration: a cartoon language model reads the tokens so far, runs them through its layers, shows the probability of each candidate next token, samples one, and appends it to the text, one token at a time, until it decides to stop.