take the user input split it into tokens pass tokens through Transformer layers compute probabilities for the next token choose one token append it to the sequence repeat until stopping condition