fast-stable-diffusion
fast-stable-diffusion copied to clipboard
Google Colab Pro - xfromers needs to be reinstalled
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 2.1.0+cu121 with CUDA 1202 (you have 2.2.1+cu121) Python 3.10.12 (you have 3.10.12) Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers) Memory-efficient attention, SwiGLU, sparse and more won't be available. Set XFORMERS_MORE_DETAILS=1 for more details
For reference, have this on Google Colab Pro as well.
Also getting this issue, have tried some old fixes/workarounds resulting in the same error
same error here
I have the same error:(
Found a temporary solution in old records. Pardon my English. You need to insert this text into "Connect Google Drive":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
Found a temporary solution in old records. Pardon my English. You need to insert this text into "Connect Google Drive":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
Looks like a working hotfix.
Found a temporary solution in old records. Pardon my English. You need to insert this text into "Connect Google Drive":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
I used the code and it seems to be working
This didn't work for me. Everything loads fine, but as soon as the webui is launched and I try to generate anything, the gradio connection just gets killed and I get the "connection errored out." Then if I try to relaunch SD I get a miles long list of error messages.
NotImplementedError: No operator found for memory_efficient_attention_forward with inputs: query : shape=(2, 6144, 8, 40) (torch.float32) key : shape=(2, 6144, 8, 40) (torch.float32) value : shape=(2, 6144, 8, 40) (torch.float32) attn_bias : <class 'NoneType'> p : 0.0 decoderF is not supported because: xFormers wasn't build with CUDA support attn_bias type is <class 'NoneType'> operator wasn't built - see python -m xformers.info for more info [email protected] is not supported because: xFormers wasn't build with CUDA support requires device with capability > (8, 0) but your GPU has capability (7, 5) (too old) dtype=torch.float32 (supported: {torch.bfloat16, torch.float16}) operator wasn't built - see python -m xformers.info for more info tritonflashattF is not supported because: xFormers wasn't build with CUDA support requires device with capability > (8, 0) but your GPU has capability (7, 5) (too old) dtype=torch.float32 (supported: {torch.bfloat16, torch.float16}) operator wasn't built - see python -m xformers.info for more info triton is not available requires GPU with sm80 minimum compute capacity, e.g., A100/H100/L4 Only work on pre-MLIR triton for now cutlassF is not supported because: xFormers wasn't build with CUDA support operator wasn't built - see python -m xformers.info for more info smallkF is not supported because: max(query.shape[-1] != value.shape[-1]) > 32 xFormers wasn't build with CUDA support operator wasn't built - see python -m xformers.info for more info unsupported embed per head: 40
Time taken: 1.1 sec.
Found a temporary solution in old records. Pardon my English. You need to insert this text into "Connect Google Drive":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
Unfortunately I got an error. Maybe we need to update the text? 118→121
I got the same error.
me too (TT
This didn't work for me. Everything loads fine, but as soon as the webui is launched and I try to generate anything, the gradio connection just gets killed and I get the "connection errored out." Then if I try to relaunch SD I get a miles long list of error messages.
Don't know what to say; it's working fine for me with the hotfix.
Hello. Please share screenshots of your notebook with me. I don't understand what to do with the provided code
Hello. Please share screenshots of your notebook with me. I don't understand what to do with the provided code
In the connect google drive cell I have put under "--#@markdown ---":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download. pytorch.org/whl/cu118
and at the moment it works for me
Hello. Please share screenshots of your notebook with me. I don't understand what to do with the provided code
In the connect google drive cell I have put under "--#@markdown ---":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download. pytorch.org/whl/cu118
and at the moment it works for me
I still need a screenshot. 🗿
I think this method is fine for now. Please insert the code before "Connect Google Drive" like in the screenshot.
!pip install lmdb
!pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
Installing collected packages: lmdb Successfully installed lmdb-1.4.1 ERROR: Invalid requirement: '//download.pytorch.org/whl/cu118' Hint: It looks like a path. File '//download.pytorch.org/whl/cu118' does not exist.
I get this error message
How about this code? !pip install -q torch==2.1.2+cu121 torchvision==0.16.2+cu121 torchaudio==2.1.2+cu121 torchtext==0.16.2 torchdata==0.7.1 --extra-index-url https://download.pytorch.org/whl/cu121 -U
Found a temporary solution in old records. Pardon my English. You need to insert this text into "Connect Google Drive":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
Works great, thanks Maxim
I think this method is fine for now. Please insert the code before "Connect Google Drive" like in the screenshot.
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
Thank you so much for the screenshot! I didn't understand at all what to do with the provided code, but your screenshot helped me a lot.
Same
Found a temporary solution in old records. Pardon my English. You need to insert this text into "Connect Google Drive":
!pip install lmdb !pip install torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu118
It works, thanks a lot
Works great, thanks Maxim
How about this code? !pip install -q torch==2.1.2+cu121 torchvision==0.16.2+cu121 torchaudio==2.1.2+cu121 torchtext==0.16.2 torchdata==0.7.1 --extra-index-url https://download.pytorch.org/whl/cu121 -U
It works, thanks a lot!
Putting the text in front of or in the "Connect Google Drive" does not change the error. Thanks a lot for your help.
Putting the text in front of or in the "Connect Google Drive" does not change the error. Thanks a lot for your help.
put the code befor the "start stable diffusion"
The image can now be generated. Thank you all!
fixed, update to the latest notebook and you won't need to install any additional package
Use rundiffusion.com. I am happy with that.
