bitsandbytes icon indicating copy to clipboard operation
bitsandbytes copied to clipboard

Error when import bnb.nn.Linear8bitLt

Open Alex-Songs opened this issue 3 years ago • 1 comments

CUDA SETUP: CUDA runtime path found: /usr/local/cuda-11.3/lib64/libcudart.so CUDA SETUP: Highest compute capability among GPUs detected: 7.0 CUDA SETUP: Detected CUDA version 113 CUDA SETUP: TODO: compile library for specific version: libbitsandbytes_cuda113_nocublaslt.so CUDA SETUP: Defaulting to libbitsandbytes.so... CUDA SETUP: CUDA detection failed. Either CUDA driver not installed, CUDA not installed, or you have multiple conflicting CUDA libraries! CUDA SETUP: If you compiled from source, try again with make CUDA_VERSION=DETECTED_CUDA_VERSION for example, make CUDA_VERSION=113. Traceback (most recent call last): File "1.py", line 1, in import bitsandbytes as bnb File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/init.py", line 6, in from .autograd._functions import ( File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/autograd/_functions.py", line 4, in import bitsandbytes.functional as F File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/functional.py", line 14, in from .cextension import COMPILED_WITH_CUDA, lib File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/cextension.py", line 41, in lib = CUDALibrary_Singleton.get_instance().lib File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/cextension.py", line 37, in get_instance cls._instance.initialize() File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/cextension.py", line 27, in initialize raise Exception('CUDA SETUP: Setup Failed!') Exception: CUDA SETUP: Setup Failed!

Alex-Songs avatar Aug 24 '22 07:08 Alex-Songs

It seems a specific compiled version has not been found even though it should be available.

Can you please provide the output for the command

ls /mnt/dolphinfs/hdd_pool/docker/user/hadoop-speech/users/lisong39/python_packs/lib/python3.8/site-packages/bitsandbytes-0.32.1-py3.8.egg/bitsandbytes/

TimDettmers avatar Sep 05 '22 22:09 TimDettmers

I believe this is fixed in the latest version. It prints instructions on how to debug the situation and alternatively prints out compilation instructions which should fix the issue.

TimDettmers avatar Oct 27 '22 14:10 TimDettmers