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.
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.
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