Curriculum
255 lessons in 13 parts, from basic math to how modern LLMs work. 55 are ready now; the rest are on the way. You've completed .
🎛️ interactive · 🎞️ animation · 🎥 video · 🖼️ diagram · 💻 runnable code
0 Start Here
- P0.1What are AI, ML and Deep Learning?✓ doneNested definitions, rules vs. learning from data, a short history🎞️ Animated timeline 1950→today; Venn diagram that zooms in
- P0.2How a machine "learns"✓ doneData → model → prediction → loss → update loop🎛️ A line fitting itself to points, one loop step per click
- P0.3Kinds of learning✓ doneSupervised, unsupervised, self-supervised, reinforcement🖼️ Four-panel illustrated comparison
- P0.4Your toolkit✓ donePython, Jupyter, Google Colab, running code in this site💻 First in-browser cell: `print` and a NumPy array
- P0.5How to use this site✓ doneIntuition / Math / Code tabs, quizzes, progress tracking, paths🖼️ Annotated screenshot tour
1 Math Foundations
1A. Pre-calculus Refresher
- P1.A1Functions and graphs✓ doneInput→output, domain, composition, common shapes (linear, quadratic, exponential)🎛️ Function plotter with sliders for coefficients
- P1.A2Exponents and logarithms✓ doneGrowth, log as inverse, log rules, why ML loves logs (products→sums)🎛️ Linear vs. log-scale axis toggle
- P1.A3Summation, products and indices✓ doneΣ and Π notation, nested sums, index juggling🎞️ Σ unrolling into a row of additions
- P1.A4Sets, notation and reading math✓ doneℝⁿ, ∈, ∀, argmax, the math "dialect" of papers🖼️ Printable notation cheat sheet
- P1.A5The sigmoid, tanh and other squashing functions✓ doneSaturation, ranges, first look at the S-curve🎛️ Overlaid curves with draggable input
1B. Linear Algebra
- P1.B1Scalars, vectors and spaces✓ doneVectors as arrows, as lists, as points; dimension🎛️ Drag a 2D/3D arrow and watch its coordinates update
- P1.B2Vector operations✓ doneAddition, scaling, linear combinations🎛️ Tip-to-tail addition, scaled with sliders
- P1.B3Dot product and cosine similarity✓ doneProjection, angle, similarity🎛️ Two arrows, live dot product and angle, projection shadow
- P1.B4Norms and distances✓ doneL1, L2, L∞, unit balls, Euclidean vs. Manhattan, triangle inequality🎞️ Unit "circles" morphing from L1 to L∞
- P1.B5Matrices as data and as transformations✓ doneRows as samples, matrices as functions that warp space🎛️ 2D grid that warps as you edit the 4 matrix entries
- P1.B6Matrix multiplication✓ doneRow×column, composition of transformations, shapes `(m×n)(n×p)`🎞️ Row sliding across column; 🎛️ shape checker
- P1.B7Span, independence, basis and rank✓ doneRedundant directions, dimension of the output; the formal vector-space definition and subspaces🎛️ Two vectors whose span collapses to a line when they align
- P1.B8The determinant✓ doneArea/volume scaling, sign = orientation flip, det = 0 means squashing🎛️ Unit square's area changing as the grid warps
- P1.B9Inverse and linear systems✓ doneUndoing a transformation, solving Ax = b, when no inverse exists🎞️ Transform then inverse-transform the grid
- P1.B10Transpose, symmetric and orthogonal matrices✓ doneRotations and reflections preserve length🎛️ Rotation matrix with angle slider
- P1.B11Projections and least squares✓ doneProjecting onto a subspace; foundation of linear regression🎞️ Point dropping a perpendicular onto a plane
- P1.B12Eigenvalues and eigenvectors✓ doneDirections that only stretch🎛️ Grid warp with eigen-directions highlighted in color
- P1.B13Singular Value Decomposition✓ doneRotate–stretch–rotate, low-rank approximation, the pseudo-inverse🎛️ Image compression with a "rank k" slider (→ LoRA preview)
- P1.B14Tensors, shapes and broadcasting✓ doneN-D arrays, axes, reshape, broadcasting rules🎞️ Broadcasting "stretching" a smaller array; 💻 shape puzzles
- P1.B15Linear algebra in neural nets: a map✓ doneWx + b everywhere, embeddings as rows, attention as matmuls🖼️ Concept map linking forward to later lessons
1C. Calculus
- P1.C1Rates of change and the derivative✓ doneSlope of secant → tangent, limit idea🎛️ Zoom into a curve until it looks straight
- P1.C2Derivative rules✓ donePower, sum, product, quotient, exp, log🖼️ Rule cards; 💻 check with finite differences
- P1.C3The chain rule✓ doneNested functions, rates multiply🎞️ Gears of different sizes turning together
- P1.C4Partial derivatives✓ doneChange one input at a time🎛️ 3D surface sliced along x or y
- P1.C5The gradient✓ doneVector of partials, direction of steepest ascent🎛️ Contour map with gradient arrow following the cursor
- P1.C6Directional derivatives✓ doneSlope in any direction, why gradient is steepest🎛️ Rotating direction arrow with live slope readout
- P1.C7Vector functions and the Jacobian✓ doneMatrix of partials, local linear approximation🎞️ Tiny square warped into a parallelogram
- P1.C8The Hessian, curvature and Taylor approximation✓ doneSecond derivatives, bowls vs. saddles🎛️ Taylor polynomial terms added one at a time
- P1.C9Integrals as accumulation✓ doneArea under curve, Riemann sums, needed for probability🎛️ Rectangles getting thinner
- P1.C10Computational graphs and automatic differentiation✓ doneForward mode vs. reverse mode, why reverse wins for ML🎛️ Step-through graph with values going forward and gradients flowing back
- P1.C11Matrix calculus for ML✓ doneGradients of Wx, xᵀAx, ‖x‖², softmax; shape rules🖼️ Cheat sheet; 💻 verify with autograd
1D. Probability and Statistics
- P1.D1Probability basics✓ doneSample space, events, axioms, counting🎛️ Dice/coin simulator with running frequencies
- P1.D2Random variables✓ doneDiscrete vs. continuous, PMF, PDF, CDF🎛️ PDF and CDF linked: drag a point on one, see the other
- P1.D3Common distributions✓ doneBernoulli, binomial, categorical, uniform, Gaussian, Poisson🎛️ Distribution gallery with parameter sliders
- P1.D4Expectation and variance✓ doneMean as balance point, spread, linearity of expectation🎞️ Histogram balancing on a fulcrum
- P1.D5Joint, marginal and conditional probability✓ doneTables, slicing, independence🎛️ 2D heatmap with marginals on the edges; click to condition
- P1.D6Bayes' theorem✓ donePrior, likelihood, posterior, base-rate fallacy🎛️ Medical test "1000 people" frequency grid
- P1.D7Covariance and the multivariate Gaussian✓ doneCorrelation, covariance matrix as an ellipse🎛️ Drag ellipse; covariance matrix updates
- P1.D8Law of large numbers and the Central Limit Theorem✓ doneAverages converge, sums become Gaussian🎞️ Galton board; 🎛️ sample-mean histogram
- P1.D9Sampling and Monte Carlo✓ doneEstimating with random samples, estimating π🎛️ Darts thrown at a square
- P1.D10Maximum Likelihood Estimation✓ doneFit parameters to data; MLE → MSE and cross-entropy🎛️ Slide a Gaussian over data, watch likelihood peak
- P1.D11MAP estimation and priors✓ donePriors as regularization🎞️ Prior × likelihood → posterior animation
- P1.D12Descriptive statistics and visualization✓ doneMean/median/mode, percentiles, box plots, outliers🎛️ Add outliers and watch mean vs. median
- P1.D13Statistical thinking for ML✓ doneConfidence intervals, significance, correlation ≠ causation, comparing models fairly🎛️ Run "experiments" and see how often you're fooled
1E. Information Theory
- P1.E1Information and surprise✓ done−log p, bits🎛️ Probability slider vs. surprise curve
- P1.E2Entropy✓ doneAverage surprise, uncertainty, coding intuition🎛️ Bar chart distribution you can reshape; entropy meter
- P1.E3Cross-entropy✓ doneWhy it's *the* classification loss🎛️ True vs. predicted distribution, loss updating live
- P1.E4KL divergencesoon✓ doneDistance-like, asymmetric, forward vs. reverse KL🎞️ Fitting one Gaussian to a bimodal one both ways
- P1.E5Mutual information and perplexitysoon✓ doneShared information, perplexity = "effective choices" (→ LLM eval)🖼️ Venn of entropies; 🎛️ perplexity of a die
1F. Optimization
- P1.F1What is optimization?✓ doneObjective, parameters, minima, loss landscapes🎛️ 3D landscape you can rotate
- P1.F2Convex vs. non-convexsoon✓ doneLocal vs. global minima, saddle points🎞️ Ball rolling into different valleys from different starts
- P1.F3Gradient descent✓ doneUpdate rule, learning rate too small / right / too big🎛️ Ball on surface with learning-rate slider (diverges when too big)
- P1.F4Stochastic and mini-batch gradient descentsoon✓ doneNoisy gradients, batch size trade-offs🎛️ Full-batch vs. SGD paths side by side
- P1.F5Momentum and adaptive steps (preview)soon✓ doneHeavy ball, per-parameter step sizes🎞️ Ravine: plain GD zig-zags, momentum glides
- P1.F6Second-order methodssoon✓ doneNewton's method, why it's rarely used at scale🎛️ Newton vs. GD on a 1D function
- P1.F7Constrained optimization and Lagrange multiplierssoon✓ doneOptimizing on a constraint (→ SVMs)🎞️ Contours touching a constraint curve
1G. Numerical Computing
- P1.G1How computers store numberssoon✓ donefp32, fp16, bf16, int8, fp8 bit layouts, precision vs. range🎛️ Bit-flipper showing the value each bit pattern encodes
- P1.G2Numerical stabilitysoon✓ doneOverflow, underflow, log-sum-exp, stable softmax💻 Naive softmax breaks, stable one doesn't
- P1.G3Randomness, seeds and reproducibilitysoon✓ donePRNGs, seeding, nondeterminism on GPUs💻 Same seed, same result
- P1.G4Big-O and compute costsoon✓ doneTime and memory complexity, FLOPs🎛️ Growth curves n, n log n, n² (→ attention cost)
2 Programming Toolkit
- P2.1Python essentials for MLsoon✓ doneLists, dicts, functions, classes, comprehensions💻 In-browser exercises
- P2.2NumPy: arrays and vectorizationsoon✓ doneWhy loops are slow, slicing, axis operations💻 Timer: loop vs. vectorized
- P2.3NumPy broadcasting and einsumsoon✓ doneShape rules in practice, einsum notation🎛️ Einsum visualizer
- P2.4Plotting with Matplotlibsoon✓ doneLine, scatter, histogram, image plots💻 Live plots
- P2.5Data wrangling with Pandassoon✓ doneDataFrames, filtering, grouping, cleaning💻 Titanic dataset walk-through
- P2.6PyTorch tensors and autogradsoon✓ doneTensors, devices, `requires_grad`, `.backward()`💻 Colab
- P2.7The PyTorch training loopsoon✓ done`nn.Module`, `Dataset`, `DataLoader`, optimizer, GPU🖼️ Annotated loop diagram; 💻 Colab
- P2.8Tooling: Git, environments, Hugging Face Hubsoon✓ donevenv/conda/uv, using pretrained models💻 Load a model in 5 lines
3 Classical Machine Learning
3A. Core Concepts
- P3.A1The supervised learning setupsoon✓ doneFeatures, labels, hypothesis, loss, generalization🖼️ Pipeline diagram
- P3.A2Linear regressionsoon✓ doneLine fitting, MSE, closed-form vs. gradient descent🎛️ Drag points; line and residuals update
- P3.A3Polynomial regression, underfitting and overfittingsoon✓ doneModel capacity🎛️ Degree slider: wiggly curve through noise
- P3.A4Train, validation and test setssoon✓ doneWhy we hold out data, cross-validation🎞️ K-fold rotation animation
- P3.A5The bias–variance trade-offsoon✓ doneDecomposition, U-shaped test error🎛️ Many fits from resampled data overlaid
- P3.A6Regularization: L1 and L2soon✓ donePenalizing weights, sparsity, geometry🎛️ Loss contours meeting the L1 diamond vs. L2 circle
- P3.A7Logistic regressionsoon✓ doneSigmoid, probability output, decision boundary, BCE🎛️ 2D points with a boundary that trains live
- P3.A8Softmax regressionsoon✓ doneMulti-class, logits, softmax🎛️ Logit sliders → probability bars
- P3.A9Evaluation metricssoon✓ doneConfusion matrix, precision, recall, F1, ROC, AUC, PR curves🎛️ Threshold slider moving through the ROC curve
- P3.A10Calibration and class imbalancesoon✓ doneReliability diagrams, resampling, class weights🎛️ Reliability diagram
- P3.A11Features, scaling and data leakagesoon✓ doneNormalization, encoding categories, leakage traps🖼️ "Spot the leak" puzzles
3B. Classic Algorithms
- P3.B1k-Nearest Neighborssoon✓ doneDistance-based prediction, curse of dimensionality🎛️ Click to add points; decision regions redraw for k
- P3.B2Naive Bayessoon✓ doneBayes for classification, spam filter💻 Build a spam filter
- P3.B3Decision treessoon✓ doneSplits, Gini and entropy, depth🎞️ Plane getting cut into rectangles
- P3.B4Bagging and random forestssoon✓ doneWisdom of crowds, variance reduction🎛️ Number-of-trees slider smoothing the boundary
- P3.B5Boostingsoon✓ doneAdaBoost, gradient boosting, XGBoost/LightGBM🎞️ Each new tree fixing the previous residuals
- P3.B6Support Vector Machinessoon✓ doneMargin, support vectors, hinge loss🎛️ Drag points; margin adjusts
- P3.B7The kernel tricksoon✓ doneLifting data to higher dimensions🎞️ 2D rings lifted into 3D and split by a plane
3C. Unsupervised Learning
- P3.C1k-means clusteringsoon✓ doneAssign–update loop, choosing k🎛️ Step-through centroid updates
- P3.C2Gaussian mixtures and EMsoon✓ doneSoft clustering, expectation-maximization🎞️ Ellipses fitting clusters iteration by iteration
- P3.C3Principal Component Analysissoon✓ doneDirections of max variance, link to SVD/eigen🎛️ Rotate a projection line; variance meter
- P3.C4t-SNE and UMAPsoon✓ doneNonlinear embeddings, how to misread them🎛️ Perplexity slider changing the picture
- P3.C5Anomaly detectionsoon✓ doneDensity, isolation forests, autoencoder preview🎛️ Contamination slider
- P3.C6Hierarchical and density clusteringsoon✓ doneDendrograms, DBSCAN🎞️ Dendrogram building up
4 Neural Network Foundations
- P4.1From neurons to the perceptronsoon✓ doneBiological inspiration (and its limits), weighted sum + threshold🎞️ Neuron firing animation; 🎛️ perceptron weights → boundary
- P4.2The perceptron learning rule and the XOR problemsoon✓ doneLinear separability, the first AI winter🎛️ Perceptron failing on XOR forever
- P4.3Multi-layer perceptronssoon✓ doneHidden layers, how layers bend space🎛️ Playground: watch hidden layers warp the plane until data is separable
- P4.4Activation functionssoon✓ doneStep, sigmoid, tanh, ReLU, Leaky ReLU, GELU, SiLU/Swish and their derivatives🎛️ Curve + derivative toggles; effect on a tiny net
- P4.5The forward pass in matrix formsoon✓ doneLayers as matmuls, batch dimension, shape tracking🎞️ Batch of inputs flowing through layers with shapes labeled
- P4.6Loss functionssoon✓ doneMSE, BCE, CE, Huber; connection to MLE🎛️ Loss vs. prediction plots
- P4.7Backpropagation: intuitionsoon✓ doneCredit assignment, "blame" flowing backward🎥 Narrated video; 🎞️ glowing gradients flowing back
- P4.8Backpropagation: step by step with numbers✓ doneLocal gradients, chain rule on a graph🎛️ Step-through tiny network with every number visible
- P4.9Build an autograd engine from scratchsoon✓ doneA `Value` class, topological sort, backward()💻 ~100 lines of Python, run in browser
- P4.10Build an MLP from scratch (NumPy)soon✓ doneTrain on MNIST digits without a framework💻 Colab; 🎛️ draw a digit, see the prediction
- P4.11Universal approximationsoon✓ doneBuilding any function from ReLU bumps🎛️ Add neurons; approximation improves
- P4.12Weight initializationsoon✓ doneSymmetry breaking, Xavier/Glorot, He/Kaiming, orthogonal initialization🎛️ Activation histograms per layer for each init
- P4.13Optimizerssoon✓ doneSGD, momentum, Nesterov, AdaGrad, RMSProp, Adam, AdamW🎛️ Optimizer race on a loss surface
- P4.14Learning-rate schedulessoon✓ doneStep decay, warmup, cosine, one-cycle, LR range test🎛️ Schedule designer + loss curve
- P4.15Batch size and training dynamicssoon✓ doneNoise, generalization, gradient accumulation🎛️ Batch-size slider on loss curves
- P4.16Vanishing and exploding gradientssoon✓ doneDeep chains of multiplications, gradient clipping🎞️ Gradient magnitude per layer fading or blowing up
- P4.17Regularization for neural netssoon✓ doneWeight decay, dropout, early stopping, label smoothing🎞️ Dropout randomly switching neurons off
- P4.18Data augmentationsoon✓ doneFlips, crops, color jitter, mixup🎛️ Augmentation preview on a sample image
- P4.19Normalization layerssoon✓ doneBatchNorm, LayerNorm, GroupNorm, RMSNorm: which axes they normalize🎞️ Tensor cube with the normalized slice highlighted
- P4.20Residual connectionssoon✓ doneSkip paths, gradient highways, enabling depth🎞️ Gradient flow with and without skips
- P4.21Embedding layerssoon✓ doneLookup tables, learned representations🎛️ Embedding table row lookup
- P4.22The training recipe and debuggingsoon✓ doneOverfit one batch, read loss curves, sanity checks🖼️ "Loss curve diagnosis" gallery: what each shape means
- P4.23Hyperparameter tuningsoon✓ doneGrid, random, Bayesian search, what matters most🎞️ Grid vs. random search coverage
- P4.24Modern generalization puzzlessoon✓ doneDouble descent, implicit regularization, grokking🎛️ Test-error curve vs. model size
5 Computer Vision and CNNs
- P5.1Images as tensorssoon✓ donePixels, channels, H×W×C, color spaces🎛️ Zoom into an image until numbers appear
- P5.2The convolution operationsoon✓ doneSliding kernels, dot products, feature maps🎛️ Kernel sliding over an image; edit kernel values
- P5.3Kernels as feature detectorssoon✓ doneEdges, blur, sharpen🎛️ Apply classic kernels to your own photo
- P5.4Padding, stride and dilationsoon✓ doneOutput size formula🎛️ Output-size calculator with live diagram
- P5.5Multi-channel convolutions and 1×1 convssoon✓ doneKernels across channels, channel mixing🎞️ 3D kernel block sweeping through a volume
- P5.6Pooling and receptive fieldssoon✓ doneDownsampling, how far each neuron "sees"🎛️ Click a neuron, highlight its receptive field
- P5.7Build a CNNsoon✓ doneTraining on CIFAR-10 in PyTorch💻 Colab
- P5.8What do CNNs learn?soon✓ doneFilter visualization, feature maps, saliency, Grad-CAM🎛️ Layer-by-layer feature map explorer
- P5.9The CNN architecture toursoon✓ doneLeNet → AlexNet → VGG → Inception → ResNet → DenseNet → MobileNet → EfficientNet → ConvNeXt🎞️ Architectures evolving; links to the Model Gallery
- P5.10Transfer learning and fine-tuningsoon✓ doneFrozen backbones, feature extraction💻 Fine-tune on a small custom dataset
- P5.11Object detection basicssoon✓ doneBounding boxes, IoU, anchors, NMS🎛️ IoU calculator; NMS step-through
- P5.12Detection architecturessoon✓ doneR-CNN family, YOLO, SSD, DETR🖼️ Side-by-side pipeline diagrams
- P5.13Semantic and instance segmentationsoon✓ doneFCN, U-Net, Mask R-CNN🎞️ U-Net encoder-decoder with skip connections
- P5.14Foundation models for visionsoon✓ doneSegment Anything, open-vocabulary detection🎛️ Click-to-segment demo (in-browser where feasible)
- P5.15Vision Transformerssoon✓ doneImages as patches, ViT, Swin (after Part 7)🎞️ Image chopped into a patch sequence
- P5.16Self-supervised visionsoon✓ doneContrastive learning (SimCLR, MoCo), DINO, MAE🎞️ Augmented views pulled together in embedding space
- P5.17Adversarial examples and robustnesssoon✓ doneFGSM, why nets are brittle🎛️ Epsilon slider flipping a prediction
6 Sequences and Language Foundations
- P6.1Text as datasoon✓ doneCharacters, words, vocabularies, one-hot🎛️ Type a sentence, see one-hot vectors
- P6.2N-gram language modelssoon✓ doneCounting, smoothing, perplexity🎛️ Generate text from a bigram model
- P6.3Word embeddings: word2vecsoon✓ doneSkip-gram, CBOW, negative sampling🎞️ Words drifting into clusters during training
- P6.4Exploring embedding spacesoon✓ doneAnalogies (king − man + woman), GloVe, bias in embeddings🎛️ 2D/3D embedding explorer
- P6.5Recurrent Neural Networkssoon✓ doneHidden state, unrolling through time🎞️ RNN cell unrolling across a sentence
- P6.6Backprop through timesoon✓ doneVanishing gradients in sequences🎛️ Gradient strength vs. distance back in time
- P6.7LSTMsoon✓ doneCell state, forget/input/output gates🎛️ Step through gates with live values
- P6.8GRUsoon✓ doneSimplified gating, LSTM comparison🖼️ Side-by-side cell diagrams
- P6.9Bidirectional and stacked RNNssoon✓ doneContext from both sides, depth🖼️ Diagram
- P6.10Character-level language modelsoon✓ doneTrain an RNN to generate names💻 Colab; 🎛️ temperature slider on generated names
- P6.11Sequence-to-sequence modelssoon✓ doneEncoder-decoder for translation, the bottleneck problem🎞️ Whole sentence squeezed into one vector
- P6.12Attention (Bahdanau and Luong)soon✓ doneSoft alignment, attention weights🎛️ Translation alignment heatmap
- P6.13Temporal convolutions and time seriessoon✓ doneWaveNet-style dilated convs, forecasting🎞️ Dilated convolution tree
7 Transformers
- P7.1Why transformers?soon✓ doneRNN limits: sequential compute, long-range memory🎞️ RNN processing one word at a time vs. transformer all at once
- P7.2Self-attention intuitionsoon✓ doneEach token looks at every other token🎛️ Click a word, see attention lines to others
- P7.3Queries, keys and values step by stepsoon✓ doneProjections, scores, weights, weighted sum, with real numbers🎛️ Step-through with every matrix visible
- P7.4Scaled dot-product attentionsoon✓ doneWhy divide by √d_k, softmax saturation🎛️ Toggle scaling, watch softmax become peaky
- P7.5Multi-head attentionsoon✓ doneDifferent heads, different relations; concat + project🎛️ Head selector over a real sentence
- P7.6Positional encodingsoon✓ doneOrder matters; sinusoidal and learned encodings🎛️ Sinusoidal encoding heatmap; dot-product similarity by distance
- P7.7The transformer blocksoon✓ doneAttention + FFN + residual + LayerNorm; pre-LN vs. post-LN🎞️ Token vector flowing through one block
- P7.8Maskingsoon✓ donePadding masks, causal masks🎛️ Attention matrix with causal triangle toggle
- P7.9Encoder, decoder and cross-attentionsoon✓ done"Attention Is All You Need" full walkthrough🎥 Narrated walkthrough of the original architecture
- P7.10Three familiessoon✓ doneEncoder-only (BERT), decoder-only (GPT), encoder-decoder (T5): objectives and uses🖼️ Comparison chart
- P7.11Build a GPT from scratchsoon✓ doneCharacter-level then subword; ~300 lines of PyTorch💻 Colab; 🎥 code-along video
- P7.12The cost of attentionsoon✓ doneO(n²) memory and compute🎛️ Sequence-length slider vs. memory
- P7.13Efficient attention variantssoon✓ doneSparse, sliding window, linear attention🎞️ Different attention patterns as matrices
- P7.14Modern positional methods: RoPE and ALiBisoon✓ doneRotations encode relative position🎛️ Vectors rotating by position; dot product depends only on offset
- P7.15Transformers beyond textsoon✓ doneViT, audio (Whisper), time series, proteins🖼️ "Everything is tokens" diagram
8 Generative Models
- P8.1Generative vs. discriminative modelssoon✓ doneModeling p(x) vs. p(y|x)🖼️ Diagram
- P8.2Autoencoderssoon✓ doneBottleneck, reconstruction, latent space🎛️ MNIST latent space: hover to decode
- P8.3Variational Autoencoderssoon✓ doneProbabilistic latent, ELBO, reparameterization trick🎛️ Latent interpolation between two digits
- P8.4GANssoon✓ doneGenerator vs. discriminator game, training instability🎞️ 1D GAN: generated distribution chasing the real one
- P8.5GAN variantssoon✓ doneDCGAN, WGAN, conditional GAN, CycleGAN, StyleGAN🖼️ Gallery + Model Gallery links
- P8.6Autoregressive image models and flowssoon✓ donePixelCNN, normalizing flows (brief)🎞️ Pixels generated one at a time
- P8.7Diffusion: intuitionsoon✓ doneAdd noise gradually, learn to remove it🎛️ Slider from clean image to pure noise and back
- P8.8DDPM: the mathsoon✓ doneForward process, noise prediction objective, sampling🎞️ 2D point cloud diffusing and being denoised
- P8.9Score-based view and faster samplingsoon✓ doneScore functions, SDE view, DDIM🎛️ Vector field of scores over 2D data
- P8.10Conditioning and classifier-free guidancesoon✓ doneText conditioning, guidance scale🎛️ Guidance-scale slider on pre-generated grids
- P8.11Latent diffusion (Stable Diffusion)soon✓ doneVAE + U-Net + text encoder🎞️ Full pipeline animation
- P8.12Diffusion Transformers and flow matchingsoon✓ doneDiT, rectified flow, straighter paths🎞️ Curved vs. straight sampling trajectories
- P8.13CLIP and contrastive image-text learningsoon✓ doneShared embedding space, zero-shot classification🎛️ Similarity matrix of images × captions
- P8.14Video, audio and 3D generationsoon✓ doneTemporal consistency, NeRF, Gaussian splatting (overview)🎥 Overview video
- P8.15Evaluating generative modelssoon✓ doneFID, IS, CLIP score, human eval🖼️ Metric explainer
- P8.16Ethics of generative mediasoon✓ doneDeepfakes, watermarking, consent, copyright🖼️ Discussion lesson
9 Reinforcement Learning Essentials
- P9.1The RL setupsoon✓ doneAgent, environment, state, action, reward, MDP🎛️ Gridworld you can play yourself
- P9.2Exploration vs. exploitationsoon✓ doneMulti-armed bandits, ε-greedy, UCB🎛️ Slot-machine bandit game
- P9.3Value functions and the Bellman equationsoon✓ doneReturns, discounting, V and Q🎞️ Values propagating across the grid
- P9.4Q-learningsoon✓ doneTemporal difference learning🎛️ Watch the agent learn in gridworld, live
- P9.5Deep Q-Networkssoon✓ doneReplay buffer, target networks🎥 Agent playing a simple game over training
- P9.6Policy gradientssoon✓ doneREINFORCE, baselines🎞️ Policy probability bars shifting toward rewarded actions
- P9.7Actor-critic and PPOsoon✓ doneAdvantage, clipped objective🎛️ PPO clipping region plot
- P9.8Model-based RL and planningsoon✓ doneMCTS, AlphaGo/AlphaZero/MuZero🎞️ Search tree expanding
- P9.9RL for language models (bridge)soon✓ doneText generation as an MDP, reward models🖼️ Bridge diagram to Part 10D
10 Large Language Models
10A. Building Blocks
- P10.A1What is a Large Language Model?soon✓ doneNext-token prediction at scale, base vs. chat models🎛️ Token probability viewer (small model in browser)
- P10.A2Tokenization deep divesoon✓ doneBPE merges, WordPiece, Unigram/SentencePiece, byte-level🎛️ BPE merge animation on your own text
- P10.A3Tokenization quirkssoon✓ doneNumbers, spaces, multilingual cost, why LLMs struggle to spell🎛️ Tokenizer comparison across languages
- P10.A4The residual stream viewsoon✓ doneEmbeddings in, layers read and write, unembedding out🎞️ Residual stream as a highway with layers as on-ramps
- P10.A5Decoding strategiessoon✓ doneGreedy, beam, temperature, top-k, top-p, min-p, repetition penalty🎛️ Live sliders reshaping the probability bar chart
10B. Pretraining
- P10.B1Pretraining datasoon✓ doneWeb crawls, filtering, deduplication, mixtures, licensing🎞️ Funnel from raw crawl to clean tokens
- P10.B2The pretraining objective and loss curvessoon✓ doneCausal LM loss, what the curve tells you🎛️ Annotated real loss curves
- P10.B3Scaling lawssoon✓ doneKaplan, Chinchilla compute-optimal training, data constraints🎛️ Compute-budget calculator → optimal params/tokens
- P10.B4Counting compute and memorysoon✓ doneFLOPs ≈ 6ND, memory for weights, gradients, optimizer, activations🎛️ "Will it fit on my GPU?" calculator
- P10.B5Mixed-precision trainingsoon✓ donefp16/bf16/fp8, loss scaling, master weights🎞️ Values falling outside fp16 range
- P10.B6Distributed trainingsoon✓ doneData, tensor, pipeline, sequence parallelism; FSDP/ZeRO🎞️ Animated GPU grid with shards moving
- P10.B7Training stabilitysoon✓ doneLoss spikes, warmup, z-loss, QK-norm, gradient clipping🖼️ Spike gallery and fixes
- P10.B8Hardware for deep learningsoon✓ doneGPUs, TPUs, memory bandwidth, the roofline model🎛️ Roofline plot
10C. Modern Architecture
- P10.C1Anatomy of a modern decodersoon✓ doneLlama-style block: RMSNorm, SwiGLU, RoPE, no biases🎞️ Diff animation: 2017 transformer → modern block
- P10.C2The KV cachesoon✓ doneAvoiding recomputation during generation, memory cost🎞️ Cache growing token by token
- P10.C3MQA, GQA and MLAsoon✓ doneSharing or compressing keys and values🎛️ Heads-sharing diagram with memory meter
- P10.C4FlashAttentionsoon✓ doneMemory hierarchy, tiling, IO-awareness🎞️ Tiles moving between HBM and SRAM
- P10.C5Mixture of Expertssoon✓ doneRouter, top-k experts, load balancing, sparse compute🎛️ Tokens routed to experts, live load bars
- P10.C6Long contextsoon✓ doneRoPE scaling, sliding windows, ring attention, "lost in the middle"🎛️ Needle-in-a-haystack visual
- P10.C7State space models and alternativessoon✓ doneS4, Mamba, RWKV, hybrids🎞️ Recurrent scan vs. attention
- P10.C8Architecture reading labsoon✓ doneRead a real config file and model code, line by line💻 Annotated walkthrough of an open-weight model's code
10D. Post-training and Alignment
- P10.D1From base model to assistantsoon✓ doneSupervised fine-tuning, instruction data, chat templates🎛️ Same prompt to base vs. instruction-tuned model
- P10.D2Reward models and RLHFsoon✓ donePreference data, Bradley-Terry, PPO with KL penalty🎞️ Full RLHF pipeline animation
- P10.D3Direct Preference Optimization and friendssoon✓ doneDPO, IPO, KTO, ORPO: RLHF without a separate RL loop🖼️ Derivation with progressive disclosure
- P10.D4AI feedback and constitutional methodssoon✓ doneRLAIF, rule-guided self-critique🖼️ Pipeline diagram
- P10.D5Reasoning modelssoon✓ doneChain of thought, RL with verifiable rewards, GRPO, test-time compute🎛️ Accuracy vs. "thinking budget" plot
- P10.D6Reward hacking and alignment challengessoon✓ doneGoodhart's law, sycophancy, specification gaming🎞️ Classic specification-gaming examples
10E. Adapting and Using LLMs
- P10.E1Prompting techniquessoon✓ doneZero-/few-shot, chain of thought, self-consistency, structured output🎛️ Prompt playground (pre-computed outputs, no API cost)
- P10.E2In-context learningsoon✓ doneWhy it works, induction heads (link to 10G)🎞️ Pattern-copying animation
- P10.E3Parameter-efficient fine-tuningsoon✓ doneLoRA, QLoRA, adapters, prefix/prompt tuning🎛️ Big frozen W + small trainable B×A, rank slider with param count
- P10.E4Embedding models and semantic searchsoon✓ doneContrastive training, cosine search🎛️ Search a small corpus in browser
- P10.E5Retrieval-Augmented Generationsoon✓ doneChunking, vector databases, HNSW, reranking, evaluation🎞️ Query → retrieve → augment → generate pipeline
- P10.E6Tool use and agentssoon✓ doneFunction calling, ReAct loop, planning, failure modes🎞️ Agent loop with tool calls appearing
- P10.E7Multimodal LLMssoon✓ doneVision encoder + projector + LLM, audio and video inputs🎞️ Image patches becoming "tokens" in the prompt
10F. Efficiency and Deployment
- P10.F1Quantizationsoon✓ doneINT8/INT4, GPTQ, AWQ, GGUF, quality trade-offs🎛️ Bit-width slider on a weight histogram
- P10.F2Distillation and small modelssoon✓ doneTeacher-student, synthetic data🖼️ Diagram
- P10.F3Inference servingsoon✓ doneContinuous batching, PagedAttention, speculative decoding🎞️ Draft model proposing, big model verifying
- P10.F4Running LLMs locallysoon✓ doneHardware sizing, local runtimes💻 Guided setup
10G. Evaluation, Safety and Interpretability
- P10.G1Evaluating LLMssoon✓ doneBenchmarks, contamination, LLM-as-judge, human preference arenas🖼️ Benchmark anatomy
- P10.G2Hallucination and factualitysoon✓ doneWhy models confabulate, mitigation🖼️ Case studies
- P10.G3Safety, bias and misusesoon✓ doneRed-teaming, jailbreaks (defensive view), bias measurement🖼️ Discussion lesson
- P10.G4Mechanistic interpretability Isoon✓ doneAttention patterns, induction heads, circuits🎛️ Attention-head explorer on a small model
- P10.G5Mechanistic interpretability IIsoon✓ doneSuperposition, sparse autoencoders, features, probing🎛️ Superposition toy model
- P10.G6LLMs and societysoon✓ doneLabor, copyright, environmental cost, open vs. closed🖼️ Discussion lesson
11 Electives and Advanced Topics
- P11.1Graph Neural Networkssoon✓ doneMessage passing, GCN, GAT🎞️ Messages flowing between nodes
- P11.2Speech and audiosoon✓ doneSpectrograms, wav2vec, Whisper🎛️ Live microphone spectrogram
- P11.3Recommender systemssoon✓ doneCollaborative filtering, two-tower models🎛️ Movie embedding explorer
- P11.4Deep learning for time seriessoon✓ doneForecasting, transformers for series💻 Colab
- P11.5Self-supervised learning theorysoon✓ donePretext tasks, collapse, JEPA🖼️ Diagram
- P11.6Meta-learning and few-shot learningsoon✓ doneMAML, prototypical networks🎞️ Prototypes in embedding space
- P11.7Privacy and federated learningsoon✓ doneDifferential privacy, federated averaging🎞️ Phones training locally, sharing updates
- P11.8Pruning and model compressionsoon✓ doneMagnitude pruning, lottery ticket hypothesis🎛️ Prune-percentage slider vs. accuracy
- P11.9Neural ODEs and continuous modelssoon✓ doneDepth as time🎞️ Continuous flow of data
- P11.10AI for sciencesoon✓ doneAlphaFold, weather models, materials🎥 Overview video
- P11.11World models and embodied AIsoon✓ doneRobotics, simulation, video world models🎥 Overview video
12 Practical ML Engineering
- P12.1The ML project lifecyclesoon✓ doneProblem framing → data → model → deploy → monitor🖼️ Lifecycle loop
- P12.2Data collection and labelingsoon✓ doneLabel quality, annotation guidelines, active learning🖼️ Diagram
- P12.3Experiment tracking and reproducibilitysoon✓ doneConfigs, logging, seeds, versioning💻 Demo
- P12.4Deploying modelssoon✓ doneAPIs, ONNX, mobile/edge, serverless🖼️ Deployment options map
- P12.5Monitoring and driftsoon✓ doneData drift, concept drift, alerts🎛️ Drifting distribution animation
- P12.6Explainabilitysoon✓ doneSHAP, LIME, feature importance🎛️ SHAP waterfall
- P12.7Fairnesssoon✓ doneFairness metrics, their trade-offs🎛️ Threshold sliders per group
- P12.8How to read a research papersoon✓ doneThree-pass method, reading figures and equations🖼️ Annotated paper
- P12.9Building a portfoliosoon✓ doneProjects, write-ups, open source🖼️ Guide