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 48eeeae commit 58559ecCopy full SHA for 58559ec
src/diffusers/utils/peft_utils.py
@@ -182,7 +182,7 @@ def get_peft_kwargs(
182
else:
183
lora_alpha = set(network_alpha_dict.values()).pop()
184
185
- target_modules = list({name.split(".lora")[0] for name in peft_state_dict.keys() if "lora" in name})
+ target_modules = list({name.split(".lora")[0] for name in peft_state_dict.keys()})
186
use_dora = any("lora_magnitude_vector" in k for k in peft_state_dict)
187
# for now we know that the "bias" keys are only associated with `lora_B`.
188
lora_bias = any("lora_B" in k and k.endswith(".bias") for k in peft_state_dict)
0 commit comments