0.3How to use this site (and a map of everything)
A quick tour of how every lesson is built, the tools that help you learn, the learning paths, and a clickable map of all 67 lessons.
What this guide is
LearnAI is a field guide that takes you from “what is a model?” to how frontier language models, image generators and multimodal systems actually work. It has 67 lessons in 10 parts. Each lesson takes roughly 10 to 15 minutes, including the time you spend playing with its demo. You don’t need to read everything, and you don’t need to read in order, but each part builds on the ones before it.
The guide assumes no background. Where math helps, it is introduced gently and kept in optional boxes, so you can follow the story without it and come back for depth later.
Think of the site as a science museum. Each lesson is one exhibit: a placard with the main idea (the TL;DR), a hands-on machine you can play with (the demo), and a door marked “for the curious” leading to a back room with the engineering drawings (the Math Corner).
The learning paths are guided tours of different lengths. The glossary tooltips are the docent you can tap on the shoulder at any moment, and the progress map is the floor plan where you tick off the rooms you have visited.
The anatomy of a lesson
Every lesson follows the same template, so you always know where to look:
- TL;DR. Two or three sentences with the key idea. If you only have one minute, read this.
- Opening and analogy. Why the topic matters, and an everyday comparison that maps each piece of the idea to something familiar.
- Intuition and demo. The heart of the lesson. Demos are marked Interactive; the caption under each one tells you what to try. Playing with them is the fastest way to build intuition, so don’t skip them.
- Math Corner. A collapsible box with the real equations and a worked example using small numbers. It is optional: the rest of the lesson makes sense without it.
- In code. A short snippet, usually Python or PyTorch, showing the idea in practice.
- Misconceptions. Common myths, each followed by the correction.
- Quiz. Three to five questions that test understanding rather than memory. Each answer reveals an explanation, and your score is saved.
- Further reading. Hand-picked papers, articles, videos and docs if you want to go deeper.
You will also see callout boxes: key points to remember, notes, warnings about common traps, and deep dives for extra detail.
Tools that help you learn
Glossary tooltips. Terms with a dotted underline, like large language modelLarge language model (LLM)A very large neural network, usually a Transformer, trained to predict the next token of text. Chat assistants are post-trained LLMs. or gradient descentGradient descentRepeatedly nudging the parameters a small step opposite the gradient, so the loss goes downhill., show a short definition when you hover over them or focus them with the keyboard. Clicking takes you to the full glossary, which lists every term and the lesson that explains it.
Search. Press ⌘K (Ctrl+K on Windows and Linux) or / anywhere to open search. It covers lesson titles, descriptions, lesson text and the glossary. Use the arrow keys and Enter to jump to a result.
Progress tracking. At the top of each lesson there is a Mark lesson complete button. Completed lessons are ticked in the sidebar and filled in on the map below. Quiz scores are saved too. All of this is stored only in your browser’s local storage: there are no accounts and nothing is sent anywhere. The flip side is that clearing your browser data or switching devices starts you fresh.
Dark mode. The moon/sun button in the header switches themes, and every demo follows along.
Pick a path
Not everyone needs every lesson. The learning paths page offers three routes:
- Just curious (about an hour, no math or code). The big picture: what LLMs are, how they turn text into predictions, how they become assistants, and where they fail.
- Engineer (about six hours). Enough depth to build with LLMs and reason about them: the Transformer end to end, training and post-training, inference efficiency, and practical retrieval, agents and fine-tuning.
- Full deep dive (everything, in order). Every lesson from first principles to frontier open models, multimodal systems and diffusion, with the Math Corners.
If you are unsure, start with the next lesson, Functions & learning from data, and keep going in order.
The map of everything
Here is the whole curriculum as a transit map. Each colored line is a part; each station is a lesson. The trunk on the left connects the parts in the recommended order.
- Part 0: Orientation0/3
- Part 1: Foundations0/8
- Part 2: How Language Models Work0/10
- Part 3: Training LLMs0/10
- Part 4: Efficiency & Inference0/7
- Part 5: Open-Weight Model Deep Dives0/6
- Part 6: Using LLMs in Practice0/7
- Part 7: Multimodal Models0/5
- Part 8: Image & Video Generation0/7
- Part 9: Safety, Limits & Understanding0/4
Filled stations are lessons you marked complete. That record lives only in this browser’s local storage, so it is private and does not follow you to another device.
A quick tour of the lines:
- Parts 0–1, Orientation and Foundations. The vocabulary and the core math: functions, vectors, matrices, probability, gradient descent, neural networks and backprop.
- Part 2, How language models work. Tokens, embeddings, attention and the full Transformer, ending with how text is sampled.
- Parts 3–4, Training and Inference. How LLMs are trained and post-trained into assistants and reasoners, and how they are made fast and cheap to run.
- Part 5, Open-weight models. Deep dives into DeepSeek, Kimi, Qwen and others, and how they differ.
- Parts 6–9. Using LLMs in practice, multimodal models, image and video generation, and safety and interpretability.
MATH CORNER · optionalNotation used in this guide
You don’t need any of this to follow the lessons, but when a Math Corner opens, these are the conventions.
Numbers, vectors, matrices. Plain italic letters are single numbers (scalars): , , . Bold lowercase letters are vectors, which are lists of numbers: . Sometimes we draw an arrow instead: . Bold capitals are matrices, grids of numbers: . A subscript picks out one entry: is the second entry of , and is the entry in row , column .
Parameters and training. (theta) stands for all the trainable parameters of a model bundled together, and is the model’s output for input . is the loss. (eta) is the learning rate, and (nabla L) is the gradient. One step of gradient descent reads , where means “replace with”.
Sums and products. means , and is the same with multiplication. Dot product: , also written .
Probability. is “the probability of given ”. Language models compute . means the natural logarithm unless stated otherwise.
Softmax turns a list of scores into probabilities:
Worked example. For scores : , , , total .
| 1 | 2 | 7.39 | 0.665 |
| 2 | 1 | 2.72 | 0.245 |
| 3 | 0 | 1.00 | 0.090 |
The outputs are positive and sum to 1. You will meet softmax properly in Probability, softmax & cross-entropy.
In code
The same notation, in the language most code snippets on this site use (Python with NumPy):
import numpy as np
x = np.array([1.0, 2.0, 3.0]) # a vector x
W = np.array([[1, 0, 2],
[0, 1, 1]]) # a 2x3 matrix W
print(W @ x) # matrix times vector -> [7. 5.]
print(x @ x) # dot product x.x -> 14.0
z = np.array([2.0, 1.0, 0.0]) # scores (logits)
p = np.exp(z) / np.exp(z).sum() # softmax
print(p.round(3)) # [0.665 0.245 0.09 ]
theta, eta, grad = 0.5, 0.1, 2.0
theta = theta - eta * grad # one gradient-descent step: 0.3
- “I have to read every lesson in order.” The order is recommended, not required. The learning paths skip whole sections, and every lesson links back to what it depends on.
- “I need to understand the Math Corners to get anything out of this.” They are optional depth. Every lesson is written to make sense with them closed.
- “My progress is saved to an account.” It lives only in this browser’s local storage. Another browser or device will not see it, and clearing site data erases it.
- “The demos are just decoration.” They are where most of the learning happens. Each one is designed around a specific insight; the caption tells you what to try.
Check your understanding
Q1.Where is your lesson progress stored?
Q2.You want the big picture of LLMs in about an hour, without math or code. What should you do?
Q3.In the notation used in this guide, what does θ ← θ − η∇L mean?
Further reading
- docsLearning paths — Three routes through the guide, from one hour to everything.
- docsGlossary — Every term defined in one place, with links to the lesson that explains it.
- docsReading list — Curated papers, blog posts and courses for going beyond this guide.
- bookMathematics for Machine Learning (Deisenroth, Faisal & Ong) — A free textbook if you want a fuller treatment of the notation and math used here.