[feat] add load_lora_adapter()
for compatible models by sayakpaul · Pull Request #9712 · huggingface/diffusers (original) (raw)
What does this PR do?
Similar to load_attn_procs()
, we want to have something similar for loading LoRAs into models, as the LoRA loading logic is generic.
This way, we can reduce the LoC and have better maintainability. I am not too fixated on the load_lora_adapter()
name. Could also do load_adapter()
.
@DN6 as discussed via Slack, could you give this a check? Could also add a save_lora_adapter()
method to complement.