Comments (7)
Uninstalled and reinstalled torch, but still getting errors.
Installing collected packages: triton, torch, torchvision
Attempting uninstall: triton
Found existing installation: triton 2.2.0
Uninstalling triton-2.2.0:
Successfully uninstalled triton-2.2.0
Attempting uninstall: torchvision
Found existing installation: torchvision 0.17.1
Uninstalling torchvision-0.17.1:
Successfully uninstalled torchvision-0.17.1
Successfully installed torch-2.1.2+cu121 torchvision-0.16.2+cu121 triton-2.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Traceback (most recent call last):
File "/app/stable-diffusion-webui/launch.py", line 48, in <module>
main()
File "/app/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/app/stable-diffusion-webui/modules/launch_utils.py", line 388, in prepare_environment
raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
from stable-diffusion-webui.
I got the same issue, with python 3.10.6.
from stable-diffusion-webui.
stable-diffusion-webui
assumes that you have installed on your computer the Cuda Toolkit. Make sure you have a recent version of it, installed, then run again webui-user
from stable-diffusion-webui.
@cgstag Thanks your reply. But I have installed Cuda and cuda toolkit:
nvidia-cuda-dev/noble,now 12.0.146~12.0.1-4build4 amd64 [installed]
nvidia-cuda-gdb/noble,now 12.0.140~12.0.1-4build4 amd64 [installed]
nvidia-cuda-toolkit/noble,now 12.0.140~12.0.1-4build4 amd64 [installed]
nvidia-cuda-toolkit-doc/noble,now 12.0.1-4build4 all [installed]
nvidia-cuda-toolkit-gcc/noble,now 12.0.1-4build4 amd64 [installed]
python-pycuda-doc/noble,now 2024.1~dfsg-1build2 all [installed]
python3-pycuda/noble,now 2024.1~dfsg-1build2 amd64 [installed]
I'm using Ubuntu 24.04, the output of nv-smi is as following:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.171.04 Driver Version: 535.171.04 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:17:00.0 Off | N/A |
| 0% 37C P8 14W / 320W | 12MiB / 10240MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
| 1 NVIDIA GeForce RTX 3080 Off | 00000000:65:00.0 On | N/A |
| 0% 49C P8 12W / 320W | 378MiB / 10240MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2980 G /usr/lib/xorg/Xorg 4MiB |
| 1 N/A N/A 2980 G /usr/lib/xorg/Xorg 159MiB |
| 1 N/A N/A 3293 G /usr/bin/gnome-shell 66MiB |
| 1 N/A N/A 4596 G ...98,262144 --variations-seed-version 102MiB |
+---------------------------------------------------------------------------------------+
sunyi@sunyi-station-ai:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Jan__6_16:45:21_PST_2023
Cuda compilation tools, release 12.0, V12.0.140
Build cuda_12.0.r12.0/compiler.32267302_0
I have no idea what's wrong here. It bothered me for a while.
The error message:
sunyi@sunyi-station-ai:~/AI/stable-diffusion-webui-bak$ ./webui.sh
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################
################################################################
Running on sunyi user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
glibc version is 2.39
Cannot locate TCMalloc. Do you have tcmalloc or google-perftool installed on your system? (improves CPU memory usage)
Python 3.10.6 (main, Jun 14 2024, 23:52:41) [GCC 13.2.0]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Traceback (most recent call last):
File "/home/sunyi/AI/stable-diffusion-webui-bak/launch.py", line 48, in <module>
main()
File "/home/sunyi/AI/stable-diffusion-webui-bak/launch.py", line 39, in main
prepare_environment()
File "/home/sunyi/AI/stable-diffusion-webui-bak/modules/launch_utils.py", line 386, in prepare_environment
raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
from stable-diffusion-webui.
I figured it out. The "CUDA Version: 12.2 " dumped by nvidia-smi doesn't mean I have installed the CUDA, which only a reference of available CUDA version. So I installed cuda toolkits, the issue solved.
download from: https://developer.nvidia.com/cuda-toolkit-archive
from stable-diffusion-webui.
trying to run A1111 version 1.94. (the a1111 installer is getting worse and worse with every release unfortunately) same error "Torch is not able to use GPU" even though I have webui-forge running on this same machine. So I know this error message is not specific enough. It would be helpful to know what is throwing that error and what exactly it's looking for and where.
from stable-diffusion-webui.
Please use python3.10 and also make sure to downgrade numpy==1.26.4. I think it is numpy 2.x caused issue
from stable-diffusion-webui.
Related Issues (20)
- [Feature Request]: Keep file name toggle on extras batch from directory HOT 1
- [Bug]: AttributeError: 'NoneType' object has no attribute 'lowvram' HOT 5
- OSError: Can't load tokenizer for 'google/t5-v1_1-xxl'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'google/t5-v1_1-xxl' is the correct path to a directory containing all relevant files for a T5TokenizerFast tokenizer. HOT 18
- 如何增加关键词的审核判断呢,例如对接百度的内容审核 HOT 1
- 免费的stable diffusion API, 支持playground, API调用 HOT 2
- [Feature Request]: Update gradio HOT 2
- [Bug]: DPM++ 3M SDE Karras, DPM++ 2M SDE Karras does not appear in Sampling method HOT 2
- [Bug]: Upscaler.py causes infinite loop (fix inside) HOT 2
- [Feature Request]: Auro Flow (Model Support)
- [Bug]: SD3 LoRA HOT 1
- [Feature Request]: clarify in the reamd to set webui.sh. to executable HOT 1
- [Bug]: Git -C command is not recognized by some git versions HOT 3
- [Feature Request]: samplers to be more logically listed HOT 1
- [Bug]: Networkx version error on Ubuntu 20.04 HOT 3
- [Bug]:
- [Bug]: sd_hypernetwork_strength no longer present as an option in quicksettings list
- [Bug]: Installation stalls figuring out if python is installed. HOT 1
- [Issue]: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select) HOT 5
- [minor Feature Request]: checkmark in model list HOT 7
- [Bug]: RuntimeError: Inplace update to inference tensor outside InferenceMode is not allowed.You can make a clone to get a normal tensor before doing inplace update.See https://github.com/pytorch/rfcs/pull/17 for more details. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui.