Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: PEFT backend is required for this method. #19

Open
MNeMoNiCuZ opened this issue Mar 15, 2024 · 1 comment
Open

ValueError: PEFT backend is required for this method. #19

MNeMoNiCuZ opened this issue Mar 15, 2024 · 1 comment

Comments

@MNeMoNiCuZ
Copy link

(venv) C:\AI\ArtSpew>py artspew.py --xl -p "Space cat cowboy" -c 10 -n 11
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
File "C:\AI\ArtSpew\venv\Lib\site-packages\xformers_init_.py", line 55, in _is_triton_available
from xformers.triton.softmax import softmax as triton_softmax # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\AI\ArtSpew\venv\Lib\site-packages\xformers\triton\softmax.py", line 11, in
import triton
ModuleNotFoundError: No module named 'triton'
Keyword arguments {'safety_checker': None, 'requires_safety_checker': False} are not expected by StableDiffusionXLPipeline and will be ignored.
Loading pipeline components...: 100%|█████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 14.86it/s]
Using LCM.
The config attributes {'skip_prk_steps': True} were passed to LCMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.
Traceback (most recent call last):
File "C:\AI\ArtSpew\artspew.py", line 216, in
main()
File "C:\AI\ArtSpew\artspew.py", line 182, in main
artspew = ArtSpew(
^^^^^^^^
File "C:\AI\ArtSpew\artspew.py", line 135, in init
self._sd = sd_class(
^^^^^^^^^
File "C:\AI\ArtSpew\src\stable_diffusion_base.py", line 40, in init
self.configure_pipeline(self._lcm)
File "C:\AI\ArtSpew\src\stable_diffusion_base.py", line 70, in configure_pipeline
self.setup_scheduler(self.pipe, lcm)
File "C:\AI\ArtSpew\src\stable_diffusion_base.py", line 77, in setup_scheduler
self.load_and_fuse_lcm()
File "C:\AI\ArtSpew\src\stable_diffusion_base.py", line 118, in load_and_fuse_lcm
self.pipe.load_lora_weights(adapter_id)
File "C:\AI\ArtSpew\venv\Lib\site-packages\diffusers\loaders\lora.py", line 1230, in load_lora_weights
raise ValueError("PEFT backend is required for this method.")
ValueError: PEFT backend is required for this method.

Any tips on how to set up a PEFT backend for this?
https://huggingface.co/docs/peft/en/tutorial/peft_integrations

@LazyLama
Copy link

This is what worked for me
pip3 install peft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants