-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CUDA Setup failed despite GPU being available #858
Comments
Bitsandbytes was not supported windows before, but my method can support windows.(yuhuang) 3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows 4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https:/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310) |
OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X. Bitsandbytes can support ubuntu.(yuhuang) 3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows 4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https:/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310) |
Same problem from the coment above |
or wherever you have installed Python 3.10 idk. copy bitsandbytes folder.
for me is C:\stable-diffusion-webui\venv\Lib\site-packages. now it works. |
Hi, @IIIWHKIII , I have done what you said, and it still gives error, I am not a programmer, and this problem is driving me crazy. Before an automatic update of windows it worked perfectly. windows 10 OS Help please!!! |
Please, I don't understand the instructions, the path where I have SD installed is C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui, but there is no py310 nor python.exe, these appear in another location C:\Usersuario\AppData\Local\Programs\Python\Python310 My SD is a version with launcher |
@Delios11 try this.
|
Bitsandbytes supported windows (yuhuang) 1 open folder C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui,Click the address bar of the folder and enter CMD or WIN+R,enter, CMD , enter,cd /d C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui 2 enter,C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes 3 enter, C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes-windows 4 enter,C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip install https:/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl is ok? |
1 打开文件夹C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui,点击文件夹地址栏输入CMD 或 WIN+R,输入, CMD ,输入,cd /d C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui 2 输入,C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes 3 输入, C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes-windows 4 输入,C:\Usersuario\Documents\SD_Auto1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip install https:/jllllll/bitsandbytes-windows-webui/releases/download/wheels /bitsandbytes-0.41.1-py3-none-win_amd64.whl 可以吗 |
what i have to do was drastically, i erease all my SD and reinstalled everything, python, SD and when i mean i erease everything its everything not the image though, i did find a solution after 4 days of looking. |
Hi @IIIWHKIII I have followed all the steps that you mark but it keeps giving the same error. What despair! Thank you very much for your answer, I don't know what's wrong, I loaded the venv folder and the bitsandbytes again, but after replacing them I still got the error. |
Hi @swumagic , I did what you describe, but it gave me this 404 link error in the console, however when I run the link from this git Hub page it does lead to the file download. |
你安装了VS 2022没?安装这个就可以编译 |
Thanks so much, I have been able to start it, after uninstalling everything and reinstalling, but with some error at the beginning. Can the lora cause this error? |
Still getting this error after trying the above steps and copy the files into stabdiff venv folder. Is there a fix coming for this? In so far as can I give up trying these work around and wait for the next release? |
Thx this works for me :) |
see also #876 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. |
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https:/TimDettmers/bitsandbytes/issues
bin /lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda113.so
False
/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: Found duplicate ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] files: {PosixPath('/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/libcudart.so.11.0'), PosixPath('/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/libcudart.so')}.. We'll flip a coin and try one of these, in order to fail forward.
Either way, this might cause trouble in the future:
If you get
CUDA error: invalid device function
errors, the above might be the cause and the solution is to make sure only one ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] in the paths that we search based on your env.warn(msg)
CUDA SETUP: CUDA runtime path found: /lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/libcudart.so.11.0
CUDA SETUP: Highest compute capability among GPUs detected: 7.5
CUDA SETUP: Detected CUDA version 113
CUDA SETUP: Required library version not found: libbitsandbytes_cuda113.so. Maybe you need to compile it from source?
CUDA SETUP: Defaulting to libbitsandbytes_cpu.so...
================================================ERROR=====================================
CUDA SETUP: CUDA detection failed! Possible reasons:
CUDA SETUP: If you compiled from source, try again with
make CUDA_VERSION=DETECTED_CUDA_VERSION
for example,make CUDA_VERSION=113
.CUDA SETUP: The CUDA version for the compile might depend on your conda install. Inspect CUDA version via
conda list | grep cuda
.================================================================================
CUDA SETUP: Something unexpected happened. Please compile from source:
git clone [email protected]:TimDettmers/bitsandbytes.git
cd bitsandbytes
CUDA_VERSION=113 make cuda11x
python setup.py install
CUDA SETUP: Setup Failed!
Traceback (most recent call last):
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/init.py", line 6, in
from . import cuda_setup, utils, research
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/research/init.py", line 1, in
from . import nn
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/research/nn/init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/research/nn/modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/optim/init.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "/lfs/hyperturing1/0/allyc/miniconda/envs/cs197/lib/python3.10/site-packages/bitsandbytes/cextension.py", line 20, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Please run the following command to get more information:
The text was updated successfully, but these errors were encountered: