How language models learn
I made this short animation to show how language models learn and produce text. It starts with a small network that calculates a prediction and changes its weights. The last part illustrates how a model writes an answer one token at a time.
What could come next?
The small network calculates its predictions and weight update. The language-model steps are illustrated.
Why I built this
I think it helps to know a little about what these tools are doing. If you understand what the model learned during training and what it gets from your prompt, it is easier to decide what information to give it and what to check in its answer.
I wanted a short explanation I could send to someone who is curious about how this works. You can watch it in 90 seconds or pause at each step. I hope it helps people get more comfortable trying the tools and gives them a few more questions to ask.
The small network does the math shown on screen. The text-generation example is scripted. I used 3Blue1Brown’s explanations as a reference. His videos cover much more of the detail.