Can't find package of pytorch1.8.1 and cudatoolkit 11.3

I am trying to install torch=1.8.1 and cudatoolkit=11.3 offline, but I cannot find this package on either website of http://download.pytorch.org/whl/torch_stable.html and https://download.pytorch.org/whl/torch/

Conda packages differ from Python packages.

yeah, I found this. So do you know if there are any ways to install pytorch=1.8.1 and cudatoolkit=11.3 offline? Thanks

Try Conda-Pack.

Thanks, but I checked that using Conda-Pack for offline installation is probably based on the fact that I have installed pytorch=1.8.1 and cudatoolkit=11.3 on other devices, but I don’t have them yet.

Any way, it is hard to collect necessary Conda packages manually. So, you should first create a Conda environment having PyTorch on a machine online.

Yeah, I have tried this, but there’s something wrong as follows:

conda install -n base conda=23.7.3 conda-build=3.26.1

It might solve your issue.

Thanks. I just upgraded Conda, and it seems to work now.

conda update conda

PyTorch installed using the following command seems to be an version of CPU rather than GPU, do you have any ideas on this

conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=11.3 -c pytorch -c conda-forge

image

I could not find a GPU package for PyTorch 1.8.1 and 1.9.1 by using conda:

$ conda create -n pytorch-1.8.1 python==3.7 pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=11.3 -c pytorch -c conda-forge
    pytorch-1.8.1              |      py3.7_cpu_0        65.9 MB  pytorch
    pytorch-cpu-1.1.0          |      py3.7_cpu_0        53.6 MB  pytorch
$ conda create -n pytorch-1.9.1 python==3.7 pytorch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1 cudatoolkit=11.3 -c pytorch -c conda-forge
    pytorch-1.9.1              |      py3.7_cpu_0        73.0 MB  pytorch
    pytorch-cpu-1.1.0          |      py3.7_cpu_0        53.6 MB  pytorch
$ conda create -n pytorch-1.10.1 python==3.7 pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch -c conda-forge
    cudatoolkit-11.3.1         |      hb98b00a_13       603.5 MB  conda-forge
    pytorch-1.10.1             |py3.7_cuda11.3_cudnn8.2.0_0        1.21 GB  pytorch
$ conda create -n pytorch-1.11.0 python==3.7 pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
    cudatoolkit-11.3.1         |       ha36c431_9       815.2 MB  nvidia
    pytorch-1.11.0             |py3.7_cuda11.3_cudnn8.2.0_0        1.02 GB  pytorch
$ conda create -n pytorch-1.12.1 python==3.7 pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
    cudatoolkit-11.3.1         |       ha36c431_9       815.2 MB  nvidia
    pytorch-1.12.1             |py3.7_cuda11.3_cudnn8.3.2_0        1.19 GB  pytorch

@ptrblck Some Conda packages are no longer available at conda-forge.

For example,

# CUDA 11.3
conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=11.3 -c pytorch -c conda-forge

Do you know people that can edit these installation recipes of the PyTorch website?

Which package is missing from conda-forge?

All packages of 1.8.1 are missing:

https://anaconda.org/conda-forge/pytorch/files

We don’t maintain the conda-forge PyTorch binary so you might want to reach out to conda-forge directly. The -c conda-forge usage was most likely downloading a dependency which was missing in the main channel at this time, but I don’t know which one it was.

Why has the installation guide of the PyTorch website been not updated?
There have already been similar reports on this forum:

Contributions are always welcome if you have suggestions how to improve the docs or installation guide.
The majority of the users won’t try to install binaries which were released over 3.5 years ago.
In case you are interested in using these and see any dependency issue or installation error, feel free to suggest a fix in a PR or create an issue.

The installation guide should be revised as follows:

# CUDA 11.1
conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=11.1 -c pytorch -c conda-forge

because there are Conda packages for CUDA 11.1 instead of CUDA 11.3.

# Name         Version           Build              Channel             
pytorch          1.8.1     py3.6_cpu_0              pytorch             
pytorch          1.8.1 py3.6_cuda10.1_cudnn7.6.3_0  pytorch             
pytorch          1.8.1 py3.6_cuda10.2_cudnn7.6.5_0  pytorch             
pytorch          1.8.1 py3.6_cuda11.1_cudnn8.0.5_0  pytorch             
pytorch          1.8.1     py3.7_cpu_0              pytorch             
pytorch          1.8.1 py3.7_cuda10.1_cudnn7.6.3_0  pytorch             
pytorch          1.8.1 py3.7_cuda10.2_cudnn7.6.5_0  pytorch             
pytorch          1.8.1 py3.7_cuda11.1_cudnn8.0.5_0  pytorch             
pytorch          1.8.1     py3.8_cpu_0              pytorch             
pytorch          1.8.1 py3.8_cuda10.1_cudnn7.6.3_0  pytorch             
pytorch          1.8.1 py3.8_cuda10.2_cudnn7.6.5_0  pytorch             
pytorch          1.8.1 py3.8_cuda11.1_cudnn8.0.5_0  pytorch             
pytorch          1.8.1     py3.9_cpu_0              pytorch             
pytorch          1.8.1 py3.9_cuda10.1_cudnn7.6.3_0  pytorch             
pytorch          1.8.1 py3.9_cuda10.2_cudnn7.6.5_0  pytorch             
pytorch          1.8.1 py3.9_cuda11.1_cudnn8.0.5_0  pytorch 

I might create a GitHub issue when I have time.

I found an issue for pytorch 1.8.1 and 1.9.1:

Edit
There is another issue: