Gradient Decent

A language model where every matrix multiply is done by blending colours on a 2D canvas. The weights are pictures, the multiply is the multiply blend mode, the sums are images being squashed, and the activation function is a colour gradient. No WebGPU, no WebGL, no WASM.

The activation function (SiLU), stored as a gradient. Red is positive, green is negative.

Every layer's weights multiplied by its current input. Red and green are the two signs.