Course I — How Language Models Learn
Central question
How can examples of text, matrix operations, a loss function, and repeated parameter updates produce a system that assigns increasingly useful probabilities to language?
Module 1 — From Text to a Learning Problem
Module 2 — The Mathematics of Prediction
- Vectors and Matrix Operations
- From Logits to Probabilities
- Measuring Error
Module 3 — How Parameters Change
- Derivatives and Gradients
- Backpropagation and the Chain Rule
- Optimisers and the Training Loop
Module 4 — The Transformer Mechanism
- Embeddings and Position
- Attention
- Transformer Blocks and Generation
Course synthesis
Trace one short sequence from text to a loss value and explain how that loss can change the parameters of a Transformer.