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

xFormers can't load C++/CUDA extensions. xFormers was built for #111

Open
Normiegetout opened this issue Oct 16, 2023 · 2 comments
Open

Comments

@Normiegetout
Copy link

Looking for directions where to head with the following error that I'm getting all the sudden

WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.1.0+cu121 with CUDA 1201 (you have 2.0.1+cu118)
Python 3.10.13 (you have 3.10.10)

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

Running the xformers building block produces the further error if ADetailer is turned on:

RuntimeError: Couldn't load custom C++ ops.
This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.

Any assistance on where I should be looking for help next is appreciated

@alexkorol
Copy link

I also started recently getting this error out of the blue. The webui starts up normally, but runs into the error when trying to generate images. I tried running with --xformers but that didn't fix the error.

@owbra
Copy link

owbra commented Nov 19, 2023

For what it's worth, I've been able to fix this by installing xformers through the terminal after everything else is installed (just run "pip install xformers"). But, this needs to be done for every new session.

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

3 participants