问题描述
报错信息
CUDA SETUP: Required library version not found: libbitsandbytes_cuda126.so. Maybe you need to compile it from source?
CUDA SETUP: Defaulting to libbitsandbytes_cpu.so…
ModuleNotFoundError(“Could not import module ‘validate_bnb_backend_availability’. Are this object’s requirements defined correctly?”)
原因分析:
Windows 系统对 bitsandbytes 的兼容性问题:
bitsandbytes 库对 Windows 的支持不如 Linux 完善,尤其是对高版本 CUDA(如你安装的 12.6)的适配可能存在延迟。错误中提到的 libcudart.so 其实是 Linux 下的 CUDA 库文件,而 Windows 对应的是 cudart64_12.dll,但库的路径搜索逻辑在 Windows 上可能出现混乱。
解决方案:
安装兼容Windows 的bitsandbytes 库。
pip uninstall bitsandbytes -y
pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.0-py3-none-win_amd64.whl
4861

被折叠的 条评论
为什么被折叠?



