Closed iliasmiraoui closed 7 months ago
Found the issue and fixed it: https://github.com/huggingface/diffusers/issues/5919
Found the issue and fixed it: huggingface/diffusers#5919
Whether I uninstall peft or not, I am still facing this bug, can someone tell me the solution. Can you tell me the detail of your enviroment?
Trying to run the script in a colab instance and getting the following error which seems odd:
Traceback (most recent call last): File "/content/ziplora-pytorch/train_dreambooth_lora_sdxl.py", line 2004, in
main(args)
File "/content/ziplora-pytorch/train_dreambooth_lora_sdxl.py", line 1123, in main
attn_module.to_q.set_lora_layer(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1695, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'Linear' object has no attribute 'set_lora_layer'