bitsandbytes
bitsandbytes copied to clipboard
RuntimeError: Something when wrong when trying to find file. Maybe you do not have a linux system?
System Info
Debian 11, python3.10, cuda 12.1, accelerate 0.30.1
Reproduction
python - m bitsandbytes
Expected behavior
/home/chaiwei/venv/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:147: UserWarning: /opt/conda did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths... warn(msg) CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so CUDA SETUP: Highest compute capability among GPUs detected: 8.9 CUDA SETUP: Detected CUDA version 121 CUDA SETUP: Loading binary /home/chaiwei/venv/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda121.so...
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/chaiwei/venv/lib/python3.10/site-packages/bitsandbytes/main.py", line 95, in
If I import bitsandbytes in python3.10, it shows the correct cuda info
/home/chaiwei/venv/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:147: UserWarning: /opt/conda did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths... warn(msg) CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so CUDA SETUP: Highest compute capability among GPUs detected: 8.9 CUDA SETUP: Detected CUDA version 121 CUDA SETUP: Loading binary /home/chaiwei/venv/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda121.so...
Hi @fantasy-fish
Thanks for reporting. This looks to be a bug in the diagnostics that are run with python -m bitsandbytes. At runtime these full diagnostics are not conducted, so for now you can simply ignore the failure with the diagnostic command.
cc: @Titus-von-Koeller