CS336: Language Modeling from Scratch (Stanford, Spring 2026)
Rebuilt lecture slides with written notes for each lecture, updated to late-2026 models and, in the systems lectures, NVIDIA Blackwell. Each lecture link opens the slides and notes side by side; drag the divider to resize, and click the slides then use the arrow keys to move between them.
- Lecture 1Overview & Tokenization
- Lecture 2PyTorch & Resource Accounting
- Lecture 3Architecture and Hyperparameters
- Lecture 4Attention Alternatives and Mixtures of Experts
- Lecture 5GPUs
- Lecture 6Benchmarking, Profiling, and GPU Kernels
- Lecture 7Multi-GPU Parallelism
- Lecture 8Parallelism Basics
- Lecture 9Scaling Laws — Basics
- Lecture 10Inference
- Lecture 11Scaling in Practice
- Lecture 12Evaluation
- Lecture 13Data I
- Lecture 14Data II
- Lecture 15Mid-Training & Post-Training
- Lecture 16RL from Verifiable Rewards
- Lecture 17Multimodal Models