我在运行B-LoRA的时候报了标题的错,看了下requirement.txt
文件里面的包的一些版本,应该是bitsandbytes==0.36.0.post2的这个版本的问题。
先删除安装的版本pip uninstall bitsandbytes
,然后安装新的版本pip install bitsandbytes
,然后就可以成功运行了,运行之后有一些FutureWarning,这个没关系,按照warning的报错修改一下就行。
可以先运行一下python -m bitsandbytes
,看看输出的bug report是否和我一致:
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link
================================================================================
/mnt/d/anaconda3/envs/BLora/lib/python3.12/site-packages/bitsandbytes/cuda_setup/main.py:134: UserWarning: /mnt/d/anaconda3/envs/BLora did not contain l