Settings

Theme
Lite Mode (saves mobile data)

In Lite Mode, animations and videos don't play until you tap them, and their size is shown first. Interactive widgets still work.

Text size

Back up or move your progress →

Curriculum

255 lessons in 13 parts, from basic math to how modern LLMs work. 55 are ready now; the rest are on the way.

🎛️ interactive · 🎞️ animation · 🎥 video · 🖼️ diagram · 💻 runnable code

0 Start Here

  1. P0.1What are AI, ML and Deep Learning?Nested definitions, rules vs. learning from data, a short history🎞️ Animated timeline 1950→today; Venn diagram that zooms in
  2. P0.2How a machine "learns"Data → model → prediction → loss → update loop🎛️ A line fitting itself to points, one loop step per click
  3. P0.3Kinds of learningSupervised, unsupervised, self-supervised, reinforcement🖼️ Four-panel illustrated comparison
  4. P0.4Your toolkitPython, Jupyter, Google Colab, running code in this site💻 First in-browser cell: `print` and a NumPy array
  5. P0.5How to use this siteIntuition / Math / Code tabs, quizzes, progress tracking, paths🖼️ Annotated screenshot tour

1 Math Foundations

1A. Pre-calculus Refresher

  1. P1.A1Functions and graphsInput→output, domain, composition, common shapes (linear, quadratic, exponential)🎛️ Function plotter with sliders for coefficients
  2. P1.A2Exponents and logarithmsGrowth, log as inverse, log rules, why ML loves logs (products→sums)🎛️ Linear vs. log-scale axis toggle
  3. P1.A3Summation, products and indicesΣ and Π notation, nested sums, index juggling🎞️ Σ unrolling into a row of additions
  4. P1.A4Sets, notation and reading mathℝⁿ, ∈, ∀, argmax, the math "dialect" of papers🖼️ Printable notation cheat sheet
  5. P1.A5The sigmoid, tanh and other squashing functionsSaturation, ranges, first look at the S-curve🎛️ Overlaid curves with draggable input

1B. Linear Algebra

  1. P1.B1Scalars, vectors and spacesVectors as arrows, as lists, as points; dimension🎛️ Drag a 2D/3D arrow and watch its coordinates update
  2. P1.B2Vector operationsAddition, scaling, linear combinations🎛️ Tip-to-tail addition, scaled with sliders
  3. P1.B3Dot product and cosine similarityProjection, angle, similarity🎛️ Two arrows, live dot product and angle, projection shadow
  4. P1.B4Norms and distancesL1, L2, L∞, unit balls, Euclidean vs. Manhattan, triangle inequality🎞️ Unit "circles" morphing from L1 to L∞
  5. P1.B5Matrices as data and as transformationsRows as samples, matrices as functions that warp space🎛️ 2D grid that warps as you edit the 4 matrix entries
  6. P1.B6Matrix multiplicationRow×column, composition of transformations, shapes `(m×n)(n×p)`🎞️ Row sliding across column; 🎛️ shape checker
  7. P1.B7Span, independence, basis and rankRedundant directions, dimension of the output; the formal vector-space definition and subspaces🎛️ Two vectors whose span collapses to a line when they align
  8. P1.B8The determinantArea/volume scaling, sign = orientation flip, det = 0 means squashing🎛️ Unit square's area changing as the grid warps
  9. P1.B9Inverse and linear systemsUndoing a transformation, solving Ax = b, when no inverse exists🎞️ Transform then inverse-transform the grid
  10. P1.B10Transpose, symmetric and orthogonal matricesRotations and reflections preserve length🎛️ Rotation matrix with angle slider
  11. P1.B11Projections and least squaresProjecting onto a subspace; foundation of linear regression🎞️ Point dropping a perpendicular onto a plane
  12. P1.B12Eigenvalues and eigenvectorsDirections that only stretch🎛️ Grid warp with eigen-directions highlighted in color
  13. P1.B13Singular Value DecompositionRotate–stretch–rotate, low-rank approximation, the pseudo-inverse🎛️ Image compression with a "rank k" slider (→ LoRA preview)
  14. P1.B14Tensors, shapes and broadcastingN-D arrays, axes, reshape, broadcasting rules🎞️ Broadcasting "stretching" a smaller array; 💻 shape puzzles
  15. P1.B15Linear algebra in neural nets: a mapWx + b everywhere, embeddings as rows, attention as matmuls🖼️ Concept map linking forward to later lessons

1C. Calculus

  1. P1.C1Rates of change and the derivativeSlope of secant → tangent, limit idea🎛️ Zoom into a curve until it looks straight
  2. P1.C2Derivative rulesPower, sum, product, quotient, exp, log🖼️ Rule cards; 💻 check with finite differences
  3. P1.C3The chain ruleNested functions, rates multiply🎞️ Gears of different sizes turning together
  4. P1.C4Partial derivativesChange one input at a time🎛️ 3D surface sliced along x or y
  5. P1.C5The gradientVector of partials, direction of steepest ascent🎛️ Contour map with gradient arrow following the cursor
  6. P1.C6Directional derivativesSlope in any direction, why gradient is steepest🎛️ Rotating direction arrow with live slope readout
  7. P1.C7Vector functions and the JacobianMatrix of partials, local linear approximation🎞️ Tiny square warped into a parallelogram
  8. P1.C8The Hessian, curvature and Taylor approximationSecond derivatives, bowls vs. saddles🎛️ Taylor polynomial terms added one at a time
  9. P1.C9Integrals as accumulationArea under curve, Riemann sums, needed for probability🎛️ Rectangles getting thinner
  10. P1.C10Computational graphs and automatic differentiationForward mode vs. reverse mode, why reverse wins for ML🎛️ Step-through graph with values going forward and gradients flowing back
  11. P1.C11Matrix calculus for MLGradients of Wx, xᵀAx, ‖x‖², softmax; shape rules🖼️ Cheat sheet; 💻 verify with autograd

1D. Probability and Statistics

  1. P1.D1Probability basicsSample space, events, axioms, counting🎛️ Dice/coin simulator with running frequencies
  2. P1.D2Random variablesDiscrete vs. continuous, PMF, PDF, CDF🎛️ PDF and CDF linked: drag a point on one, see the other
  3. P1.D3Common distributionsBernoulli, binomial, categorical, uniform, Gaussian, Poisson🎛️ Distribution gallery with parameter sliders
  4. P1.D4Expectation and varianceMean as balance point, spread, linearity of expectation🎞️ Histogram balancing on a fulcrum
  5. P1.D5Joint, marginal and conditional probabilityTables, slicing, independence🎛️ 2D heatmap with marginals on the edges; click to condition
  6. P1.D6Bayes' theoremPrior, likelihood, posterior, base-rate fallacy🎛️ Medical test "1000 people" frequency grid
  7. P1.D7Covariance and the multivariate GaussianCorrelation, covariance matrix as an ellipse🎛️ Drag ellipse; covariance matrix updates
  8. P1.D8Law of large numbers and the Central Limit TheoremAverages converge, sums become Gaussian🎞️ Galton board; 🎛️ sample-mean histogram
  9. P1.D9Sampling and Monte CarloEstimating with random samples, estimating π🎛️ Darts thrown at a square
  10. P1.D10Maximum Likelihood EstimationFit parameters to data; MLE → MSE and cross-entropy🎛️ Slide a Gaussian over data, watch likelihood peak
  11. P1.D11MAP estimation and priorsPriors as regularization🎞️ Prior × likelihood → posterior animation
  12. P1.D12Descriptive statistics and visualizationMean/median/mode, percentiles, box plots, outliers🎛️ Add outliers and watch mean vs. median
  13. P1.D13Statistical thinking for MLConfidence intervals, significance, correlation ≠ causation, comparing models fairly🎛️ Run "experiments" and see how often you're fooled

1E. Information Theory

  1. P1.E1Information and surprise−log p, bits🎛️ Probability slider vs. surprise curve
  2. P1.E2EntropyAverage surprise, uncertainty, coding intuition🎛️ Bar chart distribution you can reshape; entropy meter
  3. P1.E3Cross-entropyWhy it's *the* classification loss🎛️ True vs. predicted distribution, loss updating live
  4. P1.E4KL divergencesoonDistance-like, asymmetric, forward vs. reverse KL🎞️ Fitting one Gaussian to a bimodal one both ways
  5. P1.E5Mutual information and perplexitysoonShared information, perplexity = "effective choices" (→ LLM eval)🖼️ Venn of entropies; 🎛️ perplexity of a die

1F. Optimization

  1. P1.F1What is optimization?Objective, parameters, minima, loss landscapes🎛️ 3D landscape you can rotate
  2. P1.F2Convex vs. non-convexsoonLocal vs. global minima, saddle points🎞️ Ball rolling into different valleys from different starts
  3. P1.F3Gradient descentUpdate rule, learning rate too small / right / too big🎛️ Ball on surface with learning-rate slider (diverges when too big)
  4. P1.F4Stochastic and mini-batch gradient descentsoonNoisy gradients, batch size trade-offs🎛️ Full-batch vs. SGD paths side by side
  5. P1.F5Momentum and adaptive steps (preview)soonHeavy ball, per-parameter step sizes🎞️ Ravine: plain GD zig-zags, momentum glides
  6. P1.F6Second-order methodssoonNewton's method, why it's rarely used at scale🎛️ Newton vs. GD on a 1D function
  7. P1.F7Constrained optimization and Lagrange multiplierssoonOptimizing on a constraint (→ SVMs)🎞️ Contours touching a constraint curve

