A real GPT running in your browser. Port of Karpathy's pure-Python GPT to TypeScript. Train it, generate names, inspect attention heads, watch tokens flow.
✨ New to transformers? Take the animated tour — playful enough for kids, real math under the hood →Click any block to learn more. Train to see data flow.
Type a name and click Flow to watch tokens pass through each layer of the GPT. After the pipeline completes, the model generates a continuation.
| tinyGPT | GPT-4 | |
|---|---|---|
| Parameters | ~5,000 | ~1,800,000,000,000 |
| Training data | 200 names | The internet |
| Generates | Single names | Essays, code, poetry |
| Runs on | Your browser | Massive GPU clusters |
Same architecture — embeddings, multi-head attention, MLP, softmax. Just a few orders of magnitude smaller.
Built with Next.js 16 + React 19 + TypeScript + Tailwind v4 + Motion 12 + Recharts
Based on Karpathy's pure-Python GPT — the most atomic way to train a transformer