No way to install PyTorch!

username: LukePoga
cooked: <p>In the past I wrote everything myself in c++ / cuda. So I have seen all this mention of handy libraries for ML. So I thought I would see what it was all about.</p>
<p>So I follow the steps on PyTorch website. I install Anaconda.</p>
<ul>
<li>First problem, no instructions on what command to install pytorch via Annaconda. just some vague reference to a command you need to run.</li>
<li>So I google it and find a random website with a script to do it!! <a href="https://deeplizard.com/learn/video/UWlFM0R_x6I" rel="noopener nofollow ugc">https://deeplizard.com/learn/video/UWlFM0R_x6I</a><br>
wtf guys, anyway the script is an old version of Cuda.<br>
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch</li>
</ul>
<p>so I try a current version<br>
conda install pytorch cudatoolkit=11.1 -c pytorch</p>
<p>Next problem:<br>
Anaconda complains that “The following packages are not available from current channels”</p>
<ul>
<li>cudatoolkit=11.1</li>
</ul>
<p>so thanks for wasting my time Pytorch. I have no way to use you with the current cuda libraries. So back to doing it myself.</p>
<p>How do people work like this?</p>

username: Shisho_Sama
cooked: <p>Hi,<br>
Yes it can be hard at times. but the instructions are given in the official site. just navigate to <a href="https://pytorch.org/" rel="noopener nofollow ugc">https://pytorch.org/</a> and you’ll see this :<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/d/9/d977d2ecfffebf52c341f69b045804a51bca6b58.png" data-download-href="https://discuss.pytorch.org/uploads/default/d977d2ecfffebf52c341f69b045804a51bca6b58" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/d/9/d977d2ecfffebf52c341f69b045804a51bca6b58_2_690x299.png" alt="image" data-base62-sha1="v1OkCMOcfoioK8Mz4JudupiOJhm" width="690" height="299" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/d/9/d977d2ecfffebf52c341f69b045804a51bca6b58_2_690x299.png, https://discuss.pytorch.org/uploads/default/optimized/3X/d/9/d977d2ecfffebf52c341f69b045804a51bca6b58_2_1035x448.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/d/9/d977d2ecfffebf52c341f69b045804a51bca6b58_2_1380x598.png 2x" data-dominant-color="DBD5D5"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1597×694 73.7 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p>Then you simply choose your method, for example I’d like to use pip and install the cuda11 version, I click on pip, then cuda 11.0 and bingo I get my commands to install pytorch :</p>
<pre data-code-wrap="python"><code class="lang-python">pip install torch===1.7.0+cu110 torchvision===0.8.1+cu110 torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
</code></pre>
<p>its as simple as that.<br>
You could also post a question and we’d be more than happy to help you out.<br>
Happy Pytorching <img src="https://discuss.pytorch.org/images/emoji/apple/wink.png?v=12" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p>

username: LukePoga
cooked: <p>Thanks I was able to install Cuda 11.0,but where is Cuda 11.1? Its 3 months old and has updates for Ampere based GPUs.</p>
<p>Not just 11.1, there is 11.1.1 released already.</p>
<p>I hate using old versions. You guys should know with ML every drop counts. So why the super slowness to update?</p>
<p>Say you are spending thousands on A100s, you would not use pytorch because its not maximising the latest CUDA!</p>

username: Shisho_Sama
cooked: <p>Its up to the Team Pytorch <a class="mention" href="/u/ptrblck">@ptrblck</a> may have a better answer as to why.<br>
It maybe that the Cuda11 was released back in May, and the codebase was tested on it. Cuda11.1 was released around september 23 I guess, around 1 month before releasing the stable 1.7.<br>
So it makes sense to stick to the version you have been working on for the past couple of months and not make yourself deal with some probable regression/bugs caused by the new update. (take into account the OSes, drivers, etc as well)<br>
If  there is a need for bleeding edge cuda, anyone can easily build from source and call it a day. For the majority of users though the stability is the primary goal.<br>
Nevertheless, we will be expecting a 1.7.1 in a near future (possibily in December?) and that might include cuda 11.1 I’m not sure though.<br>
Again as I stated earlier, you can always build Pytorch against the latest cudatoolkit and enjoy it. the build process is pretty easy to follow and usually is very straightforward.</p>
<p>Cheers.</p>

username: ptrblck
cooked: <p>The binaries are not shipping with CUDA11.1, as we couldn’t prune libs with this version and were running into errors. If you need to use the latest library versions (CUDA, cudnn, NCCL etc.), you could always build PyTorch from source or use the <a href="https://ngc.nvidia.com/catalog/containers/nvidia:pytorch">NGC docker containers</a>.</p>
<aside class="quote no-group" data-username="LukePoga" data-post="3" data-topic="104437">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/l/b9e5f3/48.png" class="avatar"> LukePoga:</div>
<blockquote>
<p>Say you are spending thousands on A100s, you would not use pytorch because its not maximising the latest CUDA!</p>
</blockquote>
</aside>
<p>Your A100s work with CUDA11.0 and since sm86 is SASS binary compatible with sm80, also the 30XX series works.</p>