nanoGPT
Study a compact GPT training implementation preserved for learning.
Learning · Documentation reviewed 2026-11-10. Not independently tested.
When it helps
Reading a small model definition and training loop to understand the mechanics of GPT training.
What to consider
The author marks nanoGPT as deprecated and points new projects toward nanochat. Treat this as historical learning material; training still needs compute.
Getting started
Read the deprecation notice first, then use the small character-level example if studying the original implementation.
Repository evidence
Stars: 65,018 · License: MIT
Last code push: 2025-11-12
Statistics retrieved: 2026-11-23T00:42:59+00:00
Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.
Adding model calls?
Plan the tokens, retries, and fallback costs before connecting your tools.