Foundations: Python, maths and neural nets

The minimum you need so that nothing later feels like magic: tooling, the maths that matters, and a neural network you wrote yourself.

Generative AI is gradient descent on very large networks. This stage gets you fluent in the Python tooling, the three areas of maths you will use every day (linear algebra, calculus and probability), and the training loop that every later stage builds on.

By the end: You can write a small neural network and its training loop in PyTorch, explain backpropagation, and read a loss curve.

4 topics · about 28 hours

Stage progress0 / 4

Do these first

Nothing: this is the start.

Skip a topic here only if you can complete its checkpoint without looking anything up. The fastest route is Andrej Karpathy's Neural Networks: Zero to Hero series alongside the pages below.

  1. 01

    Python and tooling for ML work

    4 h

  2. 02

    The maths you actually use

    8 h

  3. 03

    Machine learning essentials

    6 h

  4. 04

    Neural networks and PyTorch

    10 h

Build this to prove it

Train a character-level model from scratch

Implement a bigram, then an MLP character-level language model that generates names, first by hand with explicit gradients and then in PyTorch. Track train and validation loss and write up what overfitting looked like.

  • A repo with uv-managed dependencies and a one-command run
  • Autograd engine or manual backprop that matches PyTorch gradients
  • Train and validation curves plus a short write-up
  • Samples generated from the model and a note on their failure modes