aa1143 / NamiGPT
git clone https://github.com/aa1143/NamiGPT.git
A Chinese-language tutorial that builds GPT-2 from scratch in PyTorch, step by step, and loads OpenAI's official weights for inference.
Why you might care
Aimed at beginners who know basic Python and linear algebra, it walks through tokenization, attention, and text generation using a three-word example, with runnable scripts per chapter. It avoids built-in Transformer modules, keeps the model code under 200 lines, and is checked against HuggingFace outputs.
+73
stars, 24h · #578
+117
stars, 7 days · #2,466
+117
stars, 30 days · #7,512
117
★ total · +117% this week
8
forks · 0 open issues
Star history (as recorded here)
LanguagePython
LicenseMIT
Created2026-10-28 (1d ago)
Last push1d ago
Watchers0
OwnerUser
GitHub topics
Links
- GitHub: github.com/aa1143/NamiGPT
- Homepage: https://namiai.tech/articles/
- Releases · Issues · Hacker News mentions
README
Loading README…
Blurb generated by claude-haiku-5-5 1d ago. Star deltas marked ~ are extrapolated from partial history.