Replies: 24 comments 47 replies
|
ok, adding this post in, thank you. |
|
How does this work if running the webui from an anaconda environment? |
|
This guide doesnt work either. I tried so many things to get it running. Is this attached error normal? edit: it is still running though, but its throwing massive amounts of weird warnings and errors Also you got the wrong slashes for activating venv, they should be backslashes |
|
@duckness |
|
thank you very much. I followed the guide and it works perfectly! |
|
Maybe it's better to use "x64 native tools command prompt for VS 2022" to do all these things, especially when you have multiple VS installed |
|
While this should've worked, since I'm not getting any errors when running with the Don't know if there's anything wrong with my setup, or if it's because it has no influence on GeForce GTX 1060. |
|
Has anyone managed to make it work with 2070S or any other -S GPUs? |
|
I compiled a Python 3.8 + CUDA 11.3 version and a Python 3.10.7 + CUDA 11.6 version. Is this generally good for everyone or is it hardware dependent? Here is, test it with install! |
|
My problems have been solved since this repo has been updated with the new xformers wheels! |
|
Thank you for the concise instructions! I was able to build with CUDA 11.6 (if others want to go this route): pip install torch torchvision -f https://download.pytorch.org/whl/cu116/torch_stable.htmlAs a point of reference my generation of 2048 x 2048 textures went from 06:25 to 02:59 Amazing! |
|
i followed every step above, this is what happens when i try to launch the webui-user.bat with --force-enable-xformers |
|
In the latest builds, no compile is needed if you have Windows! ☝☝☝ |
|
does this work on colab? |
|
Hi! :/ Main Stable diffusion folder is on desktop. Rest installed as was. |
|
I am a bit lost. I try to install xformers and it looks good until step 6. I was able to do the commands in several areas, but without success afterwards at step 7. There it crashes directly. In general I tried to run all commands (if possible) in the same bash. I used git bash for the installtion until step 6. But afterwards I tried cmd as admin, powershell and both from visual studio (stable-diffusion-webui branch) as well. No success. RTX 3070 Ti Laptop is in use. 8 GB RAM. No issue on Power Shell. No issue on git bash. But then on step 7. After googleing the exit code it looked for me like cuda dependencies are missing. Tried to pip install pycuda==2021.1 but did not change anything... |
|
I also had to use C++ Build Tools 2019. Here's how to get it: Option 1
Option 2
Running xformers build (with extensions / dev) |
|
Im having some major issues installing this, been trying for like 3 days and it does not seem to want to install. |
|
In my case when I run WebUI I see: So I guess building xFormers is not a mandatory step? Or what advantages does it provide? |
|
My .whl is only 371 KB, which apparently means it didn't compile properly. Is there any solution I can try? I followed the instructions exactly and changed to vs 2019 after it failed the first time. I also tried using this improperly compiled file and it installed without issue, but caused errors when I tried to launch the webui. |
|
Guys, for those who are using torch with either cu116, cu117 or nightly cu117, do you build your own xformers with that same cuda versions that you're using in torch? Or do you build all on cu113? |
|
Launching Web UI with arguments: --force-enable-xformer |





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
Edit the wiki to add information on how to build xFormers on Windows. Don't think I can make a PR for the wiki so I'll put it here.
Describe the solution you'd like
Building xFormers on Windows
Desktop development with C++venvand activate itgit clone https://github.com/facebookresearch/xformers.git cd xformers git submodule update --init --recursive python -m venv venv ./venv/scripts/activateAs CUDA 11.3 is rather old, you need to force enable it to be built on MS Build Tools 2022. Do
$env:NVCC_FLAGS = "-allow-unsupported-compiler"if onpowershell, orset NVCC_FLAGS=-allow-unsupported-compilerif oncmdYou can finally build xFormers, note that the build will take a long time (probably 10-20minutes), it may initially complain of some errors but it should still compile correctly.
In
xformersdirectory, navigate to thedistfolder and copy the.whlfile to the base directory ofstable-diffusion-webuiIn
stable-diffusion-webuidirectory, install the.whl, change the name of the file in the command below if the name is different:xformersis activated by launchingstable-diffusion-webuiwith--force-enable-xformersDescribe alternatives you've considered
Additional context
All reactions