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
rclkrtrzckr1 reply#
I could fork it and create TrumpLM. Not a big leap, I suppose.
search_facility2 replies#
probably 8M params are too much even :)
danparsonson#
As long as you use the best parameters then it doesn't matter
wiseowise#
Grab her by the pointer.
amelius1 reply#
> A 9M model can't conditionally follow instructions

How many parameters would you need for that?

armanified1 reply#
My initial idea was to train a navigation decision model with 25M parameters for a Raspberry Pi, which, in testing, was getting about 60% of tool calls correct. IMO, it seems like around 20M parameters would be a good size for following some narrow & basic language instructions.
amelius#
Ok. This makes me wonder about a broader question. Is there a scientific approach showing a pyramid of cognitive functions, and how many parameters are (minimally) required for each layer in this pyramid?
EmilioOldenziel#
Building it yourself is always the best test if you really understand how it works.
ananandreas#
Great and simple way to bridge the gap between LLMs and users coming in to the field!

Load more comments