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

can not get UI running - "The installed version of bitsandbytes was compiled without GPU support" #1931

Closed
1 task done
simingzhao opened this issue May 9, 2023 · 9 comments
Labels
bug Something isn't working stale

Comments

@simingzhao
Copy link

Describe the bug

this is the error message:

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

python3 server.py

Screenshot

image

Logs

Gradio HTTP request redirected to localhost :)
bin /Users/siming/anaconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/Users/siming/anaconda3/envs/textgen/lib/python3.10/site-packages/bitsandbytes/cextension.py:33: UserWarning: 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. "

System Info

Mac M1 Pro
@simingzhao simingzhao added the bug Something isn't working label May 9, 2023
@cornpo
Copy link

cornpo commented May 9, 2023

@Manoz
Copy link
Contributor

Manoz commented May 9, 2023

You have a different issue. The error with bitsandbytes is just a warning. I have the same warning on my Mac and everything works perfectly. The real issue is the KeyError: 'serialized_input'. It has been solved here.

You might want to pull the latest changes on the repository and do a pip install -r requirements.txt --upgrade to update the libraries.

If you're still struggling, here's the setup I have with libraries versions on my Apple Silicon M2.

@silvacarl2
Copy link

try this:

bitsandbytes debugging in case no GPU error:

pip uninstall bitsandbytes && pip install bitsandbytes
python -m bitsandbytes && python -m torch.utils.collect_env

if you still get the error, this is a hack that fixes it, at least on WSL:

cp /home/silvacarl/.local/lib/python3.8/site-packages/bitsandbytes/libbitsandbytes_cuda117.so /home/silvacarl/.local/lib/python3.8/site-packages/bitsandbytes/libbitsandbytes_cpu.so

@milezzz
Copy link

milezzz commented May 11, 2023

I have the same exact issue and hardware as OP and nothing in this thread helped. Has anyone on M1/M2 got this working properly? If so which model please?

@cornpo
Copy link

cornpo commented May 11, 2023

@milezzz Have you tried pip install --upgrade git+https://github.com/TimDettmers/bitsandbytes.git

@milezzz
Copy link

milezzz commented May 12, 2023

Thanks @cornpo I upgraded bitsandbytes but got the same error:

bin /Users/milezzz/miniforge3/envs/textgen/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/Users/milezzz/miniforge3/envs/textgen/lib/python3.10/site-packages/bitsandbytes/cextension.py:33: UserWarning: 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. "
INFO:Loading MetaIX_GPT4-X-Alpaca-30B-4bit...
INFO:llama.cpp weights detected: models/MetaIX_GPT4-X-Alpaca-30B-4bit/gpt4-x-alpaca-30b-ggml-q4_1.bin

Does it matter which model I am testing with?

@simingzhao
Copy link
Author

pip install --upgrade git+https://github.com/TimDettmers/bitsandbytes.git

still not working.....displaying the same error message

@simingzhao
Copy link
Author

@milezzz Have you tried pip install --upgrade git+https://github.com/TimDettmers/bitsandbytes.git

still the same error, does it related to the model I'm testing?

@github-actions github-actions bot added the stale label Jun 12, 2023
@github-actions
Copy link

This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, please leave a comment below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

5 participants