An error occurs when xformers is activated.
hello
Commit hash: 447f26115486b22ce4690673fbf9d34b6bbc5ad8 Launching Web UI with arguments: --theme dark --xformers Total VRAM 24564 MB, total RAM 65399 MB pytorch version: 2.3.1+cu121 WARNING:xformers:A matching Triton is not available, some optimizations will not be enabled Traceback (most recent call last): File "C:\Users\aaa\Desktop\webui_forge_cu121_torch231\system\python\lib\site-packages\xformers_init_.py", line 57, in _is_triton_available import triton # noqa ModuleNotFoundError: No module named 'triton' xformers version: 0.0.27
flux In use
ModuleNotFoundError: No module named 'triton'
It takes a bit of work to get triton to work in Windows.
Not a bug, but only a warning and devs here cannot fix it in any way except hiding it somehow. This is an issue with Triton (a library xformers can optionally use) lacking Windows support, xformers works just fine without it, it just won't enable all optimizations, as the warning states.
问题解决了吗?我的也出现了这样的问题,想知道解决办法~
I was able to tweak further and found in Triton there have been a lot of versioning by several developments. Specifically, by the Torch group (PyTorch):
I think this somewhat resolved my issue. See if it works for you!
pip install pytorch-triton