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 61e316c commit 32dd0d5Copy full SHA for 32dd0d5
src/diffusers/utils/peft_utils.py
@@ -163,9 +163,9 @@ def set_adapter_layers(model, enabled=True):
163
if isinstance(module, BaseTunerLayer):
164
# The recent version of PEFT needs to call `enable_adapters` instead
165
if hasattr(module, "enable_adapters"):
166
- module.enable_adapters(enabled=False)
+ module.enable_adapters(enabled=enabled)
167
else:
168
- module.disable_adapters = True
+ module.disable_adapters = not enabled
169
170
171
def set_weights_and_activate_adapters(model, adapter_names, weights):
0 commit comments