You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, so basically I try to load a local .safetensor file with load_lora_weights(), and then it pops this super long error:
Traceback (most recent call last):
File "/Users/user/Projects/lancelot-core/main.py", line 106, in <module>
pipeline.load_lora_weights(".", weight_name=f"./model/lora/{lora["filename"]}", adapter_name=f"l{index}")
File "/Users/user/Projects/lancelot-core/my-venv/lib/python3.12/site-packages/diffusers/loaders/lora_pipeline.py", line 95, in load_lora_weights
state_dict, network_alphas = self.lora_state_dict(pretrained_model_name_or_path_or_dict, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/Projects/lancelot-core/my-venv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/user/Projects/lancelot-core/my-venv/lib/python3.12/site-packages/diffusers/loaders/lora_pipeline.py", line 225, in lora_state_dict
state_dict, network_alphas = _convert_non_diffusers_lora_to_diffusers(state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/Projects/lancelot-core/my-venv/lib/python3.12/site-packages/diffusers/loaders/lora_conversion_utils.py", line 215, in _convert_non_diffusers_lora_to_diffusers
raise ValueError(f"The following keys have not been correctly renamed: \n\n {', '.join(state_dict.keys())}")
ValueError: The following keys have not been correctly renamed:
lora_te_text_model_encoder_layers_0_mlp_fc1.alpha, lora_te_text_model_encoder_layers_0_mlp_fc1.hada_w1_a, lora_te_text_model_encoder_layers_0_mlp_fc1.hada_w1_b, lora_te_text_model_encoder_layers_0_mlp_fc1.hada_w2_a, lora_te_text_model_encoder_layers_0_mlp_fc1.hada_w2_b, lora_te_text_model_encoder_layers_0_mlp_f
... too many parameters here
I'm wondering is it still related to this status in the official document:
Unfortunately the Checkpoint and LyCORIS file I used are... let's say too unsafe. I can not provide them here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, so basically I try to load a local .safetensor file with load_lora_weights(), and then it pops this super long error:
I'm wondering is it still related to this status in the official document:
Unfortunately the Checkpoint and LyCORIS file I used are... let's say too unsafe. I can not provide them here.
Adding the code here:
In general I'm loading Lora definition from a JSON file, that's where "d" comes from.
Beta Was this translation helpful? Give feedback.
All reactions