Taking models apart, one layer at a time.

I'm learning to train, evaluate and look inside neural networks, and writing it down as I go. Every post starts from the basics and builds up, with a picture for each step and a number at the end.

Now: tokenizers, bytes, and why Hindi costs more.

GPT-2 tokenizer (2019)

Loading…

o200k tokenizer (2024)

Loading…

Each box is one piece the model sees. A small number on a box means several tokens were needed for that one piece, usually because the script wasn't in the tokenizer's vocabulary.

More writing

The next post is in progress. Follow along on RSS.

Lab

Notes