Interactive
The Labs
Step through one mechanism at a time, on an example small enough to check by hand. A lab is usually worth more than the chapter it belongs to, which is why there are 5 of them.
π¬
Backprop Lab
Forward, backward, then gradients checked numerically.
π¬
Tokenizer Lab
Build a BPE vocabulary merge by merge.
π¬
Attention Lab
Seven attention mechanisms on one worked example.
π¬
Sampling Lab
Temperature, top-k and top-p on the same row.
π¬
Quantization Lab
INT8 error cell by cell, and what one outlier costs.