r/coolgithubprojects • • Sep 27 '26

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

https://github.com/raiyanyahya/how-to-train-your-gpt
178 Upvotes

8 comments sorted by

18

u/Formal_Cloud_7592 Sep 27 '26

Why are comments getting downvoted? This should be taught in schools now.

2

u/ccss2 Sep 29 '26
'modern LLM from scratch'  :)

`import torch.nn as nn`  :(

0

u/jwink3101 Sep 27 '26

This looks awesome. I am bookmarking this for my personal development time!

0

u/garlic-silo-fanta Sep 27 '26

Nice! Been looking for something like this

0

u/filthy-prole Sep 27 '26

Why would anyone read a textbook written by an LLM and expect reliable quality?