服务器NVIDIA A30报错:NVIDIA A30 with CUDA capability sm_ 80

服务器NVIDIA A30使用PyTorch训练模型时报错:NVIDIA A30 with CUDA capability sm_ 80 is not compatible with the current PyTorch installation.

报错如下

NVIDIA A30 with CUDA capability sm_ 80 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm _37 sm_ 50 sm_ 60 sm_ 70. If you want to use the NVIDIA A30 GPU with PyTorch, please check the instructions at https:/ /pytorch . org/get-started/ locally/

如图所示:
在这里插入图片描述
解决方案
使用如下命令,安装torch1.9.0与torchvision0.10.0版本即可

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

你可能感兴趣的:(pytorch,深度学习,人工智能)