Course Notes
Witten by students for extra credit, with editing by instructors. For details on how to submit, see here.
-
-
Lecture 19: Unsupervised Training of LLMs
How GPT models learn from text, how scaling changes their performance, and why new abilities can appear.
-
Lecture 18: GPT Architectures
How a stack of Transformer decoder blocks plus a next-token likelihood becomes GPT, and what has (and has not) changed from GPT-1 to today's open-weight models.
-
Lecture 17: Attention, Transformers
From recurrent attention to self-attention, Transformer blocks, causal masking, and modern Transformer architectures.
-
Lecture 17: Attention and Transformers
From fixed-length recurrent summaries to soft attention, learnable self-attention, and the Transformer block.
-
Lecture 16: Sequence Learning with RNNs
Turning words into vectors, recurrent neural networks and their variants, backpropagation through time and why its gradients vanish or explode, LSTMs and GRUs, and why recurrence has come back in modern sequence models.
-
Lecture 15: Diffusion Models
Learning to generate images by reversing noise, from pixel-space diffusion to text-conditioned latent diffusion.
-
Lecture 14: Variational Autoencoders and Generative Adversarial Networks
An overview of VAEs, GANs, and a unified view of the two
-
Lecture 13: A Linear Intro to Generative Models
Generative versus discriminative models through logistic regression and Naive Bayes, then autoencoders and their variants as a first step toward deep generative models.
-
Lecture Review: Midterm
A condensed, stand-alone review of the first half of the course: the core idea of each lecture, the formulas with the shape of every object, and the mistakes that are easiest to make.