r/LargeLanguageModels • • Oct 21 '26

Built a 30M-parameter GPT-style language model from scratch

Hey everyone

I've been learning about Transformers and LLMs, so I built KERN,

a 30M parameter GPT-style language model in PyTorch,trained from scratch on TinyStories.

GitHub: https://github.com/OmarDawoud4/KERN

This is still a work in progress! I'd like to keep improving it by implementing other techniques .

I'd appreciate any feedback or suggestions .

9 Upvotes

3 comments sorted by

4

u/[deleted] Oct 21 '26

[removed] — view removed comment

1

u/MysteriousMajor760 Oct 21 '26 edited Oct 21 '26

Thanks! Yeah, studying courses sometimes makes things understandable, but there's always a fuzzy part. Implementing it from scratch is what really fills the gaps.

I ran it on a free Colab in like 4 hours.

Kern is just like the German word for kernel .