
What it is
A web app that teaches machine learning from the ground up, starting with the math and ending with building, training and shipping large language models. One idea runs through the whole course: you build every core piece yourself, then switch to the library that hides it.
I’m making it with Claude. Claude writes the lessons and builds the app, and I’m its first student. Since I’m learning the material as I go, I can’t be the one who vouches for it, so a big part of the project is checking that what it teaches is correct.
The full plan is 14 modules and 99 lessons, about 200 hours of material. The first four modules are written: 32 lessons, 37 coding exercises, two projects and four checkpoint quizzes.
How a lesson works
Most lessons follow the same rhythm: predict what will happen, play with it, read why it happens, then build it.
Play with it
There are more than 30 interactive widgets, and many of them run the real thing. The screenshot at the top of this page shows a 114-parameter neural network that trained right in the browser until it classified every point in the spiral correctly. Each small square shows what one hidden neuron learned.
Build it
Exercises are written in Python and graded right on the page, with a mix of visible and hidden tests. When something fails, the feedback shows what went wrong, and there are hints if you’re stuck.
The exercises build on each other. In the deep learning module, for example, you:
- Write your own autograd engine, the part of PyTorch that works out gradients.
- Build a neural network on top of it and train it.
- Rebuild the same network in PyTorch, where the losses have to match a reference to nine digits.
The module’s final project is a character-level model that invents new names.
Running Python in the browser
Most exercises need no setup. Pyodide, a version of Python compiled to WebAssembly, runs the learner’s code inside the browser, with libraries like NumPy and scikit-learn.
PyTorch is the exception, so the 12 exercises that need it go to a small server on the learner’s own computer. It runs each submission in a fresh process and shuts it down if it runs too long. Both setups use the same grader.
How do you trust a course written by AI?
A confident explanation can still be wrong, and a beginner is the person least likely to notice. So the project’s rule is that correctness has to come from verification, not from someone reading it over:
- Lessons: every number, formula and code claim has to be checked by running code, and claims about papers or models have to cite the original source.
- Exercises: the official solution has to pass every test, and the starter code has to fail at least one.
- The tests themselves: every exercise comes with realistic wrong answers, 533 in total, like the missing square root above. A script checks that the tests catch them, so a wrong answer can’t slip through unnoticed.
- Quizzes: when a checkpoint answer can be computed, it comes with Python code that has to produce the same answer.
- Widgets: the math behind them is compared with NumPy or PyTorch. The one that traces gradients, for example, was checked against PyTorch on more than 1,000 random programs.
What’s next
| Part | What it covers | Status |
|---|---|---|
| Foundations | Python tools, math for ML, classical machine learning | Written |
| Deep learning and language | Neural networks, then tokenization, embeddings and language models | In progress |
| The LLM lifecycle | Transformers, pretraining, alignment, inference and fine-tuning | Planned |
| Shipping | Building LLM apps, multimodal models, interpretability and safety | Planned |
Next up is language: how text becomes numbers, and what a language model actually is. After that comes the part the course is building toward: writing a GPT from a blank file that reproduces GPT-2 small’s outputs.
Next projectPR Story Mode →