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
- Scalable training needs reproducible transitions between code, data, devices and checkpoints.
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
Links to the original source and the Web Archive open in a new tab.