【机器学习】GPU版Pytorch安装
GPU版Pytorch安装
一、获取安装指令

注意Note,需要python3.10及以上版本
这是笔者的指令,请根据你的cuda版本对应正确的指令
1 | pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130 |
二、在Anaconda虚拟环境安装
在anaconda虚拟环境中执行命令

三、测试是否生效
运行解决为True,均生效。

四、压力测试
1 | import torch |
笔者显卡为RTX 5070 Ti,运行时间大概为14.30秒
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.


