Summary
Stanford CS336, “Language Modeling from Scratch”, Spring 2026 — the third edition of the course, taught by Percy Liang and Tatsunori Hashimoto with course assistants Marcel, Herman and Stephen. The premise is building a language model end to end rather than calling one: tokenization, architecture, kernels and hardware, distributed training, scaling laws, inference, data pipelines, and post-training. All 18 lectures are published on the Stanford Online YouTube channel, roughly 24 hours in total, recorded between 2026-04-14 and 2026-06-05.
Lectures
- 2026-04-14 - Lecture 01 - Overview, Tokenization
- 2026-04-14 - Lecture 02 - PyTorch (einops)
- 2026-04-15 - Lecture 03 - Architectures
- 2026-04-15 - Lecture 04 - Attention Alternatives
- 2026-04-20 - Lecture 05 - GPUs, TPUs
- 2026-04-28 - Lecture 06 - Kernels, Triton, XLA
- 2026-04-28 - Lecture 07 - Parallelism
- 2026-04-28 - Lecture 08 - Parallelism
- 2026-04-30 - Lecture 09 - Scaling Laws
- 2026-05-11 - Lecture 10 - Inference
- 2026-05-19 - Lecture 11 - Scaling Laws
- 2026-05-19 - Lecture 12 - Evaluation
- 2026-05-19 - Lecture 13 - Data (Sources, Datasets)
- 2026-05-27 - Lecture 14 - Data
- 2026-05-27 - Post-Training
- 2026-05-27 - Lecture 16 - Post-Training - RLVR
- 2026-06-04 - Lecture 17 - Alignment - Multimodality
- 2026-06-05 - Lecture 18 - Guest Lecture - Dan Fu
Notes On This Import
Lecture notes were written from the YouTube caption tracks (the en-US tracks, which are punctuated and far cleaner than the auto-generated ones). Two pairs of lectures share a title — 07/08 (Parallelism) and 09/11 (Scaling Laws) — so their summaries are written to distinguish them. Lecture 15’s filename uses “Mid and Post-Training” because a slash cannot appear in a filename.
Candidate Follow-ups
- No atomic notes extracted yet; each lecture note has an empty
Extracted Notessection. - A dedicated CS336 map may be worth creating if atomic notes start accumulating, rather than loading them all into Learning.