1G. Numerical Computing

  1. P1.G1How computers store numberssoonfp32, fp16, bf16, int8, fp8 bit layouts, precision vs. range🎛️ Bit-flipper showing the value each bit pattern encodes
  2. P1.G2Numerical stabilitysoonOverflow, underflow, log-sum-exp, stable softmax💻 Naive softmax breaks, stable one doesn't
  3. P1.G3Randomness, seeds and reproducibilitysoonPRNGs, seeding, nondeterminism on GPUs💻 Same seed, same result
  4. P1.G4Big-O and compute costsoonTime and memory complexity, FLOPs🎛️ Growth curves n, n log n, n² (→ attention cost)

2 Programming Toolkit

  1. P2.1Python essentials for MLsoonLists, dicts, functions, classes, comprehensions💻 In-browser exercises
  2. P2.2NumPy: arrays and vectorizationsoonWhy loops are slow, slicing, axis operations💻 Timer: loop vs. vectorized
  3. P2.3NumPy broadcasting and einsumsoonShape rules in practice, einsum notation🎛️ Einsum visualizer
  4. P2.4Plotting with MatplotlibsoonLine, scatter, histogram, image plots💻 Live plots
  5. P2.5Data wrangling with PandassoonDataFrames, filtering, grouping, cleaning💻 Titanic dataset walk-through
  6. P2.6PyTorch tensors and autogradsoonTensors, devices, `requires_grad`, `.backward()`💻 Colab
  7. P2.7The PyTorch training loopsoon`nn.Module`, `Dataset`, `DataLoader`, optimizer, GPU🖼️ Annotated loop diagram; 💻 Colab
  8. P2.8Tooling: Git, environments, Hugging Face Hubsoonvenv/conda/uv, using pretrained models💻 Load a model in 5 lines

3 Classical Machine Learning

3A. Core Concepts

  1. P3.A1The supervised learning setupsoonFeatures, labels, hypothesis, loss, generalization🖼️ Pipeline diagram
  2. P3.A2Linear regressionsoonLine fitting, MSE, closed-form vs. gradient descent🎛️ Drag points; line and residuals update
  3. P3.A3Polynomial regression, underfitting and overfittingsoonModel capacity🎛️ Degree slider: wiggly curve through noise
  4. P3.A4Train, validation and test setssoonWhy we hold out data, cross-validation🎞️ K-fold rotation animation
  5. P3.A5The bias–variance trade-offsoonDecomposition, U-shaped test error🎛️ Many fits from resampled data overlaid
  6. P3.A6Regularization: L1 and L2soonPenalizing weights, sparsity, geometry🎛️ Loss contours meeting the L1 diamond vs. L2 circle
  7. P3.A7Logistic regressionsoonSigmoid, probability output, decision boundary, BCE🎛️ 2D points with a boundary that trains live
  8. P3.A8Softmax regressionsoonMulti-class, logits, softmax🎛️ Logit sliders → probability bars
  9. P3.A9Evaluation metricssoonConfusion matrix, precision, recall, F1, ROC, AUC, PR curves🎛️ Threshold slider moving through the ROC curve
  10. P3.A10Calibration and class imbalancesoonReliability diagrams, resampling, class weights🎛️ Reliability diagram
  11. P3.A11Features, scaling and data leakagesoonNormalization, encoding categories, leakage traps🖼️ "Spot the leak" puzzles

3B. Classic Algorithms

  1. P3.B1k-Nearest NeighborssoonDistance-based prediction, curse of dimensionality🎛️ Click to add points; decision regions redraw for k
  2. P3.B2Naive BayessoonBayes for classification, spam filter💻 Build a spam filter
  3. P3.B3Decision treessoonSplits, Gini and entropy, depth🎞️ Plane getting cut into rectangles
  4. P3.B4Bagging and random forestssoonWisdom of crowds, variance reduction🎛️ Number-of-trees slider smoothing the boundary
  5. P3.B5BoostingsoonAdaBoost, gradient boosting, XGBoost/LightGBM🎞️ Each new tree fixing the previous residuals
  6. P3.B6Support Vector MachinessoonMargin, support vectors, hinge loss🎛️ Drag points; margin adjusts
  7. P3.B7The kernel tricksoonLifting data to higher dimensions🎞️ 2D rings lifted into 3D and split by a plane

