Skip to content
LearnAI

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.

⏱ 10 minBeginner

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.

ANALOGY· A museum with an audio guide

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:

  1. TL;DR. Two or three sentences with the key idea. If you only have one minute, read this.
  2. Opening and analogy. Why the topic matters, and an everyday comparison that maps each piece of the idea to something familiar.
  3. 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.
  4. 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.
  5. In code. A short snippet, usually Python or PyTorch, showing the idea in practice.
  6. Misconceptions. Common myths, each followed by the correction.
  7. Quiz. Three to five questions that test understanding rather than memory. Each answer reveals an explanation, and your score is saved.
  8. 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.

INTERACTIVEThe curriculum as a transit map
10 lines, 67 stations. Click a station to see where it goes.0/67 completed in this browser
  1. Part 0: Orientation0/3
  2. Part 1: Foundations0/8
  3. Part 2: How Language Models Work0/10
  4. Part 3: Training LLMs0/10
  5. Part 4: Efficiency & Inference0/7
  6. Part 5: Open-Weight Model Deep Dives0/6
  7. Part 6: Using LLMs in Practice0/7
  8. Part 7: Multimodal Models0/5
  9. Part 8: Image & Video Generation0/7
  10. Part 9: Safety, Limits & Understanding0/4
Part 0 · OrientationLesson 0.3you are here
How to use this site (and a map of everything)
Open lesson →

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.

Click a station to see the lesson title and open it. Filled stations are lessons you have marked complete in this browser; the star is where you are now.

A quick tour of the lines:

  1. Parts 0–1, Orientation and Foundations. The vocabulary and the core math: functions, vectors, matrices, probability, gradient descent, neural networks and backprop.
  2. Part 2, How language models work. Tokens, embeddings, attention and the full Transformer, ending with how text is sampled.
  3. 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.
  4. Part 5, Open-weight models. Deep dives into DeepSeek, Kimi, Qwen and others, and how they differ.
  5. 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): xx, yy, ww. Bold lowercase letters are vectors, which are lists of numbers: x=(x1,x2,x3)\mathbf{x} = (x_1, x_2, x_3). Sometimes we draw an arrow instead: v⃗\vec{v}. Bold capitals are matrices, grids of numbers: W\mathbf{W}. A subscript picks out one entry: x2x_2 is the second entry of x\mathbf{x}, and WijW_{ij} is the entry in row ii, column jj.

Parameters and training. θ\theta (theta) stands for all the trainable parameters of a model bundled together, and fθ(x)f_\theta(\mathbf{x}) is the model’s output for input x\mathbf{x}. L(θ)L(\theta) is the loss. η\eta (eta) is the learning rate, and ∇L\nabla L (nabla L) is the gradient. One step of gradient descent reads θ←θ−η∇L(θ)\theta \leftarrow \theta - \eta \nabla L(\theta), where ←\leftarrow means “replace with”.

Sums and products. ∑i=1nxi\sum_{i=1}^{n} x_i means x1+x2+⋯+xnx_1 + x_2 + \dots + x_n, and ∏\prod is the same with multiplication. Dot product: a⋅b=∑iaibi\mathbf{a}\cdot\mathbf{b} = \sum_i a_i b_i, also written a⊤b\mathbf{a}^\top \mathbf{b}.

Probability. P(y∣x)P(y \mid x) is “the probability of yy given xx”. Language models compute P(next token∣previous tokens)P(\text{next token} \mid \text{previous tokens}). log⁡\log means the natural logarithm unless stated otherwise.

Softmax turns a list of scores z1,…,zKz_1, \dots, z_K into probabilities:

softmax⁡(z)i=ezi∑j=1Kezj.\operatorname{softmax}(\mathbf{z})_i = \frac{e^{z_i}}{\sum_{j=1}^{K} e^{z_j}} .

Worked example. For scores z=(2,1,0)\mathbf{z} = (2, 1, 0): e2≈7.39e^2 \approx 7.39, e1≈2.72e^1 \approx 2.72, e0=1e^0 = 1, total ≈11.11\approx 11.11.

iiziz_iezie^{z_i}softmax⁡(z)i\operatorname{softmax}(\mathbf{z})_i
127.390.665
212.720.245
301.000.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
COMMON MISCONCEPTIONS
  • “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

0/3 answered
  1. Q1.Where is your lesson progress stored?

  2. Q2.You want the big picture of LLMs in about an hour, without math or code. What should you do?

  3. Q3.In the notation used in this guide, what does θ ← θ − η∇L mean?

Further reading

Progress is saved in this browser only.
Type to search across all lessons and glossary terms.