Replies: 24 comments 47 replies
-
ok, adding this post in, thank you. |
Beta Was this translation helpful? Give feedback.
-
How does this work if running the webui from an anaconda environment? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I let it run through and followed all the instructions and I get the exact same error when running the xformers that comes with the automatic repo |
Beta Was this translation helpful? Give feedback.
-
@duckness |
Beta Was this translation helpful? Give feedback.
-
thank you very much. I followed the guide and it works perfectly! |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Has anyone managed to make it work with 2070S or any other -S GPUs? |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
My problems have been solved since this repo has been updated with the new xformers wheels! |
Beta Was this translation helpful? Give feedback.
-
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.html As a point of reference my generation of 2048 x 2048 textures went from 06:25 to 02:59 Amazing! |
Beta Was this translation helpful? Give feedback.
-
i followed every step above, this is what happens when i try to launch the webui-user.bat with --force-enable-xformers |
Beta Was this translation helpful? Give feedback.
-
In the latest builds, no compile is needed if you have Windows! ☝☝☝ |
Beta Was this translation helpful? Give feedback.
-
does this work on colab? |
Beta Was this translation helpful? Give feedback.
-
Hi! :/ Main Stable diffusion folder is on desktop. Rest installed as was. |
Beta Was this translation helpful? Give feedback.
-
Hi I'm getting an error trying to build xformers on windows. I can't figure out what I'm doing wrong. Googling the error makes it seem like a problem is with xformers themselves but it's probably something to do with my computer. Anyone have any ideas? |
Beta Was this translation helpful? Give feedback.
-
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... |
Beta Was this translation helpful? Give feedback.
-
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)
|
Beta Was this translation helpful? Give feedback.
-
Im having some major issues installing this, been trying for like 3 days and it does not seem to want to install. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Launching Web UI with arguments: --force-enable-xformer |
Beta Was this translation helpful? Give feedback.
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++
venv
and activate itgit clone https://github.com/facebookresearch/xformers.git cd xformers git submodule update --init --recursive python -m venv venv ./venv/scripts/activate
As 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-compiler
if oncmd
You 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
xformers
directory, navigate to thedist
folder and copy the.whl
file to the base directory ofstable-diffusion-webui
In
stable-diffusion-webui
directory, install the.whl
, change the name of the file in the command below if the name is different:xformers
is activated by launchingstable-diffusion-webui
with--force-enable-xformers
Describe alternatives you've considered
Additional context
Beta Was this translation helpful? Give feedback.
All reactions