LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Growing steadily, 1.1× faster than Natural Language Processing this week

7d +0.36% +381 stars in 7d
30d +1.5% +1,582 stars in 30d
90d Not tracked yet — first tracked 2026-08-26
Aug 26, 2026: 103,801 starsAug 27, 2026: 103,902 starsAug 28, 2026: 103,950 starsAug 29, 2026: 103,979 starsAug 30, 2026: 104,061 starsAug 31, 2026: 104,110 starsSep 1, 2026: 104,147 starsSep 2, 2026: 104,222 starsSep 3, 2026: 104,260 starsSep 5, 2026: 104,359 starsSep 6, 2026: 104,428 starsSep 7, 2026: 104,508 starsSep 8, 2026: 104,571 starsSep 9, 2026: 104,627 starsSep 10, 2026: 104,685 starsSep 11, 2026: 104,757 starsSep 12, 2026: 104,808 starsSep 13, 2026: 104,866 starsSep 14, 2026: 104,944 starsSep 15, 2026: 105,001 starsSep 16, 2026: 105,066 starsSep 17, 2026: 105,126 starsSep 18, 2026: 105,183 starsSep 19, 2026: 105,218 starsSep 20, 2026: 105,273 starsSep 21, 2026: 105,333 starsSep 22, 2026: 105,384 starsSep 23, 2026: 105,443 starsSep 24, 2026: 105,492 starsSep 25, 2026: 105,551 starsSep 26, 2026: 105,600 starsSep 27, 2026: 105,648 starsSep 28, 2026: 105,701 starsSep 29, 2026: 105,747 starsSep 30, 2026: 105,792 starsOct 1, 2026: 105,841 starsOct 2, 2026: 105,882 starsOct 3, 2026: 105,921 starsOct 4, 2026: 105,980 starsOct 5, 2026: 106,048 starsOct 6, 2026: 106,126 starsOct 7, 2026: 106,169 starsOct 8, 2026: 106,215 starsOct 9, 2026: 106,267 starsOct 10, 2026: 106,311 starsOct 11, 2026: 106,350 starsOct 12, 2026: 106,417 starsOct 13, 2026: 106,472 starsOct 14, 2026: 106,510 starsOct 15, 2026: 106,580 starsOct 16, 2026: 106,648 stars 103,801105,225106,648 Aug 26Oct 16

103,801 → 106,648 stars since Aug 26

103,814 Stars 16,416 Forks 3 Open issues

Growing steadily this week. Coverage includes a Hacker News discussion (739 points) on Jan 27 and a Hacker News discussion (417 points) on Aug 20.

Generated Oct 16, 2026

Timeline

💬 2 Hacker News discussions

aiartificial-intelligenceattention-mechanismdeep-learningfinetuningfrom-scratchgenerative-aigptinstruction-tuninglanguage-modellarge-language-modelsllmmachine-learningnatural-language-processingpretrainingpythonpytorchtokenizertransformers