寒武纪MLU 适配faster whisper

适配过程

# 使用寒武纪官网下载的pytorch镜像起容器,进入容器后
# git代码
git clone https://github.com/SYSTRAN/faster-whisper.git
# 模型转换
cd /whisper
python /torch/src/catch/tools/torch_gpu2mlu/torch_gpu2mlu.py -i faster_whisper/
# 获得faster_whisper_mlu代码文件夹
下载asteroid-filterbanks代码
git clone https://github.com/asteroid-team/asteroid-filterbanks.git

python /torch/src/catch/tools/torch_gpu2mlu/torch_gpu2mlu.py -i asteroid-filterbanks/

cd astroid-filterbanks_mlu
# 注释掉requirements.txt中的# torch>=1.8.0
pip install -e .
下载与torch对应版本的lightning

对应版本可以查看lightning官网Versioning Policy — PyTorch Lightning 2.4.0 documentation 进行查看

pip install pytorch-lightning==2.3.0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值