TinyGPT Time-lapse

A tiny transformer learns to write, one letter at a time. Drag the slider to go from random noise at step 0 to the finished model, and watch what it writes, what it is sure of, and where it looks.

random startfully trained
step0
train loss-
val loss-

Loss

How surprised the model is by the next letter (lower is better). Step axis is logarithmic so the fast early learning is visible. A model that guesses uniformly among all characters scores .

training batchesheld-out text

What it writes

Same prompt and same random seed at every step, so only the model changes.


      

How sure it is

A sentence the model never trained on. Each letter is shaded by the probability the model gave it before seeing it. Tap a letter to see the model's top guesses at that spot.

0%100%

Where it looks

Each attention head decides which earlier letters to read when predicting the next one. The grid shows every letter (rows) looking back at earlier letters (columns). The strip below shows what the selected letter looks at.

Which letters it thinks are alike

Every character has a learned vector. Squashed to 2D, characters the model treats alike drift together over training: vowels, capitals, digits, punctuation.