ML Refresher
Contents
ML Refresher
Mathematics, statistics & deep learning
Single-page edition
Download PDF
Contents
44 chapters · 6 appendices
Part I
Mathematics for Machine Learning
01
Mathematical Foundations
02
Trigonometry
03
Calculus
04
Linear Algebra
05
Vector Calculus
06
Probability Theory
07
Information Theory
08
Hypothesis Testing
Part II
Neural Network Fundamentals
09
Learning from Data
10
Automatic Differentiation
11
Activation Functions
12
Softmax & Cross-Entropy
13
Loss Functions & Divergences
14
Neural Networks from Scratch
15
Optimizers & Schedules
16
Normalization, Residuals & Precision
Part III
Transformers from Scratch
17
Tokenization & Embeddings
18
Language Modeling
19
Scaled Dot-Product Attention
20
Multi-Head Attention
21
Positional Encoding & RoPE
22
The Transformer Block
23
Training a GPT from Scratch
Part IV
Modern LLM Architecture
24
KV Cache & Grouped-Query Attention
25
Multi-Head Latent Attention
26
Online Softmax & FlashAttention
27
Mixture of Experts
28
Linear Attention & State-Space Models
29
Scaling Laws & Pretraining Recipes
Part V
Representation & Multimodal Learning
30
Contrastive & Metric Learning
31
Vision Transformers
32
Vision-Language Models
Part VI
Post-Training & Reinforcement Learning
33
Supervised Fine-Tuning & LoRA
34
Reinforcement Learning Foundations
35
Reward Models, PPO & RLHF
36
Direct Preference Optimization
37
GRPO & Verifiable Rewards
38
Distillation & Reasoning Models
Part VII
Inference & Systems
39
Decoding & Speculative Sampling
40
Quantization & Serving
41
Training at Scale
Part VIII
Agents
42
Tool Use & Agent Loops
43
Retrieval, Memory, Planning & Evaluation
44
Capstone: An LLM End to End
Appendices
A
Notation & Shapes
B
NumPy for Deep Learning
C
Matrix Calculus Cookbook
D
Solutions to Exercises
E
Formula Sheets
F
Bibliography