Learning to build models by taking them apart.
This is my lab notebook. Every experiment starts with a prediction and ends with a number: what I trained, what it cost, and whether I was right.
Right now: pretraining a small GPT from scratch, then post-training open models, with a soft spot for Hindi and Sanskrit.
GPT-2 tokenizer (2019)
Loading…
o200k tokenizer (2024)
Loading…
Writing
- The same sentence costs 5.6× more tokens in Hindi
GPT-2’s tokenizer needs 62 tokens for a Hindi line that takes 11 in English. A 2024 tokenizer brings it down to 15.
Lab
- Tokenizer playground Type in any language and see how GPT-2 and a modern tokenizer split it.
Learning log
Week 1 of 16: Backprop by hand.
- 1Backprop by hand
- 2makemore
- 3Training dynamics
- 4PyTorch internals
- 5Attention
- 6Tokenizers and GPT-2
- 7Modern architectures
- 8Scaling laws
- 9Tinker, LoRA, SFT
- 10Evals
- 11Preferences and RL
- 12Distillation, local
- 13The model zoo
- 14Local AI / interp
- 15Capstone
- 16Capstone ships