Skip to content
Road to Intelligence

Lectures & explainers

Watch

A few exceptional videos rather than many mediocre ones — 43 so far, about 29 h 21 min in total. Each is placed where it fits in the curriculum, with a note on why it's worth your time.

Chapter 2

The Math Toolkit

17 min

3Blue1Brown

The essence of calculus

Rebuilds the idea of a derivative from scratch, visually, without assuming you remember school calculus.

Covers: What derivatives and integrals are really about.

Must know
24 min

StatQuest with Josh Starmer

Gradient Descent, Step-by-Step

Works gradient descent out by hand on a tiny regression problem, one step at a time.

Covers: Loss, derivatives, step size, stochastic gradient descent.

Should know
31 min

3Blue1Brown

Solving Wordle using information theory

A playful but rigorous introduction to information and entropy as expected bits of surprise.

Covers: Information in bits, entropy, choosing actions that maximize expected information.

Should know

Chapter 3

Machine Learning

27 min

StatQuest with Josh Starmer

Linear Regression, Clearly Explained!!!

Least squares, R², and what a fitted line actually tells you — from the ground up.

Covers: Fitting a line, residuals, R², p-values.

Should know
9 min

StatQuest with Josh Starmer

StatQuest: Logistic Regression

A short, clear picture of how logistic regression turns a line into probabilities.

Covers: The S-shaped curve, classification with probabilities, maximum likelihood.

Must know
16 min

StatQuest with Josh Starmer

ROC and AUC, Clearly Explained!

How to evaluate a classifier across every possible threshold.

Covers: Confusion matrices, true/false positive rates, ROC curves, AUC.

Should know
20 min

StatQuest with Josh Starmer

Regularization Part 1: Ridge (L2) Regression

Regularization made concrete: accept a little bias to reduce a lot of variance.

Covers: Ridge penalty, λ, bias–variance, fitting with few data points.

Should know

Chapter 4

Neural Networks

Chapter 5

Vision, Speech & Reinforcement Learning

23 min

3Blue1Brown

But what is a convolution?

A visual introduction to discrete convolution that starts with adding dice and ends with image kernels and FFTs.

Covers: Slide, multiply and add; image kernels such as blurs and edge detectors; and why the same operation appears in probability and signal processing.

Must know
20 min

3Blue1Brown

But what is the Fourier Transform? A visual introduction.

Builds the intuition behind splitting a sound into its frequencies, the operation every spectrogram column performs.

Covers: Winding a signal around a circle, why a frequency present in the signal stands out, and how that separates mixed tones.

Should know
26 min

Steve Brunton

Reinforcement Learning: Machine Learning Meets Control Theory

A compact overview of the RL problem, its leading algorithms and applications, from a control-theory perspective.

Covers: Agent, environment, reward, policy and value; Markov decision processes; the credit-assignment problem; and Q-learning.

Should know

Chapter 6

Language Before Transformers

1 h 58 min

Andrej Karpathy

The spelled-out intro to language modeling: building makemore

Builds a character-level bigram model from counts, then trains a one-layer neural network that learns the same table by gradient descent.

Covers: Language modeling, count tables, smoothing, negative log-likelihood, and swapping counting for a trained network.

Should know
1 h 16 min

Andrej Karpathy

Building makemore Part 2: MLP

Implements the Bengio et al. 2003 neural language model at character level: an embedding lookup, a hidden layer and a softmax over the next character.

Covers: Learned embeddings, a fixed context window, training splits and why sharing vectors beats exact-count tables.

Should know

Chapter 7

Transformers

1 h 56 min

Andrej Karpathy

Let's build GPT: from scratch, in code, spelled out.

The best way to reach IMPLEMENT level on Transformers: write one yourself, line by line, in PyTorch.

Covers: Self-attention, multi-head attention, masking, residuals, layer norm — all built from a bigram baseline up.

Must know

Chapter 8

The Rise of Large Language Models

2 h 14 min

Andrej Karpathy

Let's build the GPT Tokenizer

Many odd LLM behaviours trace back to tokenization; this shows you why by building a BPE tokenizer.

Covers: Unicode, bytes, byte-pair encoding, GPT-2/GPT-4 tokenizers, special tokens.

Should know
1 h

Andrej Karpathy

[1hr Talk] Intro to Large Language Models

A clear one-hour overview of what LLMs are, how they are trained, and where they're going — good orientation for Part III.

Covers: Pretraining, fine-tuning, scaling, tool use, security issues.

Must know
3 h 31 min

Andrej Karpathy

Deep Dive into LLMs like ChatGPT

A long, general-audience walk through the whole pipeline behind a chat model, from internet text to tokens to pretraining to post-training.

Covers: The full training stack behind a chat model, from internet text and tokens to a pretrained base model and the post-training that turns it into an assistant.

Should know
4 h 1 min

Andrej Karpathy

Let's reproduce GPT-2 (124M)

Build and train the smallest GPT-2 from scratch in PyTorch, then optimise it. For when you want to implement what this chapter describes.

Covers: The GPT-2 network in code, the engineering that makes training fast, and a full training run using the GPT-2 and GPT-3 papers' hyperparameters.

Frontier