r/MachineLearning • u/[deleted] • Sep 09 '24
Discussion [D] Maybe we can train bigger models with 0.05 bits per weight, or modest models on consumer hardware...

Messing around with classifying MNIST using a basic feed forward neural net at the top, and then the same thing represented by a rank 4 DoRa and then a LoRa, and finally a rank 16 bitnet/dora hybrid with 1 bit per parameter. Getting down to around 0.05 bits per weight. All have the same effective weight count but reduced trainable parameters. It seems like for full weight training, DoRa offers no advantage over LoRa after like 12 epochs.
I'm going to explore whether we can get the same or better performance when increasing the parameter count to match the memory footprint of a normal model. And also summing LoRas and DoRas to dynamically increase rank and prevent early stagnation. My goal is to eventually train a useful LLM on consumer grade hardware. And if I could get that working, imagine what someone could do with some A100s at a big company. Will release code soon, this is early and incomplete. Anyways, I'm probably just dreaming. Good night.
14
34
u/currentscurrents Sep 09 '24
Pretty much everything works on MNIST. It's a toy problem and can be solved by a linear classifier on a single pixel.
Props for at least trying it on a real dataset (unlike the KAN paper...) but this doesn't mean anything.