raiyanyahya/how-to-train-your-gpt

Build a modern LLM from scratch. Every line commented. Explained like we are five.

by Raiyan Yahya Jupyter Notebook MIT licence 505 forks Created May 2026 View on GitHub

Stars
4,179
72% of raiyanyahya's stars
Rank
#15,807
of 851,992 repos, top 2%
In Jupyter Notebook
#362
of 21,671 repos, top 2%

Among 851,992 repos

Compare with

4k–6.3k stars: 6,646 repos, including how-to-train-your-gpt

Stars along the bottom, and repos in each band on a log scale

Quick stats

Next rank
+1 star to reach #15,803
Next milestone
+3,041 stars to reach the top 1%
Popular
One of 66,572 repos with 1k+ stars

Stars counted Recounted daily Next count around