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
BiraIgnacio#
Nice work and thanks for sharing it!

Now, I ask, have LLMs ben demystified to you? :D
I am still impressed how much (for the most part) trivial statistics and a lot of compute can do.

kaipereira#
This is so cool! I'd love to see a write-up on how made it, and what you referenced because designing neural networks always feel like a maze ;)
ankitsanghi#
Love it! I think it's important to understand how the tools we use (and will only increasingly use) work under the hood.
NyxVox#
Hm, I can actually try the training on my GPU. One of the things I want to try next. Maybe a bit more complex than a fish :)

Load more comments