B-LoRA运行报错——NameError: name ‘str2optimizer8bit_blockwise‘ is not defined

我在运行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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值