I am looking for a guide to install Pytorch successfully , I have a system where I use cuda toolkit == 11.2.2 for tensorflow , but now I want to install pytorch for same version of cuda which is 11.2.2 ,
I just want to keep my installations minimum and don’t wan’t to install different cuda versions for pytorch and tensorflow.
so please help me installing pytorch capable to run on gpu without reinstalling any new cuda libraries
You could build PyTorch from source as described here using your locally installed CUDA 11.2 toolkit.
Thanks for the reply. But from the instructions, it seems I would need system administrator privileges to install NVTX for a CUDA based build. Which is not a possibility for me on a huge shared server with no virtualisation. Are you aware of a repository which might provide precompiled distributions for 11.2? Alternatively, do you know if CUDA 11.0 compiled torch is (by and large) compatible with 11.2 drivers?
Thanks a lot!
No, I’m not aware of pre-built binaries using the latest PyTorch release with CUDA 11.2.
Yes, CUDA11.x drivers are all compatible. In your use case you are depending on backwards compatibility, which should just work. CUDA 11 introduced minor version compatibility, which also allows forward compatibility in 11.x releases.
Thanks! You were right, CUDA 11.1 compiled torch works for my system.
Hi @shape_mismatch ,
How did you get torch for 11.1 CUDA?
Hi. You can find all previous binaries on this page - Previous PyTorch Versions | PyTorch
You could do a search for “11.1” there and you’ll find it.
currently i am using CUDA 11.2,CuDNN 11.2(v126.96.36.199),OpenCV 4.5.2,Cmake 3.19.6 and Python (3.10.9) from Anaconda environment.Currently i am working a Custom data object detection project using Yolov4 Darknet. Afteri sucessfully completing the training the model iwant to convert the trianed modell into Pytorch (i.e) from Darknet to Pytorch.so currently i am in need of installing the pytorch which suits the CUDA 11.2.But in Pytorch webpage there is no pytorch for CUDA 11.2.so in this case can i use the CUDA 11.1 for the Pytorch ? if i can use CUDA 11.1… there are 10 different versions of CUDA 11.1 in the pytorch website.Amoung those ten different versions,which version can i use ? can someone give me a suggestion?
this popped up for my requirement : pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
but it shows error:
ERROR: Could not find a version that satisfies the requirement torch==1.10.1+cu111 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch==1.10.1+cu111
Hii, have you found the solution?
I don’t know why you want to install this old release, but you can find
1.10.1+cu111 using these links for your corresponding Python version: