Finished this one? 0 / 61 Labs done
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Labs
- Gradient Descent: The DescentDon't read about gradient descent — play it. Roll a ball into the valley of a loss landscape by hand and waste steps, then let the algorithm read the slope and step downhill on its own. Crank the learning rate until it overshoots and explodes, dial it down until it crawls, then switch on momentum to escape a local minimum. Four acts — descend it, follow the gradient, tune the learning rate, escape the trap.Read →
- The Sliding Stencil: ConvolutionDon't read about convolution — slide the stencil yourself. A 3×3 kernel glides over an image and, at each spot, multiplies the pixels underneath by its weights and sums them into one output pixel. Swap kernels — identity, edge-detect, blur, sharpen, emboss, Sobel — and watch the same image become edges, or blur, or sharpened. The single operation inside every CNN, made playable, with theory, a runnable challenge and a quiz.Read →
- Out of the Static: DiffusionDon't read about diffusion — watch the picture climb out of the static. Diffusion models generate by starting from pure random noise and removing a little of it, step by step, until a shape appears. Step through the reverse process and watch a heart emerge from random pixels as the noise level drops to zero. The idea behind Stable Diffusion and DALL·E, made playable, with theory and a quiz.Read →
- The Bend: Activation FunctionsDon't read about activations — bend the curve yourself. A neural network is just linear algebra until you add a non-linear activation on each neuron. Plot sigmoid, tanh, ReLU, leaky ReLU, and GELU with their derivatives, and slide a point to read the gradient — watching sigmoid's slope vanish at the edges while ReLU's stays a flat 1. The reason deep nets learn, made playable, with theory and a quiz.Read →
- The Line-Drawer: PerceptronDon't read about the perceptron — watch it draw the line. The simplest neural network, one neuron from 1958, learns to separate two classes of points by nudging a straight boundary every time it gets one wrong. Step through the updates and watch the line swing from a bad guess into a perfect split — then meet the XOR wall that a single line can't cross. The seed of every neural network, made playable, with theory, a runnable challenge and a quiz.Read →
- The Taste Trainer: RLHF & DPODon't read about RLHF — do the aligning. A base model can write but doesn't know what people prefer, so you teach it taste: pick which of two answers is better, over and over, and watch a reward model learn your preferences. Then turn up the optimization pressure and watch the policy chase that reward — and reward-hack it into sycophancy — while a KL penalty pulls it back. Finally see how DPO skips the whole reward model. Three acts — teach the taste, chase and hack the reward, the DPO shortcut.Read →