LLM Basics

Course

Zero to GPT

Build up an intuitive, from-scratch understanding of how large language models work, from derivatives and backpropagation through tokenization, embeddings, self-attention, and all the way to a working (if tiny) GPT.

Lesson 1

What Is a Language Model?

The core idea behind every LLM: predicting the next word.

Start

Lesson 2

Derivatives: How Change Flows

The single idea underneath how every neural network learns: nudge the input, watch the output move.

Start

Lesson 3

Backpropagation: The Chain Rule, by Hand

How gradients flow backward through a chain of operations, the algorithm that trains every neural network.

Start

Lesson 7

Embeddings: Turning Tokens Into Meaning

How a model represents word meaning as points in space.

Start

Lesson 8

Self-Attention: Letting Words Talk to Each Other

How a model figures out which other words matter for each word.

Start

Lesson 9

From Counting to Neural Networks

Build the simplest possible language model, then see why it falls short.

Start

Lesson 16

Fine-Tuning Intuition (LoRA)

Adapt a pretrained model to a new task without retraining everything.

Start

Lesson 17

From Completion to Chat: Instruction Tuning

Why a raw next-token predictor doesn't behave like an assistant, and the fine-tuning step that changes that.

Start

Lesson 18

Aligning With Human Feedback: RLHF & DPO

Turning "which response do people actually prefer" into a real training signal.

Start

Lesson 19

Capstone: From GPT-2 to Modern LLMs

See how the pieces you've learned scale up to real-world models.

Start