AI
34 boards, 83 lessons, 665 review questions, 10 labs you can run and 27 narrated videos, in 9 modules. Read them in order. Each module builds on the one before. Lesson one is free, no account needed.
The whole track, with a plan
83 lessons, 10 labs and 27 videos, all of it open, with every review card and every board. One plan opens every track on chalk.
A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.
read, every lesson
You finished
LinkedIn shares the link. Attach the downloaded image to the post to show it.
Start here → Vectors, Dot Products and Matrix MultiplyKnow some already? Find your levelPlay it as a journey: short bites
Contents
Part one · Foundations
1Neurons to a language modelshow10 lessons
The maths floor, then one neuron's weighted sum, how it learns and why training stalls, words as numbers, memory across a sentence, attention, and the transformer grown into an LLM.
- 01Vectors, Dot Products and Matrix Multiply8 Qshowplay it as a journey
- 02What a Neural Network Is10 Qplay it as a journey
- 03Odds and surprise: probability and information for ML8 QFree with an accountplay it as a journey
- 04How It Learns (loss, gradient descent, backprop)10 QWith a planplay it as a journey
- 05One Knob, One Slope7 QTypeScriptWith a planplay it as a journey
- 06Why the Loss Won't Go Down8 QWith a planplay it as a journey
- 07Tokens & Embeddings10 QWith a planplay it as a journey
- 08RNNs and LSTMs8 QWith a planplay it as a journey
- 09Attention & the Transformer10 QWith a planplay it as a journey
- 10From Transformer to LLM10 QWith a planplay it as a journey
2From a model to an app8 lessons
Softmax and sampling, then fine-tuning and a LoRA run, retrieval, tools and agents, ending in the anatomy of a real LLM app.
- 01The Maths Floor, Part 2: Probability, Softmax and Temperature8 QWith a planplay it as a journey
- 02Inference (sampling, context, KV cache, hallucination)8 QWith a planplay it as a journey
- 03Fine-tuning & Alignment10 QWith a planplay it as a journey
- 04A LoRA Run8 QPythonWith a planplay it as a journey
- 05Rank, SVD and the shape of data8 QWith a planplay it as a journey
- 06RAG (Retrieval-Augmented Generation)10 QWith a planplay it as a journey
- 07Agents & Tool Use6 QWith a planplay it as a journey
- 08Capstone: Anatomy of an LLM App5 QWith a planplay it as a journey
Part two · Build
3Past the basics22 lessons
Why a model is fast and cheap, why thinking longer works, how you know it is good, what is inside it, networks that see, images, vision, mixture of experts, the GPU and training across many of them, and serving as a systems problem.
- 01Inference at Scale (why an LLM is fast, and cheap)8 QWith a planplay it as a journey
- 02Reasoning & Test-Time Compute (why "thinking longer" works)9 QWith a planplay it as a journey
- 03Learning from a score: policy gradients, PPO and GRPO8 QWith a planplay it as a journey
- 04Evaluating Models (how do you *know* it's good?)9 QWith a planplay it as a journey
- 05Precision and Recall (where to set the spam filter's bar)8 QWith a planplay it as a journey
- 06Trees, forests and boosting8 QWith a planplay it as a journey
- 07Groups nobody labelled: k-means and PCA8 QWith a planplay it as a journey
- 08Honest scores: cross-validation, leakage and bias-variance8 QWith a planplay it as a journey
- 09Looking Inside the Model8 QWith a planplay it as a journey
- 10Convolutional Networks8 QWith a planplay it as a journey
- 11Borrowed eyes: transfer learning, autoencoders, VAEs and GANs8 QWith a planplay it as a journey
- 12Diffusion & Image Generation (sculpting from noise)9 QWith a planplay it as a journey
- 13Multimodality (teaching an LLM to see)9 QWith a planplay it as a journey
- 14Sound and moving pictures: speech, TTS and video8 QWith a planplay it as a journey
- 15Mixture of Experts (a big brain with a cheap forward pass)9 QWith a planplay it as a journey
- 16Inference Engineering (serving an LLM is a systems problem)8 QWith a planplay it as a journey
- 17The GPU (thousands of cores, and the memory that feeds them)8 QWith a planplay it as a journey
- 18The small model that learned from the big one: distillation and on-device8 QWith a planplay it as a journey
- 19Four Ways to Split a Model8 QWith a planplay it as a journey
- 20What the model ate: pretraining data and the recipe7 QWith a planplay it as a journey
- 21When the long run breaks: training diagnostics at scale8 QWith a planplay it as a journey
- 22People who bought this: recommenders and time series8 QWith a planplay it as a journey
4The string and the contract4 lessons
The returns desk, from the one string the model sees through the prompt, the window, and the tool schema that is its contract with your code.
- 01What the Model Sees (one string, every turn, from the top)8 QWith a planplay it as a journey
- 02Prompt Engineering (shaping the next-token distribution)8 QWith a planplay it as a journey
- 03Context Engineering (what goes in the window, and who decides)8 QWith a planplay it as a journey
- 04Structured Output and Tool Schemas (the contract between model and code)8 QWith a planplay it as a journey
5The loop and its harness13 lessons
The same desk as a loop: the harness around it, memory, a state machine, a second agent, the eval table, the three budgets that close it, and the red team that attacks it.
- 01The Loop (an agent is a while loop around one model call)8 QWith a planplay it as a journey
- 02Where the field stands now, November 20268 QWith a planplay it as a journey
- 03The Harness (everything around the loop that the model never touches)8 QWith a planplay it as a journey
- 04One plug for every tool: MCP and agent protocols7 QWith a planplay it as a journey
- 05Memory (four places a fact can live, and only one of them is the model)8 QWith a planplay it as a journey
- 06Graphs and State Machines (when the shape of the task is known, draw it)8 QWith a planplay it as a journey
- 07Multi-Agent (a second loop is a second window, not a second mind)8 QWith a planplay it as a journey
- 08Evals for Apps (the test suite for a program that is a string)8 QWith a planplay it as a journey
- 09Agents that use a computer: coding agents and long horizons8 QWith a planplay it as a journey
- 10Keeping it honest and safe: alignment and responsible AI8 QWith a planplay it as a journey
- 11Guardrails, Cost and Latency (the three budgets the harness enforces)8 QWith a planplay it as a journey
- 12Sycophancy (the desk that agrees with whoever spoke last)8 QWith a planplay it as a journey
- 13Red-Teaming (breaking your own model before a customer does)8 QWith a planplay it as a journey
6GPT, built from scratch8 lessons
A language model written from nothing on a laptop: numbers that find their own slopes, a model that counts, one that learns, attention, the GPT block, and sampling from it.
- 01Autograd by Hand8 QPythonWith a planplay it as a journey
- 02Build the tokenizer: BPE by hand7 QWith a planplay it as a journey
- 03The Bigram Model8 QPythonWith a planplay it as a journey
- 04The MLP Language Model8 QPythonWith a planplay it as a journey
- 05Attention by Hand8 QPythonWith a planplay it as a journey
- 06The GPT Block7 QPythonWith a planplay it as a journey
- 07Sampling and What Scale Buys8 QPythonWith a planplay it as a journey
- 08The library layer: PyTorch, Hugging Face and a free GPU8 QWith a planplay it as a journey
7On a real model3 lessons
The two builds the track has been drawing, run end to end on a real model: search your own notes and answer with sources, and the returns desk as a working agent, each with an eval that catches it failing.
8Serve the GPT you builtshow8 lessons
The 51-character GPT from the last build, and an engine around it that does what vLLM does: a KV cache, continuous batching, paged blocks, a prefix cache, a bigram that drafts for it, and a server that streams, each measured on your own machine.
- 01Build Your Own Inference Engine7 QPythonWith a planplay it as a journey
- 02Serve 01: The KV Cache7 QPythonWith a planplay it as a journey
- 03Attention, grown up: RoPE, GQA, FlashAttention and Mamba8 QWith a planplay it as a journey
- 04Batching: A Slot That Frees Early7 QPythonWith a planplay it as a journey
- 05Paged Attention: The Cache in Blocks8 QPythonshowWith a planplay it as a journey
- 06The Prefix Cache: Computed Once7 QPythonWith a planplay it as a journey
- 07Speculative Decoding: The Bigram Drafts, the GPT Checks8 QPythonWith a planplay it as a journey
- 08The Engine, Whole8 QPythonWith a planplay it as a journey
Part three · Scale
9Serving LLMs7 lessons
One 7B model on one A100, taken apart: the two clocks a request runs on, the prefix cache that shortens the first, chunked prefill and the prefill/decode split that protect the second, the grammar that masks the logits, and the router that decides which model answers at all.
- 01The Two Clocks (TTFT, TPOT, and why goodput is the number)7 QWith a planplay it as a journey
- 02Prefix Caching (the same start, computed once)8 QWith a planplay it as a journey
- 03Chunked Prefill (one long prompt must not freeze the room)8 QWith a planplay it as a journey
- 04Prefill / Decode Split (two pools, one KV in flight)8 QWith a planplay it as a journey
- 05Constrained Decoding (the grammar holds the pen)8 QWith a planplay it as a journey
- 06Routing and Cascades (not every request needs the big model)7 QWith a planplay it as a journey
- 07Stop and Resume (the button that has to reach the card, and the stream that has to come back)7 QWith a planplay it as a journey
Go deeper (4)
Where this track's ideas are taken further, in other tracks: the internals, the theory and the builds.
Borrowed from other tracks (5)
You don’t need to take those tracks. These are the only lessons this track uses from them, and each is linked where it is needed.
- The Memory Hierarchy (cache, locality, the memory wall)How Computers Work · needed for The GPU (thousands of cores, and the memory that feeds them)
- LLM & Agent SecuritySecurity · needed for Red-Teaming (breaking your own model before a customer does)
- The order slip rail (queues & the utilization cliff)System Design · needed for Batching: A Slot That Frees Early
- The address book every process carriesHow Computers Work · needed for Paged Attention: The Cache in Blocks
- Design Claude, in the interviewSystem Design · needed for Stop and Resume (the button that has to reach the card, and the stream that has to come back)