Lurker News
Built a ~9M param LLM from scratch to understand how they actually work. Vanilla transformer, 60K synthetic conversations, ~130 lines of PyTorch. Trains in 5 min on a free Colab T4. The fish thinks the meaning of life is food.

Fork it and swap the personality for your own character.

Comments (134) 83 threads

Earlier comments
kubrador#
how's it handle longer context or does it start hallucinating after like 2 sentences? curious what the ceiling is before the 9M params
bharat1010#
This is such a smart way to demystify LLMs. I really like that GuppyLM makes the whole pipeline feel approachable..great work
drincanngao1 reply#
I was going to suggest implementing RoPE to fix the context limit, but realized that would make it anatomically incorrect.
armanified#
I intentionally removed all optimizations to keep it vanilla.
fawabc#
how did you generate the synthetic data?

Load more comments