Merging LoRA adapters
Summary
PEFT adds methods for combining several trained adapters. This allows specialisations to be mixed without training a complete model from scratch each time. PEFT supports several merge methods for LoRA adapters.
Ideas
- Adapter merging treats learned changes as building blocks that can be combined.
- Weighting several adapters is an optimisation problem in itself.
Insights
- Merged adapters can interfere with each other, so the combination has to be evaluated in its own right.
Facts
- Combinations can be created without a new complete fine-tuning run.
Critique
- Merged abilities can interfere with each other or reinforce each other unexpectedly.
Recommendations
- Evaluate each adapter on its own and the mixture with conflict and safety tests.
References
Read the original article on Hugging Face
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.