We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b01401 commit 2cd3665Copy full SHA for 2cd3665
src/diffusers/loaders/lora_base.py
@@ -909,6 +909,6 @@ def enable_lora_hotswap(self, **kwargs) -> None:
909
target_rank (`int`):
910
The highest rank among all the adapters that will be loaded.
911
"""
912
- for component in self.components.values():
913
- if hasattr(component, "enable_lora_hotswap"):
+ for key, component in self.components.items():
+ if hasattr(component, "enable_lora_hotswap") and (key in self._lora_loadable_modules):
914
component.enable_lora_hotswap(**kwargs)
0 commit comments