3C. Unsupervised Learning

  1. P3.C1k-means clusteringsoonAssign–update loop, choosing k🎛️ Step-through centroid updates
  2. P3.C2Gaussian mixtures and EMsoonSoft clustering, expectation-maximization🎞️ Ellipses fitting clusters iteration by iteration
  3. P3.C3Principal Component AnalysissoonDirections of max variance, link to SVD/eigen🎛️ Rotate a projection line; variance meter
  4. P3.C4t-SNE and UMAPsoonNonlinear embeddings, how to misread them🎛️ Perplexity slider changing the picture
  5. P3.C5Anomaly detectionsoonDensity, isolation forests, autoencoder preview🎛️ Contamination slider
  6. P3.C6Hierarchical and density clusteringsoonDendrograms, DBSCAN🎞️ Dendrogram building up

4 Neural Network Foundations

  1. P4.1From neurons to the perceptronsoonBiological inspiration (and its limits), weighted sum + threshold🎞️ Neuron firing animation; 🎛️ perceptron weights → boundary
  2. P4.2The perceptron learning rule and the XOR problemsoonLinear separability, the first AI winter🎛️ Perceptron failing on XOR forever
  3. P4.3Multi-layer perceptronssoonHidden layers, how layers bend space🎛️ Playground: watch hidden layers warp the plane until data is separable
  4. P4.4Activation functionssoonStep, sigmoid, tanh, ReLU, Leaky ReLU, GELU, SiLU/Swish and their derivatives🎛️ Curve + derivative toggles; effect on a tiny net
  5. P4.5The forward pass in matrix formsoonLayers as matmuls, batch dimension, shape tracking🎞️ Batch of inputs flowing through layers with shapes labeled
  6. P4.6Loss functionssoonMSE, BCE, CE, Huber; connection to MLE🎛️ Loss vs. prediction plots
  7. P4.7Backpropagation: intuitionsoonCredit assignment, "blame" flowing backward🎥 Narrated video; 🎞️ glowing gradients flowing back
  8. P4.8Backpropagation: step by step with numbersLocal gradients, chain rule on a graph🎛️ Step-through tiny network with every number visible
  9. P4.9Build an autograd engine from scratchsoonA `Value` class, topological sort, backward()💻 ~100 lines of Python, run in browser
  10. P4.10Build an MLP from scratch (NumPy)soonTrain on MNIST digits without a framework💻 Colab; 🎛️ draw a digit, see the prediction
  11. P4.11Universal approximationsoonBuilding any function from ReLU bumps🎛️ Add neurons; approximation improves
  12. P4.12Weight initializationsoonSymmetry breaking, Xavier/Glorot, He/Kaiming, orthogonal initialization🎛️ Activation histograms per layer for each init
  13. P4.13OptimizerssoonSGD, momentum, Nesterov, AdaGrad, RMSProp, Adam, AdamW🎛️ Optimizer race on a loss surface
  14. P4.14Learning-rate schedulessoonStep decay, warmup, cosine, one-cycle, LR range test🎛️ Schedule designer + loss curve
  15. P4.15Batch size and training dynamicssoonNoise, generalization, gradient accumulation🎛️ Batch-size slider on loss curves
  16. P4.16Vanishing and exploding gradientssoonDeep chains of multiplications, gradient clipping🎞️ Gradient magnitude per layer fading or blowing up
  17. P4.17Regularization for neural netssoonWeight decay, dropout, early stopping, label smoothing🎞️ Dropout randomly switching neurons off
  18. P4.18Data augmentationsoonFlips, crops, color jitter, mixup🎛️ Augmentation preview on a sample image
  19. P4.19Normalization layerssoonBatchNorm, LayerNorm, GroupNorm, RMSNorm: which axes they normalize🎞️ Tensor cube with the normalized slice highlighted
  20. P4.20Residual connectionssoonSkip paths, gradient highways, enabling depth🎞️ Gradient flow with and without skips
  21. P4.21Embedding layerssoonLookup tables, learned representations🎛️ Embedding table row lookup
  22. P4.22The training recipe and debuggingsoonOverfit one batch, read loss curves, sanity checks🖼️ "Loss curve diagnosis" gallery: what each shape means
  23. P4.23Hyperparameter tuningsoonGrid, random, Bayesian search, what matters most🎞️ Grid vs. random search coverage
  24. P4.24Modern generalization puzzlessoonDouble descent, implicit regularization, grokking🎛️ Test-error curve vs. model size

