本文主要是介绍启动百川大模型错误解决:ModuleNotFoundError: No module named ‘bitsandbytes‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.错误信息
Traceback (most recent call last):File "/root/.cache/huggingface/modules/transformers_modules/Baichuan2-13B-Chat-lora23/modeling_baichuan.py", line 735, in quantizefrom .quantizer import quantize_onlineFile "/root/.cache/huggingface/modules/transformers_modules/Baichuan2-13B-Chat-lora23/quantizer.py", line 1, in <module>import bitsandbytes as bnb
ModuleNotFoundError: No module named 'bitsandbytes
2.错误原因排查
pip install torch 默认安装的版本太高导致,如图:
3.错误解决
降低版本:pip install torch==2.0.1
这篇关于启动百川大模型错误解决:ModuleNotFoundError: No module named ‘bitsandbytes‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!