
#288 overall
CS336: Language Modeling from Scratch
Stanford University
2 recommenders · 2 threads · recommended in 1 year, 2026 · score 1.7
Stanford's graduate course on building language models end to end, covering architecture, training, scaling laws, systems and kernel optimization, with assignments. Commenters point to its lecture notes and assignments as the way to learn the full pipeline.
Commenters call it a deep, theory-and-systems-oriented route into LLMs, with one saying the lecture notes made computational bottlenecks much more intuitive.
Recommendations by year
20062026
If you're interested in this resource, I highly recommend checking out Stanford's CS336 class. It covers all this curriculum in a lot more depth, introduces you into a lot of theoretical aspects (scaling laws, intuitions) and systems thinking (kernel optimization/profiling). For this, you have to do the assignments, of course... https://cs336.stanford.edu/
I had the same inspiration!
I spent a days reviewing the lecture notes for CS336: Language Modeling from Scratch - and then trained a nanoGPT-esque model in PyTorch.
I'd recommend trying it for those who are curious. Computational bottlenecks become much more intuitive when you've looked at the overall process.