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 1e0395e commit 8d30d25Copy full SHA for 8d30d25
src/diffusers/loaders.py
@@ -1400,8 +1400,9 @@ def _modify_text_encoder(
1400
1401
if patch_mlp:
1402
for name, mlp_module in text_encoder_mlp_modules(text_encoder):
1403
- fc1_alpha = network_alphas.pop(name + ".fc1.lora_linear_layer.down.weight.alpha")
1404
- fc2_alpha = network_alphas.pop(name + ".fc2.lora_linear_layer.down.weight.alpha")
+ fc1_alpha = network_alphas.pop(name + ".fc1.lora_linear_layer.down.weight.alpha", None)
+ fc2_alpha = network_alphas.pop(name + ".fc2.lora_linear_layer.down.weight.alpha", None)
1405
+
1406
current_rank_fc1 = rank.pop(f"{name}.fc1.lora_linear_layer.up.weight")
1407
current_rank_fc2 = rank.pop(f"{name}.fc2.lora_linear_layer.up.weight")
1408
0 commit comments