Part 1
Foundations Start here: no code or math needed. Use LLMs well, see how computers run code, learn Python from zero, and the math of AI drawn as pictures.
Already write Python? Skip Module 3. Comfortable with vectors and probability? Skim Module 4.
0 Welcome & The Big Picture See the whole journey, and what an LLM really is, before any details.
0.1 What happens when you press Enter Lesson 0.2 AI, machine learning, deep learning, LLMs Transcript 0.3 From ELIZA to ChatGPT Transcript 0.4 Training vs inference Transcript 0.5 How to learn with this course Transcript Checkpoint: Explain to a friend, in one minute, how ChatGPT writes an answer.
1 Using LLMs Like a Pro Be a skilled user first. You will understand the internals better later.
1.1 Base, chat and reasoning models Coming soon 1.2 Prompting fundamentals Coming soon 1.3 Tokens and context windows Coming soon 1.4 Your first API call Coming soon 1.5 Open vs closed models Coming soon 1.6 Where LLMs fail Coming soon Checkpoint: Call an LLM from code and explain what the token count on the bill means.
2 How Computers Run Code The machine underneath. This pays off hugely in Part 4.
2.1 Bits, bytes and numbers Coming soon 2.2 Floating point: FP32, FP16, BF16, FP8 Coming soon 2.3 CPU, memory and storage Coming soon 2.4 What a GPU is and why AI needs it Coming soon 2.5 The terminal, files and environments Coming soon Checkpoint: Explain why a 7-billion-parameter model in FP16 needs about 14 GB.
3 Python from Zero Write real programs. Only the Python that AI work actually uses.
3.1 Variables, types and printing Coming soon 3.2 Lists, dictionaries and loops Coming soon 3.3 Functions Coming soon 3.4 Classes and objects Coming soon 3.5 Packages, pip and uv Coming soon 3.6 NumPy: thinking in arrays Coming soon 3.7 Notebooks and plotting Coming soon Checkpoint: Write a 50-line Python program from a blank file without copying.
4 The Math of AI, Visually From school algebra to everything an LLM uses. Pictures first, symbols second.
4.1 Functions and graphs Coming soon 4.2 Vectors Coming soon 4.3 The dot product is similarity Coming soon 4.4 Matrices and matrix multiplication Coming soon 4.5 Derivatives Coming soon 4.6 The chain rule Coming soon 4.7 Probability and distributions Coming soon 4.8 Exponentials, logs and softmax Coming soon 4.9 Cross-entropy: measuring surprise Coming soon Checkpoint: Multiply two small matrices by hand and explain what softmax does.
Part 2
How Machines Learn Machine learning from the ground up. Build a neural network from scratch, move to PyTorch, then turn language into numbers.
Trained neural networks in PyTorch before? Skim to Module 8.
5 Machine Learning Basics How a program learns from examples instead of rules.
5.1 Learning from data Coming soon 5.2 Linear regression Coming soon 5.3 Loss functions Coming soon 5.4 Gradient descent Coming soon 5.5 Classification and logistic regression Coming soon 5.6 Overfitting and train/test splits Coming soon Checkpoint: Explain why a model can score 100% on training data and still be useless.
6 Neural Networks from Scratch Build a neural network with no libraries, so nothing is magic.
6.1 A single neuron Coming soon 6.2 Activation functions: ReLU, GELU Coming soon 6.3 Layers and the forward pass Coming soon 6.4 Backpropagation, drawn out Coming soon 6.5 Build an autograd engine Coming soon 6.6 Optimizers: SGD, momentum, Adam Coming soon 6.7 Initialization, normalization, regularization Coming soon Checkpoint: Compute the gradients of a 2-layer network by hand and match your code.
7 PyTorch The tool real researchers and engineers use, now that you know what it hides.
7.1 Tensors, shapes and broadcasting Coming soon 7.2 Autograd in PyTorch Coming soon 7.3 nn.Module and the training loop Coming soon 7.4 Datasets, batches and data loaders Coming soon 7.5 Running on GPU and Apple MPS Coming soon 7.6 Debugging training Coming soon Checkpoint: Write a full PyTorch training loop from memory.
8 Language as Numbers Turn text into something a network can predict.
8.1 From characters to tokens Coming soon 8.2 Byte-pair encoding (BPE) Coming soon 8.3 Embeddings Coming soon 8.4 Next-token prediction Coming soon 8.5 Bigram and n-gram models Coming soon 8.6 RNNs and why they weren't enough Coming soon 8.7 Sampling: greedy, temperature, top-k, top-p Coming soon Checkpoint: Tokenize a sentence by hand with BPE and explain what temperature does.
Part 3
Building LLMs Build a GPT yourself, then see how modern LLMs differ, how labs train them, and how apps are built on them.
Know the transformer well? Start at Module 10.
Part 4
LLMs in Production Inference engineering: serving LLMs fast and cheap, layer by layer, from the GPU chip up to production.
Already know how transformers work? You can start here.
13 How Inference Works Know exactly where the time and money go when a model runs.
13.1 The inference stack: three layers Coming soon 13.2 Prefill and decode Coming soon 13.3 The KV cache Coming soon 13.4 Latency metrics: TTFT, TPS, ITL Coming soon 13.5 Throughput vs latency Coming soon 13.6 Compute-bound vs memory-bound Coming soon 13.7 Calculating bottlenecks by hand Coming soon 13.8 Optimizing attention Coming soon 13.9 Budgets: picking a model for your app Coming soon Checkpoint: Given a model and a GPU, estimate TTFT and decode speed within 2x.
14 Hardware Understand the machine your model runs on.
14.1 Inside a GPU Coming soon 14.2 GPU generations: Ampere to Blackwell Coming soon 14.3 Interconnect: NVLink and InfiniBand Coming soon 14.4 Cloud instances and pricing Coming soon 14.5 Beyond NVIDIA: TPU, AMD, Trainium Coming soon 14.6 Local inference Coming soon Checkpoint: Pick the cheapest GPU setup that meets a given latency target, and justify it.
15 The Software Stack From CUDA kernels up to inference engines.
15.1 CUDA and kernels Coming soon 15.2 Writing your first kernel Coming soon 15.3 PyTorch compilation and CUDA graphs Coming soon 15.4 Inference engines: vLLM, SGLang, TensorRT-LLM Coming soon 15.5 Continuous batching Coming soon 15.6 PagedAttention Coming soon 15.7 NVIDIA Dynamo Coming soon 15.8 Benchmarking and load testing Coming soon Checkpoint: Run a benchmark and explain every number in its report.
16 Making It Fast The techniques that cut latency and cost in real systems.
16.1 Quantization: the idea Coming soon 16.2 Quantization in practice: FP8, INT4, FP4 Coming soon 16.3 Speculative decoding Coming soon 16.4 Prefix caching Coming soon 16.5 Tensor and pipeline parallelism Coming soon 16.6 Expert parallelism Coming soon 16.7 Disaggregated prefill and decode Coming soon Checkpoint: Choose and justify the right optimizations for a given workload.
17 Beyond Text Serving vision, speech, embeddings and image generation.
17.1 Vision language models Coming soon 17.2 Embedding models Coming soon 17.3 Speech to text Coming soon 17.4 Text to speech Coming soon 17.5 Image and video generation Coming soon Checkpoint: Explain how serving a speech or image model differs from serving an LLM.
18 Production Ship it, scale it, keep it up, and keep the bill down.
18.1 Containerizing a model Coming soon 18.2 Autoscaling and cold starts Coming soon 18.3 Multi-cloud GPU capacity Coming soon 18.4 Testing and zero-downtime deploys Coming soon 18.5 Client code: streaming, retries, timeouts Coming soon 18.6 Observability Coming soon 18.7 Cost engineering Coming soon 18.8 Where to go from here Coming soon Checkpoint: Run a production LLM endpoint and explain its latency, throughput and cost.