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

armanified#
I haven't compared it with anything yet. Thanks for the suggestion; I'll look into these.
BrokenCogs3 replies#
Who cares how it compares, it's not a product it's a cool project
tantalor1 reply#
Even cool projects can learn from others. Maybe they missed something that could benefit the project, or made some interesting technical choice that gives a different result.

For the readers/learners, it's useful to understand the differences so we know what details matter, and which are just stylistic choices.
This isn't art; it's science & engineering.

BrokenCogs3 replies#
But it isn't the OP's responsibility to compare their project to all other projects. The GP could themselves perform the comparison and post their thoughts instead of asking an open ended question.

Continue this thread — 3 replies

layer8#
Microgpt isn’t a product either. Are you saying that differences between cool projects aren’t worth thinking and conversing about?
stronglikedan#
> Who cares how it compares

Well, the person who asked the question, for one. I'm sure they're not the only one. Best not to assume why people are asking though, so you can save time by not writing irrelevant comments.

thomasfl2 replies#
Is there some documentation for this? The code is probably the simplest (Not So) Large Language Model implementation possible, but it is not straight forward to understand for developers not familiar with multi-head attention, ReLU FFN, LayerNorm and learned positional embeddings.

This projects shares similarities with Minix. Minix is still used at universities as an educational tool for teaching operating system design. Minix is the operating system that taught Linus Torvalds how to design (monolithic) operating systems. Similarly having students adding capabilities to GuppyLM is a good way to learn LLM design.

achenatx1 reply#
give the code to an LLM and have a discussion about it.
dominotw3 replies#
does this work? there is no more need for writing high level docs?
bigmadshoe3 replies#
LLMs can tell you what the code does but not why the developer chose to do it that way.

Also, large codebases are harder to understand. But projects like these are simple to discuss with an LLM.

Continue this thread — 3 replies

sigmoid10#
There are so many blogs and tutorials about this stuff in particular, I wouldn't worry about it being outside the training data distribution for modern LLMs. If you have a scarce topic in some obscure language I'd be more careful when learning from LLMs.
arcanemachiner3 replies#
> does this work?

Absolutely. If you loaded this into an agentic coding harness with a decent model, I can practically guarantee it would be able to help you figure out what's going on.
> there is no more need for writing high level docs?
Absolutely not. That would be like exploring a cave without a flashlight, knowing that you could just feel your way around in the dark instead.
Code is not always self-documenting, and can often tell you how it was written, but not why.

Continue this thread — 3 replies

BorisMelnik#
I haven't heard minix in so long!
maverickxone#
have little to do with this, but i have to say your project are indeed pretty cool! Consider adding some more UI?
armanified#
Pretty neat! I'll definitely take a deeper look into this.
skramzy#
Neat!
devsteru#
Thanks for sharing

Load more comments