AI and ML

AI/ML Bootcamp

An interactive course that goes from CS fundamentals to building and training LLMs, with live widgets and auto-graded Python exercises.

A small neural network trained in the browser to separate two interlocking spirals, with its accuracy, loss curve and the output of each hidden neuron

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.

The course home page, showing 14 modules, 99 lessons and 32 lessons written so far, above the lesson lists for the first two modules
The course map. Inside the app, the course is called LLM Bootcamp.

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.

The optimizer race widget: SGD, SGD with momentum, RMSprop and Adam take different paths down a narrow valley, next to their loss curves
Four optimizers race down the same valley.
The loss doctor widget: loss and accuracy curves from a broken training run beside a healthy one, with eight possible diagnoses
Eight real training runs, each with one bug. Read the curves and make a diagnosis.

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.

Exercise results with 7 of 13 tests passing. One failed test says norm of 3, 4 is 25, expected 5.
Feedback on a classic mistake: forgetting the square root in a vector's length.

The exercises build on each other. In the deep learning module, for example, you:

  1. Write your own autograd engine, the part of PyTorch that works out gradients.
  2. Build a neural network on top of it and train it.
  3. 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 →