5 Computer Vision and CNNs

  1. P5.1Images as tensorssoonPixels, channels, H×W×C, color spaces🎛️ Zoom into an image until numbers appear
  2. P5.2The convolution operationsoonSliding kernels, dot products, feature maps🎛️ Kernel sliding over an image; edit kernel values
  3. P5.3Kernels as feature detectorssoonEdges, blur, sharpen🎛️ Apply classic kernels to your own photo
  4. P5.4Padding, stride and dilationsoonOutput size formula🎛️ Output-size calculator with live diagram
  5. P5.5Multi-channel convolutions and 1×1 convssoonKernels across channels, channel mixing🎞️ 3D kernel block sweeping through a volume
  6. P5.6Pooling and receptive fieldssoonDownsampling, how far each neuron "sees"🎛️ Click a neuron, highlight its receptive field
  7. P5.7Build a CNNsoonTraining on CIFAR-10 in PyTorch💻 Colab
  8. P5.8What do CNNs learn?soonFilter visualization, feature maps, saliency, Grad-CAM🎛️ Layer-by-layer feature map explorer
  9. P5.9The CNN architecture toursoonLeNet → AlexNet → VGG → Inception → ResNet → DenseNet → MobileNet → EfficientNet → ConvNeXt🎞️ Architectures evolving; links to the Model Gallery
  10. P5.10Transfer learning and fine-tuningsoonFrozen backbones, feature extraction💻 Fine-tune on a small custom dataset
  11. P5.11Object detection basicssoonBounding boxes, IoU, anchors, NMS🎛️ IoU calculator; NMS step-through
  12. P5.12Detection architecturessoonR-CNN family, YOLO, SSD, DETR🖼️ Side-by-side pipeline diagrams
  13. P5.13Semantic and instance segmentationsoonFCN, U-Net, Mask R-CNN🎞️ U-Net encoder-decoder with skip connections
  14. P5.14Foundation models for visionsoonSegment Anything, open-vocabulary detection🎛️ Click-to-segment demo (in-browser where feasible)
  15. P5.15Vision TransformerssoonImages as patches, ViT, Swin (after Part 7)🎞️ Image chopped into a patch sequence
  16. P5.16Self-supervised visionsoonContrastive learning (SimCLR, MoCo), DINO, MAE🎞️ Augmented views pulled together in embedding space
  17. P5.17Adversarial examples and robustnesssoonFGSM, why nets are brittle🎛️ Epsilon slider flipping a prediction

6 Sequences and Language Foundations

  1. P6.1Text as datasoonCharacters, words, vocabularies, one-hot🎛️ Type a sentence, see one-hot vectors
  2. P6.2N-gram language modelssoonCounting, smoothing, perplexity🎛️ Generate text from a bigram model
  3. P6.3Word embeddings: word2vecsoonSkip-gram, CBOW, negative sampling🎞️ Words drifting into clusters during training
  4. P6.4Exploring embedding spacesoonAnalogies (king − man + woman), GloVe, bias in embeddings🎛️ 2D/3D embedding explorer
  5. P6.5Recurrent Neural NetworkssoonHidden state, unrolling through time🎞️ RNN cell unrolling across a sentence
  6. P6.6Backprop through timesoonVanishing gradients in sequences🎛️ Gradient strength vs. distance back in time
  7. P6.7LSTMsoonCell state, forget/input/output gates🎛️ Step through gates with live values
  8. P6.8GRUsoonSimplified gating, LSTM comparison🖼️ Side-by-side cell diagrams
  9. P6.9Bidirectional and stacked RNNssoonContext from both sides, depth🖼️ Diagram
  10. P6.10Character-level language modelsoonTrain an RNN to generate names💻 Colab; 🎛️ temperature slider on generated names
  11. P6.11Sequence-to-sequence modelssoonEncoder-decoder for translation, the bottleneck problem🎞️ Whole sentence squeezed into one vector
  12. P6.12Attention (Bahdanau and Luong)soonSoft alignment, attention weights🎛️ Translation alignment heatmap
  13. P6.13Temporal convolutions and time seriessoonWaveNet-style dilated convs, forecasting🎞️ Dilated convolution tree

