whisperx环境配置
·
这是原作者的readme:
conda create --name whisperx python=3.10
conda activate whisperx
conda install pytorch==2.0.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install whisperx
但是最后装whisperx时候会自动安装最新版本的torch,这和
GPU 执行需要在系统上安装 NVIDIA 库 cuBLAS 11.x 和 cuDNN 8.x。请参阅CTranslate2文档。
冲突。
我的方法。
1:务必注意cudnn版本是8开头的。
在官网下载低版本的torch和cudnn,例如我下载了torch-2.2.0+cu121-cp310-cp310-linux_x86_64.whl,以及nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl。
2:安装torch和cudnn。
pip install torch-2.2.0+cu121-cp310-cp310-linux_x86_64.whl nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl
3: 安装torchaudio==2.2.0(和1中对应)
pip install torchaudio==2.2.0
4:安装whisperx
pip install whisperx
这个时候不会再错。
另外由于要连接外网,要配置
export HF_ENDPOINT=https://hf-mirror.com
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)