MLU370-M8 chattts-ui快速出击

目录


一、paas平台环境选择

驱动选择:5.10.22及以上

镜像选择:pytorch2.1

二、代码环境准备

1.代码下载

bash 复制代码
git clone https://github.com/jianchang512/chatTTS-ui
python /torch/src/catch/tools/torch_gpu2mlu/torch_gpu2mlu.py -i chatTTS-ui/

2.环境安装

modelsope

bash 复制代码
git clone https://github.com/modelscope/modelscope.git
python /torch/src/catch/tools/torch_gpu2mlu/torch_gpu2mlu.py -i modelscope/
pip install -r modelscope/requirements/framework.txt
pip install -e ./modelscope_mlu/

transformers

bash 复制代码
git clone -b v4.39.2 https://githubfast.com/huggingface/transformers.git
pip install -e ./transformers/

accelerate

bash 复制代码
git clone https://githubfast.com/huggingface/accelerate.git
pip install -e ./accelerate/

3.常规pip安装

bash 复制代码
cd chatTTS-ui_mlu && pip install -r requirements.txt

4.代码修改

bash 复制代码
vocos/heads 

 	+	mag = mag.cpu()
    +   x = x.cpu()
    +   y = y.cpu()
        S = mag * (x + 1j * y)
    +    mag = mag.mlu()
    +    x = x.mlu()
    +   y = y.mlu()
    +    S =S.mlu()

4.代码修改

三.算法启动

模型默认采用魔塔路径下载,这里不做模型下载教学

bash 复制代码
python app.py

MLU体验感拉满了简直

相关推荐
OpenMiniServer1 分钟前
JsonKV协议技术文档
linux·服务器·网络
别多香了2 分钟前
python基础之面向对象&异常捕获
开发语言·python
适应规律7 分钟前
GPU利用率分析
人工智能
Silence_Jy8 分钟前
Kimi K2技术报告
人工智能·python·深度学习·transformer
AI Echoes12 分钟前
自定义 LangChain 文档加载器使用技巧
数据库·人工智能·python·langchain·prompt·agent
长河13 分钟前
OpenSpec 实战:用规范驱动开发破解 AI 编程协作难题
人工智能
最晚的py14 分钟前
rnn循环神经网络
人工智能·rnn·深度学习·神经网络
90后小陈老师18 分钟前
Java项目接入AI大模型的四种方式
java·开发语言·人工智能
向量引擎小橙20 分钟前
深度|AI浪潮已至:在2026年,我们真正需要掌握什么?
人工智能
小鹏linux28 分钟前
【linux】进程与服务管理命令 - chkconfig
linux·运维·服务器