RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error

AudioSeal 音频水印系统

AudioSeal 音频水印系统

语音合成
PyTorch
Cuda

**AudioSeal** 是 Meta 开源的语音水印系统,用于 AI 生成音频的检测和溯源。

1.RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback):

解决方法:
(1)在终端中运行以下命令,查看详细的错误信息:

 python -m bitsandbytes

输出如下:

这个错误表明 bitsandbytes 在 Windows 系统上无法找到 CUDA 运行时库 libcudart.so。

根本原因:bitsandbytes 在寻找 Linux 风格的 CUDA 库文件 libcudart.so,但您使用的是 Windows 系统。在 Windows 上,CUDA 库文件是 .dll 格式,而不是 Linux 的 .so 格式。

最佳解决方案:使用预编译的 Windows 版本

pip uninstall bitsandbytes
pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl

    您可能感兴趣的与本文相关的镜像

    AudioSeal 音频水印系统

    AudioSeal 音频水印系统

    语音合成
    PyTorch
    Cuda

    **AudioSeal** 是 Meta 开源的语音水印系统,用于 AI 生成音频的检测和溯源。

    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

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

    抵扣说明:

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

    余额充值