Open R-N opened 1 year ago
I'm having this issue too, but I'm running it on arch linux
me too,in colab
Same on Fedora 36 with an RTX 3070 mobile Any ideas on what's causing this?
Idk what caused it, but some people say it's fixed with newer xformer. I can't build xformer on colab though, it just stucks. And the new version isn't available on pip for python 3.7 which colab uses.
Thankfully, the xformers wheel by camenduru works great for me. I've only tried it once though.
@Small-tailqwq can you try it and confirm as for the others, i'm not sure if the wheel can be used outside colab
Auto1111 seems to install xformers 0.0.12 instead of 0.0.13 so that's my issue? Does anyone know where I could change the line that install xformers?
Auto1111 seems to install xformers 0.0.12 instead of 0.0.13 so that's my issue? Does anyone know where I could change the line that install xformers?
xformers 0.0.13+ on pip doesnt seem to support the python version that colab uses, so 0.0.12 is the highest it can install
uninstalling xformers==0.0.12 and installing pip install git+https://github.com/facebookresearch/xformers.git#egg=xformers works.
I have tried downloading the latest, recreating the venv, downloading the latest git build, building myself. None worked I'm pretty sad about this, if only it worked without me struggling.
uninstalling xformers==0.0.12 and installing pip install git+https://github.com/facebookresearch/xformers.git#egg=xformers works.
Thank you, your solution worked for me!
pip install git+https://github.com/facebookresearch/xformers.git#egg=xformers
Also worked for me! I'm using the official NVIDIA Drivers on a Arch System (GTX 1050 using Low VRAM)
`(py310) guest01@ubun:/data/ai/cnet/ControlNet/xformers$ pip install git+https://github.com/facebookresearch/xformers.git#egg=xformers Looking in indexes: https://pypi.douban.com/simple Collecting xformers Cloning https://github.com/facebookresearch/xformers.git to /tmp/pip-install-uz9w073j/xformers_4e043011103b4437a4fc7047a6bb37e8 Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/xformers.git /tmp/pip-install-uz9w073j/xformers_4e043011103b4437a4fc7047a6bb37e8 warning: filtering not recognized by server, ignoring Resolved https://github.com/facebookresearch/xformers.git to commit e23b369c094685bd42e11928649cc03b93b768d5 Running command git submodule update --init --recursive -q error: 服务器不允许请求未公开的对象 88dc2040a073b270773a4d2c71d91c78e9d837cb 获取了子模组路径 'third_party/flash-attention',但是它没有包含 88dc2040a073b270773a4d2c71d91c78e9d837cb。直接获取该提交失败。 error: subprocess-exited-with-error
× git submodule update --init --recursive -q did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× git submodule update --init --recursive -q did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. `
Is there an existing issue for this?
What happened?
txt2img fails when using xformers on Google Colab.
Steps to reproduce the problem
What should have happened?
It generates an image.
Commit where the problem happens
7f8ab1e
What platforms do you use to access UI ?
Other/Cloud
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
Additional information, context and logs
Using xformers from pip will give TypeError: memory_efficient_attention() got an unexpected keyword argument 'attn_bias'
``` Running on local URL: http://127.0.0.1:7860/ To create a public link, set share=True in launch(). 0% 0/20 [00:03, ?it/s] Error completing request Arguments: ('ganyu \\(genshin impact\\), ', 'guan yu', 'None', 'None', 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 0, 0, 0, False, None, '', 'outputs', '', 1, True, 100, False, 'Keyframe Format:
', '', 25, True, 5.0, False, None, '', 10.0, True, 30.0, True, False, 1, '', 0, '', True, False, False) {} Traceback (most recent call last): File "/content/nai/stable-diffusion-webui/modules/ui.py", line 212, in f res = list(func(*args, **kwargs)) File "webui.py", line 63, in f res = func(*args, **kwargs) File "/content/nai/stable-diffusion-webui/modules/txt2img.py", line 44, in txt2img processed = process_images(p) File "/content/nai/stable-diffusion-webui/modules/processing.py", line 411, in process_images samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength) File "/content/nai/stable-diffusion-webui/modules/processing.py", line 549, in sample samples = self.sampler.sample(self, x, conditioning, unconditional_conditioning) File "/content/nai/stable-diffusion-webui/modules/sd_samplers.py", line 417, in sample samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args={'cond': conditioning, 'uncond': unconditional_conditioning, 'cond_scale': p.cfg_scale}, disable=False, callback=self.callback_state, **extra_params_kwargs)) File "/content/nai/stable-diffusion-webui/modules/sd_samplers.py", line 326, in launch_sampling return func() File "/content/nai/stable-diffusion-webui/modules/sd_samplers.py", line 417, inSeed | Prompt or just Prompt
Using xformers wheel from naifu gives RuntimeError: Expected query.dim() == 3 to be true, but got false.
``` Traceback (most recent call last): File "/content/nai/stable-diffusion-webui/modules/ui.py", line 212, in f res = list(func(*args, **kwargs)) File "webui.py", line 63, in f res = func(*args, **kwargs) File "/content/nai/stable-diffusion-webui/modules/txt2img.py", line 44, in txt2img processed = process_images(p) File "/content/nai/stable-diffusion-webui/modules/processing.py", line 411, in process_images samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength) File "/content/nai/stable-diffusion-webui/modules/processing.py", line 549, in sample samples = self.sampler.sample(self, x, conditioning, unconditional_conditioning) File "/content/nai/stable-diffusion-webui/modules/sd_samplers.py", line 417, in sample samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args={'cond': conditioning, 'uncond': unconditional_conditioning, 'cond_scale': p.cfg_scale}, disable=False, callback=self.callback_state, **extra_params_kwargs)) File "/content/nai/stable-diffusion-webui/modules/sd_samplers.py", line 326, in launch_sampling return func() File "/content/nai/stable-diffusion-webui/modules/sd_samplers.py", line 417, inNot installing triton produces this message, but the error on txt2img is the same
``` WARNING:root:Triton is not available, some optimizations will not be enabled. Error No module named 'triton' ```Installing triton without --pre produces this message, but the error on txt2img is the same
``` WARNING:root:A matching Triton is not available, some optimizations will not be enabled. Error caught was: module 'triton.language' has no attribute 'constexpr' ```Related: #2731