问题:警告[XFORMERS]:xFormers 无法加载 C++/CUDA 扩展。 xFormers 的构建目的是: PyTorch 2.1.0+cu121 和 CUDA 1202(您有 2.2.1+cu121) Python 3.10.12(你有 3.10.12) 请重新安装 xformers(请参阅 https://github.com/facebookresearch/xformers#installing-xformers)
描述:我是Colab Pro的新用户。昨天我可以快速运行 Fast SD Automatic1111。然而,我今天遇到了 xformers 的问题(请参见上文)。
我尝试了“!pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu121”但它也显示错误如下:
错误:pip 的依赖解析器当前未考虑所有已安装的软件包。此行为是以下依赖性冲突的根源。 torchaudio 2.2.1+cu121 需要 torch==2.2.1,但您有 torch 2.2.0+cu121,这是不兼容的。 torchtext 0.17.1 需要 torch==2.2.1,但您有 torch 2.2.0+cu121,这是不兼容的。 torchvision 0.17.1+cu121 需要 torch==2.2.1,但你有 torch 2.2.0+cu121,这是不兼容的。
请帮忙!谢谢!
您应该寻找与 PyTorch 2.1.0+cu121 对应的 xFormers。这是比较网站:[https://anaconda.org/xformers/xformers/files][1]
将手电筒版本重置为2.1.0+cu121
pip install torch==2.2.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html
2.安装相应的xformers
!pip install xformers==0.0.26.dev767