litgpt icon indicating copy to clipboard operation
litgpt copied to clipboard

LoRA+

Open rasbt opened this issue 1 year ago • 4 comments

Another interesting improvement idea for our LoRA implementation:

LoRA+: Efficient Low Rank Adaptation of Large Model, https://arxiv.org/abs/2402.12354

In short, they propose different learning rates for matrices A and B to enhance feature learning, resulting in 1-2% performance gains and up to 2X faster finetuning without extra computational cost.

Of course, we would have to independently confirm before we add a feature like this.

rasbt avatar Feb 28 '24 02:02 rasbt

That sounds intriguing @rasbt! I'm definitely interested in contributing to LoRA+ approach. Please let me know if there's any way I can get involved and contribute.

srsawant34 avatar Feb 28 '24 06:02 srsawant34

@rasbt , I'm one of the authors, happy to help with any questions!

soufiane001 avatar Mar 16 '24 23:03 soufiane001

Thanks for the interest @srsawant34 ! Sorry, we had lot of ongoing PRs and issues in the last 2 weeks for a bit of a LitGPT redesign and must have missed this. I do have a prototype implementation that I wanted to share in the next 1-2 weeks along with a tutorial.

In the meantime, if you want to open a PR, that'd be fine too, because for me I was more focused on the experiments for now and wanted to use this as part of a "How-to modify LitGPT code and run experiments" tutorial. But this shouldn't block anything. New features and contributions are always very welcome!

Also thanks for the kind offer @soufiane001 . I'll reach out in case I have any questions.

rasbt avatar Mar 17 '24 00:03 rasbt

Awesome @rasbt! Meanwhile, may I kindly request you to share any resources or insights you may have regarding LoRa+ in the context of implementation?

srsawant34 avatar Mar 20 '24 05:03 srsawant34