To read in order, follow a route: each one puts a few notes in sequence, so you finish one and go on to the next. Every note is also listed by topic in the sidebar, so you can step off at any point.
For hands-on work, try the experiments alongside the notes. The reading routes can help you choose a starting point, or begin with one small model. After a stretch of reading, the self-check questions show what stuck.
Start with the foundations
Each route below lists its notes in reading order. If vectors, losses, and gradients are still unfamiliar, start at the first note of the first route, linear models to neural networks. Pair your reading with the small PyTorch experiments.
01 · How it works · 4 tracks · 31 stops
01
How a model reads
Start from vectors and one layer, then put the Transformer together piece by piece.
9 stops02
How a model learns
How one training update happens, and what changes at scale.
8 stops03
How a model is taught
How demonstrations, preferences and rewards shape a model; RL is explained here once.
8 stops04
How we check it
What a score can tell you, and what it cannot.
6 stops02 · How it runs · 3 tracks · 25 stops
05
How a model runs
From one token to many requests: where prefill and decode get stuck, what batching, caching, quantization and speculative decoding save, and how many requests one GPU can take.
9 stops06
How the hardware computes
One request on CPUs, GPUs and memory: where the time goes, whether compute or bandwidth runs out first, and what crosses between GPUs.
8 stops07
Inside the runtime
Follow generation and training through the frameworks that run them.
8 stops03 · Using it · 4 tracks · 24 stops
08
Search & memory
Search, vector indexes and RAG, then how a model keeps memories.
6 stops09
Agents
Prompts, tools and agent patterns, and how to recover when things go wrong.
6 stops10
Multimodal
Start with image patches in ViT, see how CLIP matches pictures to text, then connect the image features to a language model. Read SigLIP for a different way to train on image–text pairs.
6 stops11
Perception & robots
From cameras and tracking to driving and robots that learn to act.
6 stops04 · Building it · 3 tracks · 22 stops
12
From formulas to code
Write the maths as code a test can check: shapes, gradients, masks and numerics.
9 stops13
An ML system in production
From data to a model to live results and what users send back; then serving, queues and failures.
8 stops14
System design
Requirements and budgets first, then a design you can defend.
5 stopsTo connect mathematics with implementation, begin with matrix gradients and training systems, then follow the one-question reading route into attention, multiple GPUs, inference, and NeMo RL.
Follow the question you have
Find the question closest to yours in the left column and read the route in the middle column. The right column lists the details worth watching as you read.
| What you want to understand | Reading route | What to inspect |
|---|---|---|
| FSDP, vLLM, and SGLang are familiar names, but their roles are unclear | Training stacks → Inference engines | Who handles training state, request scheduling, and kernels |
| How does a model become a complete product? | ML system map → Data to model → Serving and feedback | Inputs, outputs, versions, failures, and team handoffs |
| The equations make sense, but training code does not | Tensors and storage → Autograd → Training loop | Whether parameters update and validation loss uses the right denominator |
| What to prepare before fine-tuning | Pretraining data pipeline → SFT → LoRA / QLoRA | Labels, loss masks, data splits, and memory use |
| New architecture names are hard to tell apart | Component reading map → Model reports | Changes to sequences, caches, experts, or network depth |
| The model accepts an image, but does it use it? | Image–text matching → Visual features in an LLM → VLM training and evaluation | Whether the answer follows a changed fact in the image |
| RL equations make sense, but experiments are unstable | Value estimates and GAE → PPO clipping → Debugging experiments | What changed in rewards, advantages, and update size |
| Retrieval scores improve, but answers do not | Dual encoders → Hybrid retrieval and reranking → Metric robustness | Which examples improve when the candidate pool is held fixed |
| What changes when I replace an embedding model? | Qwen Embedding and BGE-M3 → Vector indexes | Input and pooling compatibility, and when to rebuild the index |
nvidia-smi shows 100%, yet generation is slow |
AI infrastructure → GPU architecture → Performance: roofline and MFU | Operations per byte moved from memory, and whether bandwidth or compute is the limit |
| How do cars and robots get from pixels to actions? | Perception and geometry → Autonomous driving → Robot learning | What each step hands to the next |
| What do “world model” and “self-improvement” actually mean? | Frontier → World models → Recursive self-improvement | Which of several things the word refers to, and how far the evidence goes |
Practice sits next to the material: coding exercises are on the From formulas to code track and system design on the System design track; the questions at the end of each note are collected in self-check questions.
What should I know before focusing on one subject?
| Subject | Enough background to get started | What can wait on a first pass |
|---|---|---|
| Multimodal models | Vector similarity, attention, cross-entropy | Distributed training and full RL derivations |
| SFT / preference learning | Next-token loss, gradients, data splits | Pretraining from scratch and MoE deployment |
| RL / post-training | Expectations, log-probabilities, basic differentiation | Robotics; return to continuous control when needed |
| Inference / deployment | Decoder forward pass, tensor shapes, KV cache | Reward models and preference optimization |
| Retrieval / RAG / agents | Embeddings, retrieval metrics, basic API calls | Every model family and training recipe |
These are the prerequisites for reading. For example, you can build RAG before studying SAC, and study training before service scheduling.
All chapters
The complete catalog matches the All notes drawer: the tracks of the four areas, then the two shelves, Go deeper (model reports, architecture variants, classic RL and Tech history) and Still moving. Click a title for its overview, or expand a chapter to find its articles. Every note that is not a stop on a track is here, at the same address as before.
How a model reads
Start from vectors and one layer, then put the Transformer together piece by piece.
Foundations
20 notesFollow text into a model, then connect attention, FFNs, and the full Transformer.
Maths1
Sequences & tokens7
Start with functions, vectors, and tokens; use RNNs and Seq2Seq to motivate attention.
The whole Transformer12
With tokens and vectors in place, examine how positions exchange information and form a complete network.
How a model learns
How one training update happens, and what changes at scale.
Pretraining & training mechanics
19 notesConnect the objective, data, and one batch to precision, memory, and distributed execution.
Training basics5
Start with a linear layer's gradients, then study generalization, activations, initialization, and optimizer updates.
Pretraining5
Establish the prediction target, then follow the data into a batch and a parameter update.
Many GPUs4
After one training step, separate numeric formats, stored state, recomputation, and multi-device partitioning.
How a model is taught
How demonstrations, preferences and rewards shape a model; RL is explained here once.
Post-training
29 notesSeparate demonstrations, preferences, and rewards before choosing fine-tuning, distillation, or RL.
Fine-tuning & distillation7
Separate the source of supervision from trainable parameters: LoRA is not a new signal, and distillation is not only model compression.
Rewards & preferences5
After demonstration learning, distinguish preference pairs, reward models, and verifiers.
Methods after PPO5
Inside RLHF9
Experiments & trade-offs3
Return to experiments: align rollout and training, compare a shared base, and check regressions.
How we check it
What a score can tell you, and what it cannot.
Evaluation
15 notesMake comparisons meaningful, then examine metrics, slices, uncertainty, and model judges.
Evaluation basics7
How a model runs
From one token to many requests: where prefill and decode get stuck, what batching, caching, quantization and speculative decoding save, and how many requests one GPU can take.
Generation, context & inference
18 notesSeparate token selection, cached state, memory traffic, and the number of attention pairs.
Inference engines8
Once decoder prediction is clear, separate sampling choices from prefill and decode computation.
Quantization6
Long context & attention4
Compare changes to positions, memory traffic, cache layout, state compression, and selected positions.
How the hardware computes
One request on CPUs, GPUs and memory: where the time goes, whether compute or bandwidth runs out first, and what crosses between GPUs.
AI infrastructure
10 notesThe whole chain behind one request: wafers, chips, GPUs and CUDA, up to frameworks, clusters and products.
Inside the runtime
Follow generation and training through the frameworks that run them.
Inside the runtime
9 notesStart with how computation and tasks run, then trace scheduling, updates and stability through vLLM, SGLang and NeMo RL.
ML / LLM runtime walkthroughs5
Start with computation and task execution, then connect multi-GPU training, clusters, and RL data flow.
Source walkthroughs: generation & training4
Connect prefill, decode, and learning objectives to scheduling, updates, and stability in vLLM, SGLang, and NeMo RL.
Search & memory
Search, vector indexes and RAG, then how a model keeps memories.
Data, memory & retrieval
12 notesLogs are not intent, and retrieval is not an answer. Follow the signal through memory and search.
Agents
Prompts, tools and agent patterns, and how to recover when things go wrong.
Agents
9 notesHow models choose tools, maintain state, recover from failures, and decide when to stop.
AI systems & experience
7 notesFrom one request to repeated use: diagnose failures, recover safely, involve people, and measure whether the system helps.
Multimodal
Start with image patches in ViT, see how CLIP matches pictures to text, then connect the image features to a language model. Read SigLIP for a different way to train on image–text pairs.
Multimodal learning
12 notesFollow images through ViT, CLIP alignment, and connectors into language models.
Perception & robots
From cameras and tracking to driving and robots that learn to act.
Perception, robots & driving
14 notesFrom pixels to actions: camera geometry and tracking, bird's-eye view and planning, imitation learning and VLAs.
From formulas to code
Write the maths as code a test can check: shapes, gradients, masks and numerics.
From formulas to code
10 notesConnect explanations to implementations through shapes, gradients, masks, and numerical checks.
An ML system in production
From data to a model to live results and what users send back; then serving, queues and failures.
An ML system end to end
3 notesFollow data, training, and live requests through modules, contracts, tradeoffs, and team handoffs.
From data to users3
Start with three timelines, then examine data, training, indexes, requests, and feedback, including inputs, outputs, and ownership.
Production ML & recommendation
3 notesFollow a recommendation request into data timing, experiment slices, and releases.
AI Infra & distributed systems
2 notesTrace serving and training, then calculate cache, queue, capacity, and failure budgets.
AI Infra & distributed systems2
System design
Requirements and budgets first, then a design you can defend.
System design
5 notesWork through Feed, RAG, and memory designs with explicit requirements and budgets.
Go deeper
Model reports, architecture variants, classic RL and Tech history, for when a stop sends you there.
Model reports
9 notesModel reports9
- Model family deep dives: beyond the parameter table
- Reading a model report
- Reading GPT: how does a model learn a new task?
- Reading Llama: from one block to training and inference trade-offs
- Qwen 1–2.5: separating architecture changes from training changes
- Qwen deep dive: one family across scales and reasoning modes
- DeepSeek deep dive: architecture, systems, and reasoning training together
- DeepSeek-V4: compression & training
- Gemma deep dive: model design from deployment constraints
Architecture variants
18 notesRead model reports by asking what changed, why it changed, and what it costs.
Gates & memory5
Compare changes to attention outputs, historical state, local lookup, and network depth before interpreting training results.
MoE: experts & routing7
Looped: depth & sharing6
Classic RL
26 notesUnderstand returns, values, and policies in small environments before comparing algorithms.
Overview2
01 · Foundations6
02 · Core algorithms7
Tech history
2 notesTech history2
Still moving
Fast-moving directions that have not settled: pin down what is meant, then see how far the evidence goes.
World models
8 notesMoving targets such as world models and recursive self-improvement: ask what is meant, then check the evidence.
Self-improvement
5 notesRecursive self-improvement5
Test-time compute
5 notesAgentic RL
4 notesInterpretability
5 notesDiffusion LMs
7 notes
Earlier additions (October 2026)
- Frontier watch, a new fourth area. The world models and recursive self-improvement series, along with test-time compute, agent RL, and interpretability, have all been reviewed.
- AI infrastructure (from chips, GPUs, and CUDA up to frameworks and clusters) and Perception, robots, and driving: two new blocks.
- Three more series, added 2026-10-16: scaling laws and hyperparameters, on choosing model size, data and learning rate before a run; diffusion language models in Frontier watch; and quantization in AI infrastructure.
- Three new deep RL notes: which model to learn, combining planning and learning, and off-policy evaluation estimators.
These series completed their first primary-source check on 2026-10-21, when the draft labels were removed. Further revisions are recorded in the individual notes.
Reading and updates
For how these techniques developed, see the Tech history. To check what you have understood, use the self-check questions: the questions in the notes, by track, with a reference answer where there is one.
Use the language switch at the top right to open the same article in Chinese or English. Chinese pages retain useful English terminology; English pages contain the full examples, derivations, and code.
Search at the top or press / to look up a concept. “My reading” keeps your saved and recently read articles in this browser. Progress is tracked in the coverage and remaining-work list.