The text was updated successfully, but these errors were encountered: I don't think the function torch._C._cuda_setDevice or torch.cuda.set_device is available in a cpu-only build. File "C:\ai\stable-diffusion-webui\launch.py", line 272, in prepare_environment What is the point of Thrower's Bandolier? Are there tables of wastage rates for different fruit and veg? What is the point of Thrower's Bandolier? Connect and share knowledge within a single location that is structured and easy to search. Command: "C:\ai\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117 I'm stuck with this issue and the problem is I cannot use the latest version of pytorch (currently using 1.12+cu11.3). So something is definitely hostile as you said =P. Why does Mister Mxyzptlk need to have a weakness in the comics? Just renamed it to something else and delete the file named 'torch.py' in the directory Thanks for contributing an answer to Stack Overflow! Later in the night i did the same and got the same error. Is CUDA available: True [notice] A new release of pip available: 22.3 -> 23.0.1 Is there a single-word adjective for "having exceptionally strong moral principles"? You might need to install the nightly binary, since Autocasting wasnt shipped in 1.5. . If you are wondering whether you have a proper CUDA setup, that question belongs on the CUDA setup forum, and the verification steps are provided in the CUDA linux install guide. Steps to reproduce the problem. to your account, Everything was working well, I then proceeded to update some extensions, and when i restarted stable, I got this error message, Already up to date. module run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'") You may re-send via your AttributeError: module 'torch._C' has no attribute '_cuda_setDevice' facebookresearch/detr#346 marco-rudolph mentioned this issue on Sep 1, 2021 error This is more of a comment then an answer. You just need to find the Why does Mister Mxyzptlk need to have a weakness in the comics? Error code: 1 What else should I do to get right running? cuDNN version: Could not collect It is lazily initialized, so you can You signed in with another tab or window. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Traceback (most recent call last): --------------------------------------------------------------------------- AttributeError Traceback (most recent call last)