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

相关推荐
2zcode1 分钟前
基于Matlab的深度学习智能行人检测与统计系统
人工智能·深度学习·目标跟踪
渡我白衣2 分钟前
Linux网络编程:基于UDP 的聊天室雏形
linux·网络·udp
宇寒风暖5 分钟前
Flask 框架全面详解
笔记·后端·python·学习·flask·知识
哪 吒15 分钟前
【2025C卷】华为OD机试九日集训第3期 - 按算法分类,由易到难,提升编程能力和解题技巧
python·算法·华为od·华为od机试·2025c卷
weixin_4640780722 分钟前
机器学习sklearn:过滤
人工智能·机器学习·sklearn
weixin_4640780725 分钟前
机器学习sklearn:降维
人工智能·机器学习·sklearn
gnawkhhkwang28 分钟前
io_getevents 和 io_pgetevents 系统调用及示例
linux·c语言·开发语言
数据与人工智能律师31 分钟前
智能合约漏洞导致的损失,法律责任应如何分配
大数据·网络·人工智能·算法·区块链
朱小弟cs632 分钟前
Orange的运维学习日记--23.Linux计划任务详解
linux·运维·学习
张艾拉 Fun AI Everyday39 分钟前
小宿科技:AI Agent 的卖铲人
人工智能·aigc·创业创新·ai-native