How AI Works
How a language model works, for someone with no background: tokens, a single neuron, learning by nudging weights, meaning as position, attention, training, and what these models cannot do. Every number comes from a real model or a paper, and at the end GPT-2 runs in your browser while you type to it.
Stack Astro, TypeScript, three.js on WebGPU with WebGL2 fallback, GPT-2 in the browser with transformers.js and ONNX Runtime Web, Web Audio, Cloudflare