Unit 7 games

Inside the Chatbot

How a language model turns your message into an answer

Your mission

Send a message to an AI assistant and follow it inside: watch it split into tokens and numbers, pass through the model, and come back one predicted token at a time. Then run your own tokenizer, build sentences from next-token probabilities, and see attention connect the words.