News for hackers. Stuff that matters.
Re:LoRA Learns Less and Forgets Less by cheald on Friday May 17, 2024 @01:25PM (#40392242)
It's worse than that, because lora requires two matrices per layer. At full rank, you have an additional NxN parameters to learn versus full finetuning, where N is min(input_features, output_features).

For example, tuning a layer of 128 in x 256 out is 32k params. Learning a full-rank lora for that layer would be two matrices of 128x128 and 128x256 = 48k params.

Re:LoRA Learns Less and Forgets Less by buildbot on Friday May 17, 2024 @03:18PM (#40393316)
Yeah, exactly. Though the 48k param lora might be as good as a 48k param layer of higher rank, I haven't looked into that case really.