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
Traceback (most recent call last):
File "/mnt/raid0/github/f-lite/inference.py", line 14, in<module>
pipeline.dit_model.load_lora_weights("/media/user/NVM/F-Lite-DiT/final_model")
File "/mnt/raid0/github/f-lite/f_lite/model.py", line 379, in load_lora_weights
set_peft_model_state_dict(self, lora_state_dict)
File "/mnt/raid0/github/f-lite/.venv/lib/python3.12/site-packages/peft/utils/save_and_load.py", line 343, in set_peft_model_state_dict
config = model.peft_config[adapter_name]
^^^^^^^^^^^^^^^^^
File "/mnt/raid0/github/f-lite/.venv/lib/python3.12/site-packages/diffusers/models/modeling_utils.py", line 291, in __getattr__
returnsuper().__getattr__(name)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/raid0/github/f-lite/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1940, in __getattr__
raise AttributeError(
AttributeError: 'DiT' object has no attribute 'peft_config'. Did you mean: 'from_config'?
How can I do?
The text was updated successfully, but these errors were encountered:
I have create a LoRA file.
But, I cannot load the file by the following code.
I got the error:
How can I do?
The text was updated successfully, but these errors were encountered: