What transfers to a GPT trained on 3.7M tokens, and what doesn't
A GPT is a program that writes by guessing the next word, over and over. For an Advanced Machine Learning project at the ANU I built a small one from scratch and trained it on five-sentence stories. It had about 30 million parameters, the adjustable numbers it tunes as it learns, and only 3.7 million tokens to learn from, a token being the word or piece of a word it reads at a time.
That is very little. The usual rule of thumb for a model this size, known as Chinchilla scaling, suggests around 600 million tokens, so mine had roughly 160 times less data than it "wants". With so little to learn from, every design choice became a question of not wasting anything, and several habits from large models stopped working.
One number runs through everything below: perplexity, the score I was graded on. It measures how surprised the model is by text it has never seen, so lower is better.
The models below are drawn to scale from the real configurations: volume is parameters.
1. The tokenizer was the biggest lever
19.3M of 31.69M parameters (61%) sit in the lookup table. Test perplexity 28.62.
The largest single gain didn't come from the model's design at all. It came from the tokenizer, the dictionary that chops text into tokens. A model keeps a lookup table with one row for every token in that dictionary. With the standard GPT-2 dictionary of 50,257 tokens, that table alone held about 19.3 million parameters: over 60% of the model, spent on a lookup table. Switching to a dictionary of 32,000 tokens shrank it to about 12.3 million and freed about 7 million parameters for the layers that actually learn, and test perplexity fell from 28.62 to 23.71 on an otherwise identical model.
The graded evaluation required the GPT-2 dictionary, so the final model couldn't use the smaller one, but the lesson stands: when parameters are scarce, where they sit matters more than how many there are.
2. Depth beat width
A model of a fixed size can be shaped two ways: many thin layers stacked up (deep), or a few fat ones (wide). At the same parameter count, deeper and narrower won every time: 7 layers scored 25.77, 11 scored 25.45, 16 scored 25.17, and 20 layers at width 272 scored 25.12. That contradicts the finding from large models that the shape barely matters. My reading is that on small data each extra layer refines what the previous one worked out, while extra width adds parallel features that the data is too small to teach.
3. Only two of three modern upgrades transferred
Test perplexity 25.33 · the baseline
Modern open models such as LLaMA add three upgrades to the original GPT design, and I tried each one. RoPE, a different way of telling the model where each word sits in the sentence, was the biggest win (25.33 to 24.69), and it costs no parameters: the table the model used to keep for positions disappears. RMSNorm, a simpler way of keeping the numbers inside the model in a steady range, helped modestly (25.01). SwiGLU, a more elaborate version of one of the model's inner steps, has extra parts that need enough data to learn anything useful, and 3.7 million tokens wasn't it: perplexity rose to 25.62 and training became unstable after 6,500 steps. RoPE and RMSNorm together reached 24.67: they help each other, but their gains don't simply add up.
4. Matching the data beat having more of it
The obvious cure for too little data is more data, so I tried that. Training first on TinyStories, a much larger collection of simple children's stories, gave the worst result of the project (53.26), and adding machine-written stories also hurt. Continuing the training on stories written by Gemini worsened perplexity too, though the stories the model then wrote read better. The one strategy that improved both was filtering the original stories for quality (25.33 to 24.92). Data that doesn't resemble what the model will be tested on made things worse, however good or plentiful it was.
5. Perplexity is not quality
The submitted model (20 layers, with RoPE and RMSNorm) scored 24.67. A slightly wider sibling scored 24.84 and wrote noticeably better stories. Perplexity measures how well a model predicts the exact words of the test stories, not whether its own stories make sense. It is the right number to optimise, and the wrong one to stop looking past.

Try the model
It may take a minute to wake up.
The thread through all of it
Recipes from large-scale training are tuned for large-scale problems. At small scale, some of them are free wins (RoPE), some make no difference, and some actively hurt (SwiGLU). The only reliable way to know which is to change one thing at a time and measure.