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

相关推荐
binary思维几秒前
Ubuntu挂起和休眠
linux·运维·ubuntu
拓端研究室TRL10 分钟前
消费者网络购物意向分析:调优逻辑回归LR与决策树模型在电商用户购买预测中的应用及特征重要性优化
人工智能·算法·决策树·机器学习·逻辑回归
南玖yy13 分钟前
C++ 类模板三参数深度解析:从链表迭代器看类型推导与实例化(为什么迭代器类模版使用三参数?实例化又会是怎样?)
开发语言·数据结构·c++·人工智能·windows·科技·链表
学术-张老师16 分钟前
PABD 2025:大数据与智慧城市管理的融合之道
大数据·论文阅读·人工智能·智慧城市·论文笔记
初叶 crmeb18 分钟前
JAVA单商户易联云小票打印替换模板
java·linux·python
qq_4474294119 分钟前
数据结构与算法:图论——拓扑排序
linux·c语言·学习·图论
Mi Manchi2620 分钟前
力扣热题100之对称二叉树
python·算法·leetcode
緈福的街口21 分钟前
【leetcode】459.重复的子字符串
linux·算法·leetcode
技术吧23 分钟前
Spark-TTS: AI语音合成的“变声大师“
大数据·人工智能·spark
某不知名網友29 分钟前
linux信号详解
linux·运维·服务器