Pytorch CUDA / GPU error

automasterz: <p>There is an error in the log upon starting easydiffusion:<br>
CUDA initialization: The NVIDIA driver on your system is too old (found version 10020).</p>
<p><strong>To Reproduce</strong><br>
Steps to reproduce the behavior:</p>
<ol>
<li>Run ‘Start Stable Diffusion UI.cmd’.</li>
<li>Error will show in log window, cannot enable GPU</li>
<li>NVIDIA-SMI 441.66 Driver Version: 441.66 CUDA Version: 10.2</li>
<li>EasyDiffusion will not allow enabling GPU, stays in CPU mode only.</li>
</ol>
<p><strong>Expected behavior</strong><br>
Program should allow GPU function, GPU has 4GB VRAM.</p>
<ul>
<li>OS: Windows 7 X64</li>
<li>Memory: 32GB RAM</li>
<li>GPU: Nvidia M2000M 4GB VRAM</li>
<li>Browser: Firefox</li>
<li>Version: 115.0.3</li>
</ul>
<p>If possible, do I need to downgrade pytorch version?<br>
I believe I am using latest Nvidia driver and Cuda version for this GPU.<br>
Have tried with invokeai and automatic1111 as well. Can generate via CPU only.</p>
<p>Here is the actual error from pytorch:</p>
<p>git version 2.42.0.windows.1<br>
conda 23.7.3</p>
<p>COMSPEC=C:\Windows\system32\cmd.exe</p>
<p>Name                         AdapterRAM DriverDate          DriverVersion</p>
<hr>
<p>Intel(R) HD Grap…          1073741824 20190529000000.0… 21.20.16.5076<br>
NVIDIA Quadro M2…          4293918720 20191206000000.0… 26.21.14.4166</p>
<p>Python 3.8.5<br>
Launching uvicorn</p>
<p>C:\ED\installer_files\env\lib\site-packages\torch\cuda_<em>init</em>_.py:107: UserWarn<br>
ing: CUDA initialization: The NVIDIA driver on your system is too old (found ver<br>
sion 10020). Please update your GPU driver by downloading and installing a new v<br>
ersion from the URL: <a href="http://www.nvidia.com/Download/index.aspx" class="inline-onebox" rel="noopener nofollow ugc">Download The Latest Official NVIDIA Drivers</a> Alternatively, go<br>
to: <a href="https://pytorch.org" rel="noopener nofollow ugc">https://pytorch.org</a> to install a PyTorch version that has been compiled wit<br>
h your version of the CUDA driver. (Triggered internally at C:\actions-runner_w<br>
ork\pytorch\pytorch\builder\windows\pytorch\c10\cuda\CUDAFunctions.cpp:109.)<br>
return torch._C._cuda_getDeviceCount() &gt; 0<br>
22:26:52.572 INFO MainThread forcing full precision for device: cpu</p>

ptrblck: <p>Update your NVIDIA driver as the error suggests to use a newer PyTorch binary with CUDA 11 or 12 runtime dependencies.</p>

automasterz: <aside class="quote no-group" data-username="automasterz" data-post="1" data-topic="216558">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/a/41988e/48.png" class="avatar"> automasterz:</div>
<blockquote>
<p>Driver Version: 441.66</p>
</blockquote>
</aside>
<p>I believe I am already on the latest nvidia driver version for the m2000m: 441.66</p>

ptrblck: <p>The latest driver still supports Maxwell (although deprecated) so you could still update the driver.</p>

automasterz: <p>I believe the 441.66 is the latest form NVIDIA for windows 7 unless I am overlooking something.</p>
<p>Thanks for your help, I see you have helped MANY on here with various pytorch issues!</p>

