An Introduction to Neural Networks (victorzhou.com) · Victor Zhou
A two-layer network with the gradients done by hand, so the next step has something to automate.
Plans / Plan 02 · Six weeks
You end up withYou've written backprop, a small GPT and a byte-pair tokenizer, and you can read GPT-2's forward pass line by line.
A two-layer network with the gradients done by hand, so the next step has something to automate.
Backpropagation from first principles, in about 150 lines. Everything later is this, scaled up.
Do: the first two videos (bigram counts and the MLP).
The language-model setup the GPT video builds on: tokens in, next-token probabilities out.
Self-attention and the transformer block, written out. This is the architecture your agent runs.
Tokenization explains a surprising share of odd model behavior, from spelling to arithmetic.
The check: GPT-2 with real weights in 60 lines of NumPy. If you can read every line, you've got it.
Stages 4 and 5 of the ML course: training a real model, Llama's architecture and fast inference. They need more time and a GPU.
Steps 7 and 8 of the ML course train a real one.