The learning path
Modules are nodes; arrows are prerequisites from the course manifest. Color shows your progress (episodes heard to at least 90%). Click a module to open it.
not startedin progresscomplete
Phase 1: Build and post-train your own GPT
Phase 2: Encoders, interpretability, retrieval, agents, translation, recurrence
Phase 3: The frontier: DeepSeek and Kimi, rebuilt small
Phase 4: Speech
Phase 5: Linguistic structure (for evaluation, interpretability, and measurement)
Interleaving. Module D is interleaved: Looking at a Corpus Before You Train–Cleaning Text: Normalization, Boilerplate, and Regex Pipelines after Words and Tokens; Duplicates: Exact Hashing, MinHash, and LSH–Mixtures, Curricula, and Synthetic Data after Pretraining: Data, Compute, and Scaling Laws (pretraining data) and before Post-training;
Speech Data: Alignment, Noise, and Sample Rates before Automatic Speech Recognition. Paper: word2vec and GloVe–Paper: DPO are "read the paper" companions; take each right after its book chapter.
Recommended episode order
Module D's data episodes are interleaved where they are needed, following the notes above.
- Math Is an API Spec
- Vectors Are Arrays, Matrices Are Functions
- Subspaces, Frames and QR
- Manifolds and Retractions
- Probability as Frequency Tables
- Living in Log Space
- Derivatives as Sensitivity
- Cost Models: Big-O, Recurrences, and Why Vectorization Wins
- The Toolchain: NumPy, PyTorch, CUDA, Reproducibility
- Proof as Testing: How Mathematicians Convince Themselves
- Reading a Paper Like a Codebase
- Predict the Next Word
- Tokens and the World's Languages
- The LLM Life Cycle: Pretraining, Post-training, Inference, Agents, Evaluation, Safety
- Words, Types, and Heaps' Law
- Unicode for Programmers
- Regular Expressions Are Machines (and Unix Is a Tokenizer)
- BPE I: Learning a Vocabulary by Compression
- BPE II: Segmenting, Bytes, and Fairness
- Minimum Edit Distance as Dynamic Programming
- The Noisy Channel: Spelling Correction (Appendix D)
- Looking at a Corpus Before You Train
- Cleaning Text: Normalization, Boilerplate, and Regex Pipelines
- The Chain Rule of Probability and the Markov Bet
- Counting Is Learning: Maximum Likelihood
- Perplexity, Entropy, and Cross-Entropy
- Sampling, Shannon's Game, and Overfitting
- Smoothing, Backoff, and Kneser-Ney (Appendix C)
- Classification as a Function
- The Sigmoid and the Softmax
- Cross-Entropy Loss, Derived
- Gradients by Hand: Your First Matrix Calculus
- Gradient Descent, SGD, and Regularization
- Evaluation: Precision, Recall, F1, and Significance
- Naive Bayes and Generative vs Discriminative (Appendix B)
- Meaning as Location
- Cosine Similarity and High-Dimensional Geometry
- PPMI, SVD, and Count-Based Vectors
- word2vec: Prediction Instead of Counting
- Negative Sampling and Its Gradient
- GloVe, fastText, Visualization, Evaluation, and Bias
- WordNet and Lexical Relations
- The Neuron: Weighted Sum, Bias, and a Bend
- XOR and Why Depth Matters
- Jacobians for Developers
- Backpropagation as Reverse Graph Traversal
- Build micrograd, Then a Tensor Autograd
- The Feedforward Neural Language Model and Training Tricks
- The Residual Stream
- Attention as a Soft Dictionary Lookup
- Queries, Keys, Values, and the Square Root of d
- Multi-Head Attention and Shapes
- The Transformer Block: LayerNorm and the FFN
- Positions: From Sinusoids to RoPE
- The Language-Modeling Head and Cross-Entropy at Scale
- Pretraining: Data, Compute, and Scaling Laws
- Duplicates: Exact Hashing, MinHash, and LSH
- Quality Filtering: Heuristics and Classifiers
- Language ID, Toxicity, and PII
- Contamination: When Your Test Set Is in Your Training Set
- Labels: Agreement, Noise, and Imbalance
- Mixtures, Curricula, and Synthetic Data
- Decoding and the KV Cache
- Why Base Models Don't Follow Instructions
- Supervised Fine-Tuning and Loss Masking
- LoRA: Fine-Tuning as Low-Rank Algebra
- RLHF: Reward Models and PPO
- DPO, Derived
- Reinforcement Learning with Verifiable Rewards
- Bidirectional Encoders: One Mask Between GPT and BERT
- Training with Masks: MLM, 80/10/10, and the Fall of Next-Sentence Prediction
- Fine-Tuning for Classification and Sequence Labeling
- Contextual Embeddings, Word Sense, and Why Raw Cosine Lies
- Probing: What Do Layers Know, and Who Did the Learning?
- The Logit Lens and Sparse Autoencoders
- Causal Methods, Induction Heads, and In-Context Learning
- Information Retrieval: Inverted Indexes, tf-idf, and BM25
- Dense Retrieval and Approximate Nearest Neighbors
- Retrieval-Augmented Generation, Stage by Stage
- QA Datasets and Evaluation: What the Numbers Actually Measure
- The Agent Loop: Tools, ReAct, and State
- Training and Evaluating Agents
- Languages Differ: Typology and the Machine Translation Problem
- Encoder-Decoder with Cross-Attention
- Beam Search: Bounded Heaps, Length Normalization, and the Beam Search Curse
- Low-Resource MT, Evaluation, and Ethics: BLEU Derived, chrF, and Learned Metrics
- Recurrence as Fold/Reduce: The RNN Language Model
- Backprop Through Time and the Vanishing Gradient
- LSTM and GRU Gates: Learned if-Statements and the Additive Highway
- From RNNs to Linear Attention and State-Space Models: RNNs That Train in Parallel
- Reading word2vec and GloVe
- Reading seq2seq and Neural Machine Translation by Jointly Learning to Align
- Dissecting the Transformer Paper
- BERT and T5: Encoders and Text-to-Text
- GPT-2/3 and the Emergence of In-Context Learning
- Scaling Laws: Kaplan vs Chinchilla
- RoFormer: Rotary Position Embedding, and How to Stretch It
- FlashAttention: Exact Attention That Respects the Memory Hierarchy
- LoRA and QLoRA in Practice: Fine-Tuning in Four Bits
- InstructGPT: The RLHF Pipeline, Stage by Stage
- Direct Preference Optimization, Line by Line
- Mamba: A Recurrence That Chooses What to Remember
- Muon: Orthogonalized Updates
- Mixture of Experts from Scratch
- DeepSeekMoE: Fine-Grained and Shared Experts
- Balancing Experts Without an Auxiliary Loss
- The KV Cache Problem: MHA, MQA, GQA
- MLA: Compressing Keys and Values into a Latent
- Multi-Token Prediction: Training a Module You Might Throw Away
- Low-Precision Training: FP8 and Fine-Grained Scaling
- Native Sparse Attention: Compress, Select, Slide
- DSA: The Lightning Indexer and Top-k Attention
- Policy Gradients Without a Critic
- GRPO in Practice on 16 GB
- R1-Zero: Reasoning from Pure RL
- R1: The Full Pipeline
- Distilling Reasoning into Small Models
- Multi-Stream Residuals and Manifold Constraints
- CSA + HCA: Attention for a Million Tokens
- Mixture of Block Attention
- Kimi k1.5: Scaling RL with Long Context
- Kimi K2: MuonClip and QK-Clip
- The Delta Rule: Linear Attention That Can Overwrite
- KDA: Channel-Wise Gating
- Hybrids: 3 KDA : 1 MLA
- Attention Residuals: Attending Over Depth
- Reading the Kimi K3 Report
- Building and Training the Capstone
- Tool-Use RL: Thinking Models That Act
- Speculative Decoding: Draft and Verify
- Sparse Autoencoders: Finding Features
- The Architecture Is a Prior: Inductive Bias and Symmetry
- Convolutions for Language and Speech
- Choosing an Architecture: A Decision Framework
- Hybrids and the RNN Revival: Jamba, Griffin, RWKV, xLSTM
- Physics-Inspired I: Energy, Hopfield Networks, and Attention
- Physics-Inspired II: Dynamical Systems, Neural ODEs, and Signal Propagation
- Physics-Inspired III: Diffusion for Language
- Graphs: Message Passing and Graph Neural Networks
- Subspaces and the Geometry of Representations
- Designing an Experiment I: Hypotheses, Baselines, and Controls
- Designing an Experiment II: Variance, Significance, and Scaling Curves
- Designing an Experiment III: From Idea to Result on 16 GB
- What Self-Improvement Means (and What It Doesn't)
- Bootstrapping From Your Own Outputs, and Model Collapse
- Self-Play and Search: From AlphaZero to Reasoning Models
- Self-Rewarding and AI Feedback
- Self-Refinement and Test-Time Compute
- Recursive-Reasoning Architectures: Looping Over Your Own Computation
- Self-Modifying and Evolutionary Systems: Machines That Rewrite Machines
- The Safety of Recursive Self-Improvement
- The Safety Landscape: Threat Models and Who Does What
- Auditing Datasets: Documentation, Memorization, Membership, and Attribution
- Evaluating Capabilities Like an Evaluator: Benchmarks, Elicitation, and METR's Time Horizons
- Dangerous-Capability Evaluations and Frontier Safety Frameworks
- Red Teaming: Measuring Robustness and the Cost of Defenses
- Auditing Models with Interpretability
- Steering Models: Activation Addition, Representation Engineering, and the Refusal Direction
- Procrustes Alignment: Comparing and Aligning Representation Spaces
- Scalable Oversight and AI Control
- Deception, Sycophancy, Scheming, and Honesty Evaluations
- Building an Audit Pipeline End to End on 16 GB
- AI Law and Governance: What Is in Force, What Is Coming
- Explainability: Methods, Faithfulness, and What Regulators Mean by It
- AI and Civil Rights: Protected Domains and Safe, Lawful Deployment
- Measuring Fairness and Auditing for Bias
- 7,000 Languages and the Data Gap
- Computational Morphology: From Finite-State Transducers to Neural Inflection
- Tokenization for Morphologically Rich Languages
- Multilingual Pretraining and the Curse of Multilinguality
- Cross-Lingual Alignment: Shared Spaces Between Languages
- Low-Resource Data: Finding, Cleaning, and Creating It
- Machine Translation for Low-Resource Languages: NLLB, chrF++ With Error Bars, and What the Metric Cannot See
- Adapting an LLM to a New Language: Vocabulary Extension, Embedding Initialization, and Forgetting
- Speech for Low-Resource and Unwritten Languages: Self-Supervised Features, Tone, and a Thousand-Language Recognizer
- Evaluating Multilingual Models Fairly: Per What, Translated From What, and Safe in Which Language
- End to End: A Language Pipeline From Raw Data to an Evaluated Model on 16 GB
- Speech Sounds and Articulatory Phonetics
- Acoustic Phonetics and Prosody
- Sampling, Nyquist, and the Fourier Transform
- Log-Mel Spectra and MFCCs
- Speech Data: Alignment, Noise, and Sample Rates
- The ASR Task, Corpora, and Convolutional Front-Ends
- Encoder-Decoder ASR and Whisper
- Self-Supervised Speech: wav2vec 2.0 and HuBERT
- CTC: Alignment-Free Training
- CTC Decoding, RNN-T, WER, and Fairness
- TTS Overview and Neural Audio Codecs: Turning Sound into Tokens
- Two-Stage LM-Based Synthesis (Case Study: Qwen3-TTS, This Course's Narrator)
- Evaluating Speech and Spoken Language Models
- Word Classes, Tagsets, and the Tagging Task
- Hidden Markov Models
- The Viterbi Algorithm
- CRFs, Neural Taggers, and NER Evaluation
- Constituency and Context-Free Grammars: Grammars as Programs
- Treebanks, Ambiguity, and Chomsky Normal Form: Why Parses Explode
- The CKY Algorithm: Parsing as Interval Dynamic Programming
- Statistical and Neural Span Parsing: Probabilities, Heads, and PARSEVAL
- Combinatory Categorial Grammar: Parsing as Type Checking
- Dependency Relations and Universal Dependencies
- Transition-Based Parsing
- Graph-Based Parsing and Evaluation
- Relation Extraction
- Events, Time, and Template Filling
- Semantic Roles, PropBank, and FrameNet
- Semantic Role Labeling Algorithms
- Logical Semantics: Models, Quantifiers, and Lambda
- Emotion, Affect, and Lexicons
- Inducing Lexicons and Connotation Frames
- Coreference: Mentions, Chains, and Neural Ranking
- Entity Linking, Winograd, and Gender Bias
- Coherence Relations and Discourse Parsing
- Centering, Entity Grids, and Global Coherence
- Properties of Human Conversation and Dialogue Acts
- Frame-Based Dialogue Systems (Appendix K) and the LLM Era