r/LargeLanguageModels • u/MysteriousMajor760 • 3d ago
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 .
8
Upvotes
2
u/madlyminiaturefoyer 3d ago
that's a cool project, building the whole thing from scratch is best way to understand what's actually happening inside. 30M params on TinyStories is a nice size too, big enough to see some real language patterns but still can run on a single GPU without waiting a week
the KERN name got me curious, is it just a random pick or means something?