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

bitsandbytes CUDA Errors After Manual Patch and Prior Working Install #406

Closed
1 task done
stephenholli opened this issue Mar 18, 2023 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@stephenholli
Copy link

Describe the bug

Starting yesterday I have been unable to get a functional instance running in 8bit or 4bit mode. Prior to performing a git pull on this repo yesterday I had a functional 4bit Llama instance working directly on Windows 10.

Now, after performing the bitsandbytes windows patch with libbitsandbytes_cuda116.dll and updating main.py, I still receive errors. As best I can tell, it appears to be trying to load the .so file instead of the dll. The following is the error text from my latest 1-click installer run.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

  1. Perform install on Windows 10 as per instructions in README.md.
  2. Patch bitsandbytes per Support for LLaMA models #147 (comment)
  3. Run server.py with gptq-bits 8

Screenshot

Screenshot 2023-03-18 085924

Logs

Starting the web UI...

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('C')}
  warn(msg)
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: C:\Windows\System32\installer_files\env did not contain libcudart.so as expected! Searching further paths...
  warn(msg)
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/Windows/System32/installer_files/env/etc/xml/catalog'), WindowsPath('/C'), WindowsPath('file')}
  warn(msg)
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
  warn(msg)
CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine!
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: No libcudart.so found! Install CUDA or the cudatoolkit package (anaconda)!
  warn(msg)
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: No GPU detected! Check your CUDA paths. Proceeding to load CPU-only library...
  warn(msg)
CUDA SETUP: Loading binary C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
[WinError 193] %1 is not a valid Win32 application
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine!
CUDA SETUP: Loading binary C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
[WinError 193] %1 is not a valid Win32 application
C:\Windows\System32\installer_files\env\lib\site-packages\bitsandbytes\cextension.py:31: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
No models are available! Please download at least one.
Press any key to continue . . .

System Info

Windows 10 - latest update
Nvidia RTX 4090 - latest driver - cuda toolkit 11.6
@stephenholli stephenholli added the bug Something isn't working label Mar 18, 2023
@oobabooga
Copy link
Owner

Duplicate of #400

@oobabooga oobabooga marked this as a duplicate of #400 Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants