Why FDEs who never train models should still build GPT from scratch
Andrej Karpathy's free course runs from a 150-line autograd engine to a tokenizer, and jumping straight to lecture seven skips the most valuable part.
In brief
- The course has 8 lectures, opening with micrograd (2h25m), moving through 5 makemore lectures, then GPT and the GPT Tokenizer (2h13m); the syllabus is still marked 'ongoing'.
- Lecture 1 needs only basic Python and some high-school calculus, but the full course demands solid Python programming.
- For an FDE, the course's biggest payoff is being able to explain model behavior to clients, not training models yourself.
The first lecture of the course runs 2 hours and 25 minutes, and by the end of it you have an autograd engine of about 100 lines plus a neural network library of about 50 lines. That is micrograd, the starting point of “Neural Networks: Zero to Hero”. Andrej Karpathy describes it as a course on building neural networks from scratch, in code.
The course does not teach you how to call an existing model; it teaches you how to write one yourself. The official GitHub repo describes it as a course that starts from the most basic foundations.
For a developer moving into forward deployed engineering, that approach repays the time. Say a client asks why the model just did something strange. Even if you never have to train a model yourself, a correct explanation still depends on understanding what sits underneath the API.
Eight lectures, taken in order
The official page on karpathy.ai lists the syllabus in a clear sequence. Lecture 1 builds micrograd to explain backpropagation. Lectures 2 to 6 form the makemore series: from a character-level language model up to an MLP, then activations, gradients and BatchNorm, then writing backprop by hand, ending with WaveNet.
Lecture 7, on building GPT, is the best known. Lecture 8 builds the GPT Tokenizer and runs 2 hours and 13 minutes. The syllabus ends with the word “ongoing”, meaning more lectures may follow.
The advice here is not to jump straight to lecture 7. The syllabus is built from the foundations up, and taking a shortcut easily turns you into someone watching another person type code. Even the nanoGPT repo, which accompanies the GPT lectures, recommends watching Zero To Hero for context on GPT and language models.
Who should take it, and do you need strong math?
The two official sources state slightly different prerequisites, and the difference is useful. The repo says lecture 1 needs only basic Python and a vague memory of high-school calculus. The official page sets a higher bar for the whole course: solid Python programming, and introductory math such as derivatives and Gaussian distributions.
If you have written Python professionally for two or three years, you qualify. The math you can brush up on as needed. The harder part is patience: these are long videos that expect you to type the code along, step by step.
Every lecture comes with exercises, listed in the YouTube video description. Do not skip them. Watching the videos without doing the exercises is like reading deployment docs without ever deploying.
Idea one: a gradient is just the chain rule
The first idea worth keeping comes from micrograd. Work through a small example yourself: take f = a·b + c, with a = 2, b = -3, c = 10, which gives f = 4. By the chain rule, the derivative of f with respect to a is b, or -3; with respect to b it is a, or 2; and with respect to c it is 1.
All of backprop is that calculation run backward through the graph, one node at a time. Once you can compute those three numbers by hand, training stops looking like magic.
Idea two: learn to read the network’s health
Part 3 of makemore, on activations, gradients and BatchNorm, teaches a habit very close to FDE work: look inside the system to diagnose it instead of guessing. Before concluding that a model “learns badly”, check whether the signal actually flows through the layers.
Try a small calculation with tanh. If a neuron’s input is 5, its output is tanh(5) ≈ 0.9999, and the local derivative 1 − tanh² is only about 0.0002. The gradient flowing back through that neuron is multiplied by a number close to zero, so the weights before it barely move even while the loss stays high.
A neuron in this state is called saturated. If it saturates on every example in the data, it almost never receives a meaningful gradient and is, in effect, “dead”. Detecting it is simple: plot a histogram of each layer’s outputs and count the share of values whose absolute value exceeds 0.99.
If most of a layer’s values pile up at the two ends, −1 and 1, suspect the weight initialization or the input scale before suspecting the architecture. BatchNorm is one way to pull the activation distribution back into the range where gradients can still flow.
Beginners tend to make three mistakes: watching only the loss curve and never the per-layer activations and gradients; initializing weights so large that the network saturates from the first step; and rushing to change the architecture or raise the learning rate before measuring anything.
At a client site, this habit carries over intact. When a pipeline produces bad results, the first move should be to measure it layer by layer, before touching the prompt or swapping the model.
Idea three: the tokenizer is a separate layer
Lecture 8 gives the tokenizer a lecture of its own, and its source code was released as the minbpe repo, with a written version of the lecture in the file lecture.md. The lesson to take away is that the model never sees text, only tokens, and how text is split into tokens is decided in a step outside the neural network.
Take a client in Vietnam who asks why a Vietnamese prompt costs more tokens than an English prompt with the same content. After lecture 8, you can open the tokenizer, show the client which pieces their text is split into, and explain it with their own data. That kind of answer is how an FDE earns a client’s trust.
Turning the course into evidence on your CV
The line “watched Zero to Hero” on a CV is worth almost nothing. What carries weight is a repo where you rewrote micrograd yourself, did the makemore exercises, and wrote a README explaining each part in your own words.
When reading FDE job descriptions, look for requirements about understanding how models work or debugging model behavior: that is where this repo belongs.
After the eight lectures, the logical next step is to open nanoGPT and minbpe, the two repos that accompany the course, and read the code yourself instead of only watching videos. When a client asks “why”, you will have an answer, because you once wrote the very thing that is giving the wrong one.
Was this article useful?
Thanks for the feedback!