GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation.

https://blog.csdn.net/Paramagnetism/article/details/115221478https://blog.csdn.net/Paramagnetism/article/details/115221478icon-default.png?t=N7T8https://blog.csdn.net/Paramagnetism/article/details/115221478

1、我的显卡是RTX 3090,安装了CUDA 11.1,以及Pytorch 1.8/1.9,一直报错!!!

但是在理论上,不应该出现这个问题的,因为这些版本都是在兼容范围内的!

这个问题困扰了我一晚上,一直测试了不同版本的pytorch,弄到半夜都没有解决,最后才发现并不是理论上的问题!

因为,按照pytorch官网上说的,需要两者一起装,即cuda11.1+pytorch1.8/1.9,如果分开装就会报错,猜测原因可能两者之间的某些依赖有问题,但不管它了,只要能用就行,这个bug相信官方后面会解决的!

pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html

或者高一个版本:

pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

安装11.1的cuda及对应pytorch即可解决问题
完成后conda list查看pytorch等版本:

在这里插入图片描述

2、我的显卡是RTX 3090,安装了CUDA 11.3,以及Pytorch 1.12 !!!

pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

WSL2+Ubuntu20.04+CUDA11.3+Pytorch 环境搭建_wsl安装pytorch-CSDN博客文章浏览阅读1.8k次,点赞2次,收藏18次。WSL2+Ubuntu20.04+CUDA11.3+Pytorch环境搭建_wsl安装pytorchhttps://blog.csdn.net/m0_47532096/article/details/129272494

3、显卡3090, 安装了CUDA12.3,安装pytorch!!!

记录 Windows11安装支持CUDA12.3的Pytorch版本,验证PyTorch是否安装成功_cuda12.3对应的pytorch版本-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/u014451778/article/details/134838998

  • 12
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

杜比斯特威

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值