6 steps · 0 done

This is a large language model in miniature. Same objective (predict the next token), same loss (cross-entropy), same sampling (temperature), same evaluation (held-out perplexity), but the tokens are letters, the corpus is 778 first names, and the model fits on a screen.

The approach follows Andrej Karpathy's makemore lectures: start with counting, then show that a one-layer neural network trained by gradient descent learns the same thing, then add context.

locked

The project uses everything in this module. Solve these first:

what you'll build
  1. Tokens and a held-out set
  2. Count the bigrams
  3. Probabilities and perplexity
  4. Sample new names
  5. The same model, as a neural network
  6. More context, chosen honestly

The editor opens with the project.