The model is always solving one immediate problem
Given the text it can already see, which token is most likely to come next?
Follow one sentence through a transformer, stage by stage. Tokens become vectors, attention gathers context, and the model ranks every candidate for the next word. Press play, or step through it yourself.
Given the text it can already see, which token is most likely to come next?
Every stage exists to sharpen one ranked list of continuations. Context flows in, probabilities come out, and the top of the list becomes the next word. Then the whole machine runs again.