截止目前最新的Linux&Windows系统平台上pip安装的xformers版本与pytorch版本和CUDA版本关系对照表
xformers | pytorch | CUDA |
v0.0.30 | torch==2.7.0 | cu118,cu126,cu128 |
v0.0.29.post3 | torch==2.6.0 | ,12.6, |
v0.0.29.post2 | torch==2.6.0 | cu118,cu124,cu126 |
0.0.29.post1,0.0.29,0.0.28.post3 | torch==2.5.1 | cu118,cu121,cu124 |
0.0.28.post2 | torch==2.5.0 | cu118,cu121,cu124 |
0.0.28.post1 | torch==2.4.1 | cu118,cu121,cu124 |
0.0.27.post1,0.0.27.post2 | torch==2.3.1 | cu118,cu121 |
0.0.27 | torch==2.3.0 | cu118,cu121 |
0.0.26 | torch==2.2.0 | cu118,cu121 |
0.0.25 | torch==2.2.0 | cu118,cu121 |
0.0.24 | torch==2.2.0 | cu118,cu121 |
0.0.23 | torch==2.1.1 | cu118,cu121 |
0.0.22.post7 | torch==2.1.0 | cu118,cu121 |
0.0.22 | torch==2.0.1 | |
0.0.21 | torch==2.0.1 | |
0.0.20 | torch==2.0.1 | |
0.0.19 | torch==2.0.0 | |
0.0.18 | torch==2.0.0 | |
0.0.17 | torch==1.13.1 |
xformers v0.0.28版本Linux&Windows平台安装pip命令参考:
# [linux only] cuda 11.8 version
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu118
# [linux only] cuda 12.1 version
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu121
# [linux & win] cuda 12.4 version
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu124
# [linux only] (EXPERIMENTAL) rocm 6.1 version
pip3 install -U xformers --index-url https://download.pytorch.org/whl/rocm6.1
安装xformers的时候可以和torch一起安装,不然的话torch还会再重新安装一次,而且torch会自动选择到当前xformers支持到的最新版本,可能会与你当前想要的torch版本不一样导致torchvision等版本冲突,最好指定版本安装。例如指定安装最新版torch 2.5.1和xformers 0.0.28.post3和cu124,可以使用如下安装命令:
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 xformers==0.0.28.post3 --index-url https://download.pytorch.org/whl/cu124
附:
xformers whl下载链接:https://download.pytorch.org/whl/xformers/
xformers项目地址:https://github.com/facebookresearch/xformers
相关推荐
Python应用报错Could not locate cublasLt64_11.dll. Please make sure it is in your library path
Python报错AssertionError: Torch not compiled with CUDA enabled解决方法
Python应用报错RuntimeError: CUDA error: invalid device ordinal设备序号无效
python报错[ONNXRuntimeError] : FAIL : LoadLibrary failed with error "\capi\onnxruntime_providers_cuda.dll"解决方法
ONNXRuntimeError fail 'CUDAExecutionProvider'] and retrying.CUDA wasnt able to be loaded.解决方法
Windows电脑安装CUDA及配置CUDNN环境详细教程
xFormers can't load C++/CUDA extensions. xFormers was built for:PyTorch 2.2.2+cu118 with CUDA 1108 (you have 2.2.2+cu121)解决方法
python报错:xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 2.1.0+cu121 with CUDA 1201
最近更新

2D图片转3D视频软件stable-virtual-camera本地电脑安装部署教程及注意问题

2D照片转3D视频软件stable-virtual-camera免安装一键启动整合包下载
本次和大家分享一个好玩实用的2D图片转3D视频软件stable-virtual-camera,支持多种相机模式,生成的3D视频效果丰富多样,适合多种使用场景,我基于当前最新版本制作了免安装一键启动整合包。 stable-virtual-ca...

AI歌曲生成软件DiffRhythm本地电脑安装部署教程及注意事项

AI歌曲创作软件DiffRhythm一键启动包,自定义风格AI谱曲演唱
DiffRhythm是首个基于扩散技术的开源音乐生成模型,能够创作完整的歌曲,包括AI谱曲,AI演唱。基于当前最新V1.2版本我制作了免安装一键启动整合包。 DiffRhythm介绍 Di♪♪Rhythm:速度惊人、简单至极、具有潜在扩散的...

表情转移对口型软件LivePortrait本地电脑安装部署教程及注意问题

漫画图片文字翻译软件manga-image-translator本地电脑安装部署教程及问题修复

字节跳动多图合成软件UNO本地电脑安装部署教程及注意问题

AI视频生成软件FramePack本地电脑安装部署教程

虚拟试衣产品设计多图合成软件UNO一键启动整合包,人物转动漫工具
UNO是字节跳动开发的一款多主体图像生成软件,解决了角色或物体一致性的问题,可用于漫画、虚拟试衣等场景。我基于当前最新版本制作了免安装一键启动整合包。 UNO介绍 UNO是一款基于扩散模型的AI图像生成工具,核心目标是解决AI生成图像时难以...

临时邮箱,一次性匿名gmail.com邮箱
有时候网站需要测试一些功能,比如注册登录等,需要用到邮箱,但是自己的邮箱有限,不能更多的测试效果,这时候就需要一些不同后缀的一次性邮箱,网上有很多这样的一次性匿名邮箱,后缀很多,非常适合测试使用,下面分享几个比较好用的临时邮箱。 Gmail...