NanoGPT

An LLM built from scratch. Pure NumPy. No frameworks, just math. A real character-level transformer you can train and run.

Live Text Generation

Real trained transformer running in your browser. Type a prompt:

Click generate...

How It Works

Text → tokens → embeddings → 2 transformer layers (attention + MLP) → next-character probabilities. Full code in the GitHub repo.