bitsandbytes-windows
bitsandbytes-windows copied to clipboard
windows10 anaconda error
i run the command in my conda env:
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 -c pytorch -c nvidia
and it automatically installed pytorch-cuda 11.3 for me. then i upgraded pytorch-cuda manually:
conda install pytorch-cuda=11.6 -c pytorch -c nvidia
and then
pip install git+https://github.com/Keith-Hon/bitsandbytes-windows.git
but when i run python -m bitsandbytes, i got the following error messages:
> python -m bitsandbytes
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
binary_path: D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll
CUDA SETUP: Loading binary D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++ DEBUG INFORMATION +++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++ POTENTIALLY LIBRARY-PATH-LIKE ENV VARS ++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: Please be sure to sanitize sensible info from any such env vars!
++++++++++++++++++++++++++ OTHER +++++++++++++++++++++++++++
COMPILED_WITH_CUDA = True
OS Error Detected!!!
Traceback (most recent call last):
File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\__main__.py", line 47, in <module>
print(f"COMPUTE_CAPABILITIES_PER_GPU = {get_compute_capabilities(cuda)}")
File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\cuda_setup\main.py", line 339, in get_compute_capabilities
check_cuda_result(cuda, cuda.cuDeviceGetCount(ct.byref(nGpus)))
AttributeError: 'NoneType' object has no attribute 'cuDeviceGetCount'
and the code causing error is:
def get_cuda_lib_handle():
# 1. find libcuda.so library (GPU driver) (/usr/lib)
try:
cuda = ct.CDLL("libcuda.so")
except OSError:
CUDASetup.get_instance().add_log_entry('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!')
return None
check_cuda_result(cuda, cuda.cuInit(0))
return cuda
that means i got an OSError and return None.
what should i do?