stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

RuntimeError: Your device does not support the current version of Torch/CUDA! Consider download another version:

Open lukeoc87 opened this issue 7 months ago • 5 comments

Hi, any suggestions to fix this error?

I'm trying to install Stable Diffusion / Forge and not succeeding after many attempts installing / uninstalling / reinstalling.

" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: f2.0.1v1.10.1-previous-659-gc055f2d4 Commit hash: c055f2d43b07cbfd87ac3da4899a6d7ee52ebab9 Traceback (most recent call last): File "D:\Program Files\Forge\webui\launch.py", line 54, in main() File "D:\Program Files\Forge\webui\launch.py", line 42, in main prepare_environment() File "D:\Program Files\Forge\webui\modules\launch_utils.py", line 434, in prepare_environment raise RuntimeError( RuntimeError: Your device does not support the current version of Torch/CUDA! Consider download another version: MSVC v143 - VS 2022 C++ x64/x86 builds tools (latest) Press any key to continue . . . "

Am running Windows 10 Home, x64. OS Build 19045.5737 Processor AMD Ryzen 7 5800H with Radeon Graphics 3.20 GHz Installed RAM 16.0 GB (15.4 GB usable) Graphics Card NVIDIA GeForce RTX 3080 Laptop GPU (8 GB), AMD Radeon(TM) Graphics (497 MB)

Have tried the suggested solution here: https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/988#issuecomment-2282715004 . Have tried uninstalling and reinstalling MSVC v143 - VS 2022 C++ x64/x86 builds tools (latest) and the rebooting.. but not working.

Have tried the one click, have tried via stability matrix, have tried previous version.. [webui_forge_cu121_torch21.7z] (uninstalling & rebooting between each).

Thank you,

lukeoc87 avatar Apr 28 '25 09:04 lukeoc87

I have a feeling it's trying to use your Radeon Graphics instead of the Nvidia GPU. You can try adding --device-id 1 to the COMMANDLINE_ARGS field in your webui-user.bat file.

MisterChief95 avatar Apr 28 '25 22:04 MisterChief95

Thanks for the suggestion, may be part of it as stability matrix could only see AMD as GPU / didn't even give the option of changing to NVIDIA (which is definitely working).

Tried adding that line to the webui-user.bat file but unfortunately got the same error. I double checked and Nvidia GPU is definitely default / device 0..

lukeoc87 avatar Apr 29 '25 08:04 lukeoc87

How did you install pytorch?

MisterChief95 avatar Apr 30 '25 07:04 MisterChief95

Hey - stable diffusion is finally working - thanks for your comments. tried lots of things so unsure which one (or several made a difference), possibly something as simple as reinstalling python and adding to path.. honestly don't know. anyway I'm genuinely grateful for your time to help a stranger on the internet.

lukeoc87 avatar Apr 30 '25 10:04 lukeoc87

I have a feeling it's trying to use your Radeon Graphics instead of the Nvidia GPU. You can try adding --device-id 1 to the COMMANDLINE_ARGS field in your webui-user.bat file.

I had the same issue with a radeon. --device-id 1 fixed it for me. Thanks a lot!!!

GotPythonized avatar Sep 01 '25 15:09 GotPythonized