Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we install Pytorch CUDA 11.3 when the system has CUDA 11.2

Tags:

pytorch

I have cuda 11.2 in my PC and want to install PyTorch. PyTorch has only mentions of CUDA10.2 and 11.3 in it's website

Can I install torch==1.10.1+cu113 on my PC? If not, how can I install PyTorch for CUDA11.2

I don't want to change my CUDA version as I have other applications using it.

like image 200
Hrushi Avatar asked Nov 04 '25 11:11

Hrushi


2 Answers

I tried the one for 11.3 and so far it works fine w/ the GPU:

sudo 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
like image 94
DankMasterDan Avatar answered Nov 07 '25 15:11

DankMasterDan


pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

This worked but is not the latest version though

like image 41
Hrushi Avatar answered Nov 07 '25 16:11

Hrushi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!