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 3579cd2 commit a9f4762Copy full SHA for a9f4762
src/diffusers/loaders/peft.py
@@ -53,6 +53,7 @@
53
"LTXVideoTransformer3DModel": lambda model_cls, weights: weights,
54
"SanaTransformer2DModel": lambda model_cls, weights: weights,
55
}
56
+_NO_CONFIG_UPDATE_KEYS = ["to_k", "to_q", "to_v"]
57
58
59
def _maybe_adjust_config(config):
@@ -67,6 +68,8 @@ def _maybe_adjust_config(config):
67
68
original_r = config["r"]
69
70
for key in list(rank_pattern.keys()):
71
+ if any(prefix in key for prefix in _NO_CONFIG_UPDATE_KEYS):
72
+ continue
73
key_rank = rank_pattern[key]
74
75
# try to detect ambiguity
0 commit comments