01
Micro-autodiff
finite diff match
Reverse-mode chain rule implemented from scratch for tanh(a*b + c).
[LAB_RUNG_0]
FOUNDATIONS
Rung 0 proves the base loop: represent data as arrays, compute a loss, get gradients, update parameters, then use JAX transformations to compile and batch that same idea.
// MEASURED_PROOF
01
finite diff match
Reverse-mode chain rule implemented from scratch for tanh(a*b + c).
02
0.429063 -> 0.192692 loss
A small MLP fits a noisy sine curve with explicit SGD over a parameter pytree.
03
218.26x CPU speedup
The jitted fixed-shape training step is benchmarked after excluding compile time.
// FILE_MAP