Prompt
Try
Load a model to start.
SmolLM2 135M is preselected because it is a small download. Larger models (0.5 to 1 billion parameters ) give clearer results in the middle layers.
Each column is one piece of your prompt, called a token . Each row is one processing step of the model, called a layer : the input at the bottom (the embedding ), the final answer at the top. Each cell shows the word that step would predict next, in a stronger color when the model is more confident.
What each layer predicts
How to read this
- Each column is one piece of your prompt. The model reads text in pieces called tokens, so long words are split, for example "Eiffel" into "Eiff" and "el".
- Each row is one processing step (layer) of the model. The bottom row is the input, the top row is the model's final answer.
- A cell shows the word that this layer would predict next if the model stopped there. A stronger blue means more confident.
- The amber line marks where the model settles: from there up, every layer agrees with the final answer.
- Some models have an extra MTP block , shown as the rows above the final layer. It guesses two tokens ahead, one position earlier than the layers, but its guess is drawn in the same column as theirs, so every cell in a column guesses the same next token. The first column is empty.
- The MTP block has three rows , read from the bottom up like the layers: proj, after it mixes the last layer with the next word; attn, after it looks back over the text; and MTP, its output after a last refining step.
- The dashed draft columns go past your prompt. The MTP block guesses on from its own guesses, as in speculative decoding: under each column is the token it reads, and the MTP cells are its guess for the token after. The first one is the model's final prediction, the dashed ones are the drafted tokens. Only the MTP rows have cells there.
- Shading by KL compares the whole list of guesses, not just the top word: a stronger blue means the layer already thinks like the final answer.
- The small i markers explain terms; click or tap them.
- Hover or tap a cell for its top 5 guesses. Clicking or tapping a cell also follows one word through all layers.
Hover a cell for its top 5 guesses. Click a cell to trace a word through the layers.Tap a cell for its top 5 guesses and to trace a word through the layers.