Open ZeroneBo opened 2 months ago
I faced similar issue. You could try building and installing from the source. Then, add the corresponding /lib and /bin to LD_LIBRARY_PATH and PATH respectively.
Hi @tanvisharma, thank you for your reply, I have tried install from https://huggingface.co/docs/bitsandbytes/main/en/installation?backend=Apple+Silicon+%28MPS%29&source=Linux#installation
with the code:
git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/
pip install -r requirements-dev.txt
and
bash install_cuda.sh 121 ~/cuda-121
export BNB_CUDA_VERSION=121
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/YOUR_USERNAME/local/cuda-11.7
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/cuda-121/cuda-12.1/lib64
export PATH=~/cuda-121/cuda-12.1/bin
then pip install -e .
, but it seems report the same error.
Could you provide a more detailed solution?
System Info
Reproduction
python -m bitsandbytes
Expected behavior
I can use cuda with torch and transformers but not bnb, I want to use bnb without error.