Chapters 1–8 · PyTorch, JAX, TensorFlow, MXNet
Begin here if you are new to deep learning. Starting from tensors and automatic differentiation, you will build linear models, multilayer perceptrons, convolutional networks, and sequence models from the ground up.
By the end, you will be able to train, debug, and evaluate neural networks on images and text, with a solid grasp of core techniques such as dropout and batch normalization.
Read online · Download the PDF
Chapters 9–17 · PyTorch, JAX
Continue here once you are comfortable training neural networks. You will cover modern optimization (all the way to Muon), attention and Transformers, state space models (from Mamba to hybrid architectures), GPU performance and distributed training, reinforcement learning, GANs, and diffusion models.
By the end, you will be able to build and train a Transformer, diagnose performance bottlenecks on single or multiple GPUs, and train both RL agents and modern generative models.
Read online · Download the PDF
Chapters 18–31 · PyTorch
Follow the full lifecycle of building a state-of-the-art large language model—from data curation and pretraining to post-training, systems, and serving.
Currently published as chapter outlines—full chapters coming soon.
Read the outline · Download the PDF
Chapters 33–38 · PyTorch, JAX, TensorFlow, MXNet
Use it as a quick reference or work through all six chapters: linear algebra, calculus, optimization, probability and statistical learning, information theory, and dynamics.
By the end, you will be able to follow every derivation in the main text and read research papers that take this background for granted.
Read online · Download the PDF