Skip to content
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

"The installed version of bitsandbytes was compiled without GPU support" CUDA problem on Windows 10 #879

Closed
AlexxB31 opened this issue Nov 18, 2023 · 4 comments

Comments

@AlexxB31
Copy link

AlexxB31 commented Nov 18, 2023

Hello, I get always an error, when I run python -m bitsandbytes

"The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
function 'cadam32bit_grad_fp32' not found

The main issue is a failed Dreambooth initialization, which ends with:
"CUDA Setup failed despite GPU being available."

CUDA is installed, I have added it as environment to the "Path" and also created a LD_LIBRARY_PATH as demanded
the path is:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3
(just in case this is the wrong kind of cuda)

I have no more idea... Please help, thank

@Greg0mega
Copy link

Yes, I get his too now all of a sudden.

@offmybach
Copy link

did you figure it out yet?

@AlexxB31
Copy link
Author

yes, the solution for me was in another thread here (#858)
The folder "bitsandbytes" inside "venv/.../site-packages" must be replaced with a copy of the folder "bitsandbytes" inside "appdata/.../site-packages" .
If you compare you will see, that the folder in appdata has much more cuda items.

A copy of the full description, just in my words is here:

  1. Open cmd, run this: python.exe -m pip install bitsandbytes-windows
go to C:\Users\Me\AppData\Local\Programs\Python\Python310\Lib\site-packages

or wherever you have installed Python 3.10

  1. copy the "bitsandbytes" folder.

    paste and replace the folder in your "\venv\Lib\site-packages"

for me is C:\stable-diffusion-webui\venv\Lib\site-packages.

@yanhaoYh
Copy link

thanks it sooo useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants