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

相关推荐
魔乐社区2 分钟前
DeepSeek在昇腾上的模型部署 - 常见问题及解决方案
人工智能·深度学习·deepseek
likfishdn5 分钟前
Linux的文件与目录管理
linux·运维·服务器
夜幕龙14 分钟前
深度生成模型(二)——基本概念与数学建模
人工智能·深度学习·transformer
游王子19 分钟前
OpenCV(11):人脸检测、物体识别
人工智能·opencv·计算机视觉
山海青风20 分钟前
从零开始玩转TensorFlow:小明的机器学习故事 3
人工智能·机器学习·tensorflow
@心都22 分钟前
机器学习数学基础:35.效度
人工智能·机器学习
幻想趾于现实24 分钟前
傅里叶分析
人工智能
chian-ocean24 分钟前
Linux 文件缓冲区:高效数据访问的幕后推手
linux·运维·服务器
加油=^_^=26 分钟前
【Linux】进程优先级 | 进程调度(三)
linux·运维·服务器
春末的南方城市31 分钟前
VidSketch:具有扩散控制的手绘草图驱动视频生成
人工智能·深度学习·计算机视觉·aigc