Sign inGet started
Repository · GitHub

raiyanyahya/how-to-train-your-gpt

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

Ownerraiyanyahya
License (as declared)MIT
Stars3,666
Forks448
Main languageJupyter Notebook
Created3 May 2026
Last updated at source30 August 2026
jupyter notebookattention-mechanismdeep-learningeducationalfrom-scratchgptlanguage-modelllamallmmachine-learningnatural-language-processingpythonpytorchtokenisationtransformerstutorial
Embed this entry
<iframe src="https://silytics.si/embed/item/75c5bdb3-4577-4542-a518-f1c793c49b88" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Silytics shows public metadata from GitHub and links to the original. Information may be incomplete or out of date. Last refreshed 15 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.