Re:LoRA: Low-Rank Adaptation of Large Language Models
by arugulum on Friday March 24, 2023 @05:13PM
(#35295610)
Right, it's mathematically easy (again, up to floating point issues) to recover the weights as needed, but in terms of distribution/serving I'm guessing the plan is to have the original weights and carry around the LoRA weights and merge as necessary.
(Also, I'm assuming you're the first author of LoRA.)
If one is careful with floating point issues, it's straightforward to unmerge the weights.
W_0 = W_1 - BA
Yes, prompt-based methods don't involve swapping weights.