Stanford CS336 notes: Percy Liang on scaling recipes and hyperparameter transfer

stanfordnlp · x · 2026-10-31

Notes from Stanford's CS336 (Language Modeling from Scratch, Spring 2026, taught by Percy Liang and Tatsu Hashimoto) capture the key mindset shift in Liang's scaling laws lecture: stop thinking about one model and think of a scaling recipe — a rule mapping compute budget to hyperparameters. Run small-scale experiments (up to 1e24 FLOPs), fit a loss curve, and extrapolate to predict the big run before spending the compute. The catch: this only works if small-scale optima transfer — the best learning rate shifts with model width, which is why hyperparameter transfer (scaling initialization and per-layer LRs with width, Yang+ 2022) matters. The course walks through the full pipeline of building an LM from scratch, with lectures on YouTube.

Original post →

More from Research

Research channel →