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体验感拉满了简直

相关推荐
阳光是sunny13 小时前
LangGraph 核心概念详解:从编译到可视化
前端·人工智能·后端
测功机之家13 小时前
国内口碑好的测功机公司找哪家
python·物联网
枫叶丹413 小时前
Codex Hooks 实战:给 AI 工作流增加确定性门禁
人工智能·chatgpt·agent·codex
大鹏的NLP博客13 小时前
CMAD:基于紧凑表征学习与马氏距离统计判别的工业异常检测架构
人工智能·深度学习
安逸sgr13 小时前
Agent经典面试题:Agent 安全问题有哪些?如何防止工具误调用和 Prompt Injection?
人工智能·ai·agent·智能体
xlrqx13 小时前
2026年平顶山家电清洗培训设备是否齐全依据多因素来判断
大数据·python
发量惊人的中年网工13 小时前
AI服务器托管怎么选机房?GPU集群对机柜、电力和网络的硬要求
服务器·网络·人工智能
盐焗鹌鹑蛋13 小时前
【Linux】权限
linux
cn分享汇13 小时前
2026 企业 AI 平台:低代码融合赛道
人工智能·低代码·rxjava
2501_9423895513 小时前
为支撑持续攀升的AI资本开支
人工智能·oracle·hbase·database·storm