7 Transformers

  1. P7.1Why transformers?soonRNN limits: sequential compute, long-range memory🎞️ RNN processing one word at a time vs. transformer all at once
  2. P7.2Self-attention intuitionsoonEach token looks at every other token🎛️ Click a word, see attention lines to others
  3. P7.3Queries, keys and values step by stepsoonProjections, scores, weights, weighted sum, with real numbers🎛️ Step-through with every matrix visible
  4. P7.4Scaled dot-product attentionsoonWhy divide by √d_k, softmax saturation🎛️ Toggle scaling, watch softmax become peaky
  5. P7.5Multi-head attentionsoonDifferent heads, different relations; concat + project🎛️ Head selector over a real sentence
  6. P7.6Positional encodingsoonOrder matters; sinusoidal and learned encodings🎛️ Sinusoidal encoding heatmap; dot-product similarity by distance
  7. P7.7The transformer blocksoonAttention + FFN + residual + LayerNorm; pre-LN vs. post-LN🎞️ Token vector flowing through one block
  8. P7.8MaskingsoonPadding masks, causal masks🎛️ Attention matrix with causal triangle toggle
  9. P7.9Encoder, decoder and cross-attentionsoon"Attention Is All You Need" full walkthrough🎥 Narrated walkthrough of the original architecture
  10. P7.10Three familiessoonEncoder-only (BERT), decoder-only (GPT), encoder-decoder (T5): objectives and uses🖼️ Comparison chart
  11. P7.11Build a GPT from scratchsoonCharacter-level then subword; ~300 lines of PyTorch💻 Colab; 🎥 code-along video
  12. P7.12The cost of attentionsoonO(n²) memory and compute🎛️ Sequence-length slider vs. memory
  13. P7.13Efficient attention variantssoonSparse, sliding window, linear attention🎞️ Different attention patterns as matrices
  14. P7.14Modern positional methods: RoPE and ALiBisoonRotations encode relative position🎛️ Vectors rotating by position; dot product depends only on offset
  15. P7.15Transformers beyond textsoonViT, audio (Whisper), time series, proteins🖼️ "Everything is tokens" diagram

8 Generative Models

  1. P8.1Generative vs. discriminative modelssoonModeling p(x) vs. p(y|x)🖼️ Diagram
  2. P8.2AutoencoderssoonBottleneck, reconstruction, latent space🎛️ MNIST latent space: hover to decode
  3. P8.3Variational AutoencoderssoonProbabilistic latent, ELBO, reparameterization trick🎛️ Latent interpolation between two digits
  4. P8.4GANssoonGenerator vs. discriminator game, training instability🎞️ 1D GAN: generated distribution chasing the real one
  5. P8.5GAN variantssoonDCGAN, WGAN, conditional GAN, CycleGAN, StyleGAN🖼️ Gallery + Model Gallery links
  6. P8.6Autoregressive image models and flowssoonPixelCNN, normalizing flows (brief)🎞️ Pixels generated one at a time
  7. P8.7Diffusion: intuitionsoonAdd noise gradually, learn to remove it🎛️ Slider from clean image to pure noise and back
  8. P8.8DDPM: the mathsoonForward process, noise prediction objective, sampling🎞️ 2D point cloud diffusing and being denoised
  9. P8.9Score-based view and faster samplingsoonScore functions, SDE view, DDIM🎛️ Vector field of scores over 2D data
  10. P8.10Conditioning and classifier-free guidancesoonText conditioning, guidance scale🎛️ Guidance-scale slider on pre-generated grids
  11. P8.11Latent diffusion (Stable Diffusion)soonVAE + U-Net + text encoder🎞️ Full pipeline animation
  12. P8.12Diffusion Transformers and flow matchingsoonDiT, rectified flow, straighter paths🎞️ Curved vs. straight sampling trajectories
  13. P8.13CLIP and contrastive image-text learningsoonShared embedding space, zero-shot classification🎛️ Similarity matrix of images × captions
  14. P8.14Video, audio and 3D generationsoonTemporal consistency, NeRF, Gaussian splatting (overview)🎥 Overview video
  15. P8.15Evaluating generative modelssoonFID, IS, CLIP score, human eval🖼️ Metric explainer
  16. P8.16Ethics of generative mediasoonDeepfakes, watermarking, consent, copyright🖼️ Discussion lesson

9 Reinforcement Learning Essentials

  1. P9.1The RL setupsoonAgent, environment, state, action, reward, MDP🎛️ Gridworld you can play yourself
  2. P9.2Exploration vs. exploitationsoonMulti-armed bandits, ε-greedy, UCB🎛️ Slot-machine bandit game
  3. P9.3Value functions and the Bellman equationsoonReturns, discounting, V and Q🎞️ Values propagating across the grid
  4. P9.4Q-learningsoonTemporal difference learning🎛️ Watch the agent learn in gridworld, live
  5. P9.5Deep Q-NetworkssoonReplay buffer, target networks🎥 Agent playing a simple game over training
  6. P9.6Policy gradientssoonREINFORCE, baselines🎞️ Policy probability bars shifting toward rewarded actions
  7. P9.7Actor-critic and PPOsoonAdvantage, clipped objective🎛️ PPO clipping region plot
  8. P9.8Model-based RL and planningsoonMCTS, AlphaGo/AlphaZero/MuZero🎞️ Search tree expanding
  9. P9.9RL for language models (bridge)soonText generation as an MDP, reward models🖼️ Bridge diagram to Part 10D

