LLM From First Principles

From one dot product to your own GPT, and the systems built around it.

40 open lessons · practice and review with a pass

Part 0: What is an LLM?

See the whole machine before we open it up.

Part 1: The Tiny Bit of Math an LLM Needs

Four ideas, each one a picture before it is a formula.

Part 2: How Machines Learn

Prediction, error, and the one loop that trains everything.

Part 3: Neural Networks

Adjustable functions, stacked, and how blame flows backward.

Part 4: How Text Becomes Numbers

You cannot multiply the word "cat". So what do we do?

Part 5: Your First Language Model

Next-token prediction, and why the simple version hits a wall.

Part 6: Attention and the Transformer

The heart of the course. Take your time here.

Part 7: Build, Train and Run a GPT

Assemble the parts, watch it learn, make it talk.

Part 8: From GPT to Modern LLMs

What changed since 2019, and what we honestly do not know.

Part 9: Building With LLMs

RAG, fine-tuning and agents: what each one really changes.

Part 10: From Understanding to Engineering

What it takes to run this in production, and to keep learning from papers.

Part 11: Capstone

Build the whole system, then explain it from memory.

Open the course