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库 #552

Open
LiManyuan663 opened this issue Jun 6, 2024 · 0 comments
Open

请问项目是不是不能用bitsandbytes库 #552

LiManyuan663 opened this issue Jun 6, 2024 · 0 comments

Comments

@LiManyuan663
Copy link

好像和bitsandbytes库冲突了

Could not load bitsandbytes native library: module 'jtorch.cuda' has no attribute 'get_device_capability'
Traceback (most recent call last):
  File "/root/miniconda3/envs/peft/lib/python3.9/site-packages/bitsandbytes/cextension.py", line 109, in <module>
    lib = get_native_library()
  File "/root/miniconda3/envs/peft/lib/python3.9/site-packages/bitsandbytes/cextension.py", line 88, in get_native_library
    cuda_specs = get_cuda_specs()
  File "/root/miniconda3/envs/peft/lib/python3.9/site-packages/bitsandbytes/cuda_specs.py", line 38, in get_cuda_specs
    highest_compute_capability=(get_compute_capabilities()[-1]),
  File "/root/miniconda3/envs/peft/lib/python3.9/site-packages/bitsandbytes/cuda_specs.py", line 19, in get_compute_capabilities
    return sorted(torch.cuda.get_device_capability(torch.cuda.device(i)) for i in range(torch.cuda.device_count()))
  File "/root/miniconda3/envs/peft/lib/python3.9/site-packages/bitsandbytes/cuda_specs.py", line 19, in <genexpr>
    return sorted(torch.cuda.get_device_capability(torch.cuda.device(i)) for i in range(torch.cuda.device_count()))
AttributeError: module 'jtorch.cuda' has no attribute 'get_device_capability'

CUDA Setup failed despite CUDA being available. Please run the following command to get more information:

python -m bitsandbytes

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

1 participant