raiyanyahya / how-to-train-your-gpt
git clone https://github.com/raiyanyahya/how-to-train-your-gpt.git
Build a modern LLM from scratch. Every line commented. Explained like we are five.
+3
stars, 24h · #10,803
+15
stars, 7 days · #13,451
+~64
stars, 30 days · #13,227
4.2k
★ total · +0% this week
504
forks · 1 open issues
Star history (as recorded here)
LanguageJupyter Notebook
LicenseMIT
Created2026-05-03 (6mo ago)
Last push9d ago
OwnerUser
GitHub topics
attention-mechanismdeep-learningeducationalfrom-scratchgptlanguage-modelllamallmmachine-learningnatural-language-processingpythonpytorchtokenisationtransformerstutorial
Links
README
Loading README…