ptrblck: <p>I see a recent driver for your M2000 GPU for Windows:<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/1/2/12a635a919c459a602aee56e77162a61092cdc14.png" data-download-href="https://discuss.pytorch.org/uploads/default/12a635a919c459a602aee56e77162a61092cdc14" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/1/2/12a635a919c459a602aee56e77162a61092cdc14_2_689x318.png" alt="image" data-base62-sha1="2EYHcXb2iThhoRKUtEfptvSun1G" width="689" height="318" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/1/2/12a635a919c459a602aee56e77162a61092cdc14_2_689x318.png, https://discuss.pytorch.org/uploads/default/optimized/3X/1/2/12a635a919c459a602aee56e77162a61092cdc14_2_1033x477.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/1/2/12a635a919c459a602aee56e77162a61092cdc14.png 2x" data-dominant-color="F6F6F6"><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">1346×621 65 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>I haven’t tried it, but you could still give it a go. Alternatively, you would be bound to older PyTorch releases with CUDA 10.x runtime dependencies.</p>

automasterz: <p>Got it. Any way to “force” windows 7 to accept this graphics driver if I unpack it? My windows 7 is x64 as well.</p>
<p>Alternatively, how could I downgrade to an older pytorch version so it can ‘see’ this GPU?</p>
<p>Thanks again</p>

ptrblck: <p>I don’t know if you are seeing any issues while installing the driver and am also not deeply familiar with Windows itself.<br>
If you want to downgrade PyTorch, search for the latest binary with CUDA 10.2 <a href="https://pytorch.org/get-started/previous-versions/">here</a> (which seems to be 1.12.1).</p>

automasterz: <p>I was able to upgrade the video driver to Version 442.74, but still get the same error. I may try to force a newer driver to see if it works…</p>
<p>I used the tool nvcleanstall</p>
<p>Update: the above release 570 seems to only work on Windows 10 / 11 unless I can modify it somehow. Looks like I may try to downgrade the pytorch version to 1.12.1 as you suggested…</p>
<p>Currently I am at Nvidia driver version 442.74 and CUDA 10.2 according to nvidia-smi</p>

automasterz: <p>I have a feeling this is related - all of these pytorch versions are no longer available and I believe they may be the ones needed as they support CUDA 10.2:</p>
<p>python -m pip install torch==1.11.0+cu102 torchvision==0.12.0+cu102 torchaudio==0.11.0 --extra-index-url <a href="https://download.pytorch.org/whl/cu102" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu102</a></p>
<p>python -m pip install torch==1.12.0+cu102 torchvision==0.13.0+cu102 torchaudio==0.12.0 --extra-index-url <a href="https://download.pytorch.org/whl/cu102" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu102</a></p>
<p>python -m pip install torch==1.12.1+cu102 torchvision==0.13.1+cu102 torchaudio==0.12.1 --extra-index-url <a href="https://download.pytorch.org/whl/cu102" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu102</a></p>

automasterz: <p>I have a feeling this is not going anywhere. Like all “open source” projects, they are plagued by errors and mismatching files. Even though they claim a card is “supported”, it does not mean it truly is. I have wasted almost a week on this and have nothing to show for it. Looks like I’ll scrap it and try to use an external GPU</p>

ptrblck: <aside class="quote no-group" data-username="automasterz" data-post="11" data-topic="216558">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/a/41988e/48.png" class="avatar"> automasterz:</div>
<blockquote>
<p>Even though they claim a card is “supported”, it does not mean it truly is.</p>
</blockquote>
</aside>
<p>Our current binaries still support Maxwell architectures, which were released in 2014, so over 10 years ago. However, to use the newer CUDA runtime dependencies you would need to update to any NVIDIA driver supporting CUDA 12 (or you could update to the PyTorch binaries with CUDA 11.8 [which we also still build] but would also need to update the NVIDIA driver to a version supporting CUDA 11).</p>
<p>I’ve provided the valid links to these drivers, but since you are still on Windows 7, which is at EOL since Jan 14 2020, you are unable to install these.</p>
<p>I don’t know how else to help but you might want to consider using a supported OS to be able to use any recent SW stack.</p>

jhonsip: <p>Your NVIDIA driver (version 441.66) is too old for EasyDiffusion’s CUDA requirements, so GPU won’t work—only CPU mode is available. You may need to use an older PyTorch version compatible with your driver or update drivers if possible.</p>
<p>sorry, I’m non tech savvy person, but share my opinion</p>