gitmylo / audio-webui

A webui for different audio related Neural Networks
MIT License
1.08k stars 100 forks source link

xformers not working [BUG REPORT] #238

Open dangerweenie opened 3 months ago

dangerweenie commented 3 months ago

Getting this error after installing on Windows 11;

| WARNING | xformers | WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.1.0+cu121 with CUDA 1201 (you have 2.1.0+cu118)
    Python  3.10.11 (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
2024-08-08 12:03:28 | WARNING | xformers | A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
2024-08-08 12:03:28 | WARNING | xformers | Triton is not available, some optimizations will not be enabled.
This is just a warning: triton is not available

using xfomers in other venvs (comfyUI, automatic1111, etc), no issues.

seems the xformers this install wants to use requires a newer vision of xformers, but i know if i try to install that there will probably be a load of other dependencies that need to ne upgraded.

anyone using this without xformers? is it recommended?

gitmylo commented 3 months ago

Xformers shouldn't really affect performance or memory usage drastically for most models. But from the error it looks like you installed xformers for python 3.10.11 while you're on 3.10.10, so it's suggested you re-install xformers for the right version. (Or simply use audio-webui without xformers)