← Your AI learning roadmap

FREE · ADVANCED · STANFORD ONLINE · SPRING 2026

Language Modeling from Scratch

CS336 · Percy Liang & Tatsunori Hashimoto. Official recordings are embedded from Stanford Online. Academy notes and checks are independently written.

Official course and assignments ↗

Before you start

Prerequisites: Python, PyTorch, linear algebra and comfort with gradients. Level 1–2 builds vocabulary, not these engineering prerequisites.

0 / 18 completed

1. Overview & tokenization

Turn raw language into token sequences and understand the training pipeline.

Check your understanding

Why tokenize text?

Sign in to keep progress