Is PyTorch 1.9.0 supported on CUDA 11.0?

genesis-jamin: <p>I notice on the PyTorch installation page that there is only an option to select CUDA 11.<strong>1</strong> – due to infrastructure constraints we only have access to CUDA 11.<strong>0</strong>. Will this cause any issues with PyTorch 1.9.0?</p>

eqy: <p>If you install a binary package of PyTorch (e.g., from pip, conda), it should use its own version of CUDA distinct from the install on your system. (Only the driver version of your install would be used.) So there shouldn’t be any issues here.</p>

turian: <p><a class="mention" href="/u/eqy">@eqy</a> I have heard that if your Docker or package CUDA version is greater than the system version, there could be problems. Is that true?</p>

eqy: <p>If the drivers are compatible, then there shouldn’t be any issues. Of course, if you see something unexpected, please report the problem here.</p>

mhadnanali: <p>Well, I would like to report a problem.<br>
Here is the error:</p>
<p>ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu11                                                                                                                                                             1 (from versions: 0.4.1, 0.4.1.post2, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.2.0, 1                                                                                                                                                             .3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.                                                                                                                                                             1, 1.10.0)<br>
ERROR: No matching distribution found for torch==1.9.0+cu111</p>
<p>While I am installing from my labmates given conda env .yml file. Which means that he already has this combination installed. Then why I am getting this error. <img src="https://discuss.pytorch.org/images/emoji/apple/open_mouth.png?v=10" title=":open_mouth:" class="emoji" alt=":open_mouth:"></p>

ptrblck: <p>It’s working for me:</p>
<pre><code class="lang-python">pip install torch==1.9.0+cu111 -f  https://download.pytorch.org/whl/cu111/torch_stable.html
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Looking in links: https://download.pytorch.org/whl/cu111/torch_stable.html
Collecting torch==1.9.0+cu111
  Downloading https://download.pytorch.org/whl/cu111/torch-1.9.0%2Bcu111-cp38-cp38-linux_x86_64.whl (2041.3 MB)
     |████████████████████████████████| 2041.3 MB 87 kB/s 
[...]
</code></pre>

mhadnanali: <p>I was trying to create conda env by .yml and having that error. Then I installed it directly by command and it worked. I don’t know the reason but the error was unexpected.</p>

Rayan_Allali: <p>i didnt work for me  pip install torch==1.9.0+cu111 -f  <a href="https://download.pytorch.org/whl/cu111/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu111/torch_stable.html</a><br>
Looking in links: <a href="https://download.pytorch.org/whl/cu111/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu111/torch_stable.html</a><br>
ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions: 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0)<br>
ERROR: No matching distribution found for torch==1.9.0+cu111</p>

ptrblck: <p>Python 3.6-3.9 was only supported in this old build so you might need to downgrade Python itself in your environment.</p>