10 Large Language Models

10A. Building Blocks

  1. P10.A1What is a Large Language Model?soonNext-token prediction at scale, base vs. chat models🎛️ Token probability viewer (small model in browser)
  2. P10.A2Tokenization deep divesoonBPE merges, WordPiece, Unigram/SentencePiece, byte-level🎛️ BPE merge animation on your own text
  3. P10.A3Tokenization quirkssoonNumbers, spaces, multilingual cost, why LLMs struggle to spell🎛️ Tokenizer comparison across languages
  4. P10.A4The residual stream viewsoonEmbeddings in, layers read and write, unembedding out🎞️ Residual stream as a highway with layers as on-ramps
  5. P10.A5Decoding strategiessoonGreedy, beam, temperature, top-k, top-p, min-p, repetition penalty🎛️ Live sliders reshaping the probability bar chart

10B. Pretraining

  1. P10.B1Pretraining datasoonWeb crawls, filtering, deduplication, mixtures, licensing🎞️ Funnel from raw crawl to clean tokens
  2. P10.B2The pretraining objective and loss curvessoonCausal LM loss, what the curve tells you🎛️ Annotated real loss curves
  3. P10.B3Scaling lawssoonKaplan, Chinchilla compute-optimal training, data constraints🎛️ Compute-budget calculator → optimal params/tokens
  4. P10.B4Counting compute and memorysoonFLOPs ≈ 6ND, memory for weights, gradients, optimizer, activations🎛️ "Will it fit on my GPU?" calculator
  5. P10.B5Mixed-precision trainingsoonfp16/bf16/fp8, loss scaling, master weights🎞️ Values falling outside fp16 range
  6. P10.B6Distributed trainingsoonData, tensor, pipeline, sequence parallelism; FSDP/ZeRO🎞️ Animated GPU grid with shards moving
  7. P10.B7Training stabilitysoonLoss spikes, warmup, z-loss, QK-norm, gradient clipping🖼️ Spike gallery and fixes
  8. P10.B8Hardware for deep learningsoonGPUs, TPUs, memory bandwidth, the roofline model🎛️ Roofline plot

10C. Modern Architecture

  1. P10.C1Anatomy of a modern decodersoonLlama-style block: RMSNorm, SwiGLU, RoPE, no biases🎞️ Diff animation: 2017 transformer → modern block
  2. P10.C2The KV cachesoonAvoiding recomputation during generation, memory cost🎞️ Cache growing token by token
  3. P10.C3MQA, GQA and MLAsoonSharing or compressing keys and values🎛️ Heads-sharing diagram with memory meter
  4. P10.C4FlashAttentionsoonMemory hierarchy, tiling, IO-awareness🎞️ Tiles moving between HBM and SRAM
  5. P10.C5Mixture of ExpertssoonRouter, top-k experts, load balancing, sparse compute🎛️ Tokens routed to experts, live load bars
  6. P10.C6Long contextsoonRoPE scaling, sliding windows, ring attention, "lost in the middle"🎛️ Needle-in-a-haystack visual
  7. P10.C7State space models and alternativessoonS4, Mamba, RWKV, hybrids🎞️ Recurrent scan vs. attention
  8. P10.C8Architecture reading labsoonRead a real config file and model code, line by line💻 Annotated walkthrough of an open-weight model's code

10D. Post-training and Alignment

  1. P10.D1From base model to assistantsoonSupervised fine-tuning, instruction data, chat templates🎛️ Same prompt to base vs. instruction-tuned model
  2. P10.D2Reward models and RLHFsoonPreference data, Bradley-Terry, PPO with KL penalty🎞️ Full RLHF pipeline animation
  3. P10.D3Direct Preference Optimization and friendssoonDPO, IPO, KTO, ORPO: RLHF without a separate RL loop🖼️ Derivation with progressive disclosure
  4. P10.D4AI feedback and constitutional methodssoonRLAIF, rule-guided self-critique🖼️ Pipeline diagram
  5. P10.D5Reasoning modelssoonChain of thought, RL with verifiable rewards, GRPO, test-time compute🎛️ Accuracy vs. "thinking budget" plot
  6. P10.D6Reward hacking and alignment challengessoonGoodhart's law, sycophancy, specification gaming🎞️ Classic specification-gaming examples

10E. Adapting and Using LLMs

  1. P10.E1Prompting techniquessoonZero-/few-shot, chain of thought, self-consistency, structured output🎛️ Prompt playground (pre-computed outputs, no API cost)
  2. P10.E2In-context learningsoonWhy it works, induction heads (link to 10G)🎞️ Pattern-copying animation
  3. P10.E3Parameter-efficient fine-tuningsoonLoRA, QLoRA, adapters, prefix/prompt tuning🎛️ Big frozen W + small trainable B×A, rank slider with param count
  4. P10.E4Embedding models and semantic searchsoonContrastive training, cosine search🎛️ Search a small corpus in browser
  5. P10.E5Retrieval-Augmented GenerationsoonChunking, vector databases, HNSW, reranking, evaluation🎞️ Query → retrieve → augment → generate pipeline
  6. P10.E6Tool use and agentssoonFunction calling, ReAct loop, planning, failure modes🎞️ Agent loop with tool calls appearing
  7. P10.E7Multimodal LLMssoonVision encoder + projector + LLM, audio and video inputs🎞️ Image patches becoming "tokens" in the prompt

10F. Efficiency and Deployment

  1. P10.F1QuantizationsoonINT8/INT4, GPTQ, AWQ, GGUF, quality trade-offs🎛️ Bit-width slider on a weight histogram
  2. P10.F2Distillation and small modelssoonTeacher-student, synthetic data🖼️ Diagram
  3. P10.F3Inference servingsoonContinuous batching, PagedAttention, speculative decoding🎞️ Draft model proposing, big model verifying
  4. P10.F4Running LLMs locallysoonHardware sizing, local runtimes💻 Guided setup

10G. Evaluation, Safety and Interpretability

  1. P10.G1Evaluating LLMssoonBenchmarks, contamination, LLM-as-judge, human preference arenas🖼️ Benchmark anatomy
  2. P10.G2Hallucination and factualitysoonWhy models confabulate, mitigation🖼️ Case studies
  3. P10.G3Safety, bias and misusesoonRed-teaming, jailbreaks (defensive view), bias measurement🖼️ Discussion lesson
  4. P10.G4Mechanistic interpretability IsoonAttention patterns, induction heads, circuits🎛️ Attention-head explorer on a small model
  5. P10.G5Mechanistic interpretability IIsoonSuperposition, sparse autoencoders, features, probing🎛️ Superposition toy model
  6. P10.G6LLMs and societysoonLabor, copyright, environmental cost, open vs. closed🖼️ Discussion lesson

11 Electives and Advanced Topics

  1. P11.1Graph Neural NetworkssoonMessage passing, GCN, GAT🎞️ Messages flowing between nodes
  2. P11.2Speech and audiosoonSpectrograms, wav2vec, Whisper🎛️ Live microphone spectrogram
  3. P11.3Recommender systemssoonCollaborative filtering, two-tower models🎛️ Movie embedding explorer
  4. P11.4Deep learning for time seriessoonForecasting, transformers for series💻 Colab
  5. P11.5Self-supervised learning theorysoonPretext tasks, collapse, JEPA🖼️ Diagram
  6. P11.6Meta-learning and few-shot learningsoonMAML, prototypical networks🎞️ Prototypes in embedding space
  7. P11.7Privacy and federated learningsoonDifferential privacy, federated averaging🎞️ Phones training locally, sharing updates
  8. P11.8Pruning and model compressionsoonMagnitude pruning, lottery ticket hypothesis🎛️ Prune-percentage slider vs. accuracy
  9. P11.9Neural ODEs and continuous modelssoonDepth as time🎞️ Continuous flow of data
  10. P11.10AI for sciencesoonAlphaFold, weather models, materials🎥 Overview video
  11. P11.11World models and embodied AIsoonRobotics, simulation, video world models🎥 Overview video

12 Practical ML Engineering

  1. P12.1The ML project lifecyclesoonProblem framing → data → model → deploy → monitor🖼️ Lifecycle loop
  2. P12.2Data collection and labelingsoonLabel quality, annotation guidelines, active learning🖼️ Diagram
  3. P12.3Experiment tracking and reproducibilitysoonConfigs, logging, seeds, versioning💻 Demo
  4. P12.4Deploying modelssoonAPIs, ONNX, mobile/edge, serverless🖼️ Deployment options map
  5. P12.5Monitoring and driftsoonData drift, concept drift, alerts🎛️ Drifting distribution animation
  6. P12.6ExplainabilitysoonSHAP, LIME, feature importance🎛️ SHAP waterfall
  7. P12.7FairnesssoonFairness metrics, their trade-offs🎛️ Threshold sliders per group
  8. P12.8How to read a research papersoonThree-pass method, reading figures and equations🖼️ Annotated paper
  9. P12.9Building a portfoliosoonProjects, write-ups, open source🖼️ Guide