stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: XFormers Broke my WebUI
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
After installing XFormers, hoping it would make my Stable Diffusion to run faster, it totally breaks the setup.
NotImplementedError: No operator found for this attention: Inputs(query=tensor([[[[ 0.6836, 0.4781, -0.3497, ..., -0.2261, 0.4425, 1.0352]], [[-0.0214, -0.6364, -0.5834, ..., 0.6528, 0.5381, -0.2725]], [[ 0.6106, -0.5861, 0.1504, ..., 0.4070, 0.4007, -0.4081]], ..., [[ 0.7346, -0.4588, -0.5398, ..., -1.0790, 0.3018, 0.1528]], [[-0.2312, -0.0885, -1.2967, ..., -0.7730, 0.2911, 0.5572]], [[ 0.5687, -0.4764, -0.5074, ..., -0.5463, 0.9021, 0.2033]]]]), key=tensor([[[[-0.1846, -0.8103, -1.3792, ..., -0.3235, -0.7737, 0.3237]], [[ 0.5580, -1.1491, -0.8289, ..., -0.2214, -0.4717, -0.3185]], [[ 0.7091, -0.8874, -0.8983, ..., 0.8321, -0.3280, -0.9163]], ..., [[-0.2113, -0.9526, -0.4368, ..., 0.6044, -0.1802, -0.6490]], [[-0.4038, -1.0005, -0.4478, ..., 0.7771, -0.0718, -0.2036]], [[ 0.3258, -0.4664, -0.0716, ..., 0.5480, 0.1201, -0.6005]]]]), value=tensor([[[[ 0.1396, 0.2411, 0.1830, ..., -0.5876, 0.6640, -0.0820]], [[-0.3442, 0.0377, 0.2450, ..., -0.5601, 0.7610, -0.1637]], [[ 0.2111, 0.1697, 0.3153, ..., 0.4368, 0.1736, -0.4855]], ..., [[ 0.0363, -0.4119, 0.3034, ..., 0.2777, -0.1239, -0.2055]], [[ 0.1632, -0.1892, -0.1668, ..., 0.2044, 0.7895, 0.1137]], [[ 0.3265, 0.1922, 0.1893, ..., 0.0356, 0.5670, 0.1210]]]]), attn_bias=None, p=0.0, scale=None)
Time taken: 6m 58.80s
Steps to reproduce the problem
Install XFormers.
What should have happened?
It should just work.
Commit where the problem happens
44c46f0ed395967cd3830dd481a2db759fda5b3b
What platforms do you use to access UI ?
MacOS
What browsers do you use to access the UI ?
Apple Safari
Command Line Arguments
No response
Additional information, context and logs
No response
I don't think xformers works with MacOS
Xformers is only meant and built for cuda, which macos completely don't support. You are able to install xformers wheel on macos because it is supported by python, but you cannot actually use it because lack of cuda. You should uninstall xformers and remove command line switches.