Pinwheel LLM

My first language model could tell a story about a dog. Asked to finish "The capital of France is," it told another story. I wanted to see how far I could take it with 50.7 million parameters and a graphics card with 16 GB of memory.

These seven posts follow the experiments from the first training run to the two models I kept for later work. I start with what the model reads and how its predictions are scored. Then I describe how I changed the training recipe and experimented with the layers, and what happened when the model read ten billion tokens. The last two posts look at what a smaller training run can learn from the finished model and how changing the reading material affects the skills it picks up.

The experiment tree gives the settings and scores for individual runs. The training walkthrough follows a piece of text through a single training step. Experiment tree · Training walkthrough · Source code