CS336

Year

2026

Status

ongoing

Stack

Python PyTorch Triton

Course

cs336.stanford.edu

Abstract

Work in progress: I'm still working through this course, so this page will grow as I go.

Can't afford to get into Stanford, so what does one do? Follow the free online courses they provide! Same course, no certificate. I'm following Stanford's CS336, Language Modeling from Scratch. As the name says, it builds a language model from the ground up: from tokenizer and transformer to training, data and alignment, with as few shortcuts as possible.

1 The course

The course is built around five implementation-heavy assignments:

Using language models every day is one thing; I want to understand every part of how they're built. More soon.