Large language models
Beginner to advanced. 4 parts, 14 steps. Free.
Attention
Weights are illustrative.
14steps in 4 parts

Part 1 of 4: The short version
Eight minutes, then an hour, then our own deck.
Steps 1 to 3 of 14
Watch
Step 1: Large Language Models explained briefly (opens in a new tab)
A short overview of how chatbots like ChatGPT actually work.
Watch
Step 2: [1hr Talk] Intro to Large Language Models (opens in a new tab)
What LLMs are, how they are trained, and where they are headed.
Read
Step 3: How large language models work
Our own deck: tokens, next-word prediction, and training, one slide at a time.
From our slide deck
How large language models work
From text to vectors
Splits and IDs are illustrative. ␣ stands for the leading space; each tokenizer marks it its own way.
Part 2 of 4: Inside the transformer
Embeddings, attention and memory, drawn out piece by piece.
Steps 4 to 8 of 14
Watch
Step 4: Transformers, the tech behind LLMs (opens in a new tab)
Chapter 5. Embeddings, next-token prediction, and how GPT turns words into vectors.
Watch
Step 5: Attention in transformers, step-by-step (opens in a new tab)
Chapter 6. Queries, keys, and values: the attention mechanism drawn out piece by piece.
Watch
Step 6: How might LLMs store facts (opens in a new tab)
Chapter 7. Inside the multilayer perceptrons where language models seem to keep knowledge.
Do
Step 7: Transformer Explainer (opens in a new tab)
Run a live GPT-2 in your browser and see every step of a transformer.
Read
Step 8: The Illustrated Transformer (opens in a new tab)
The classic illustrated walkthrough of attention and the transformer architecture.

Part 3 of 4: Training and use
From internet text to an assistant, and how to use one well.
Steps 9 to 10 of 14
Watch
Step 9: Deep Dive into LLMs like ChatGPT (opens in a new tab)
The full pipeline from internet data to pretraining, fine-tuning, and reinforcement learning.
Watch
Step 10: How I use LLMs (opens in a new tab)
A practical tour of using chatbots, tools, and AI assistants well in daily work.

Part 4 of 4: Build one
Code, line by line. Python and some calculus help.
Steps 11 to 14 of 14
Watch
Step 11: The spelled-out intro to neural networks and backpropagation: building micrograd (opens in a new tab)
Build a tiny autograd engine and understand how networks learn.
Watch
Step 12: Let’s build the GPT Tokenizer (opens in a new tab)
How text becomes tokens, and why tokenization explains many LLM quirks.
Watch
Step 13: Let’s build GPT: from scratch, in code, spelled out (opens in a new tab)
Code a working transformer language model line by line in PyTorch.
Take
Step 14: Hugging Face LLM Course (opens in a new tab)
Hands-on course on transformers, fine-tuning, and building with open models.
About this topic
Discover Large Language Models (LLMs) like GPT, BERT, and others that are transforming natural language processing. Learn how these models work and how they’re applied.
Our resources cover everything from the basics of LLMs to their real-world applications in chatbots, summarization, and beyond.
The steps go from an eight-minute overview to the transformer itself, then to how models are trained and used, and end with building a small GPT in code. Most of it is taught by 3Blue1Brown and Andrej Karpathy.








