MLU370-M8 chattts-ui快速出击


一、paas平台环境选择

驱动选择:5.10.22及以上

镜像选择:pytorch2.1
在这里插入图片描述

二、代码环境准备

1.代码下载

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

2.环境安装

modelsope

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

git clone -b v4.39.2 https://githubfast.com/huggingface/transformers.git
pip install -e ./transformers/

accelerate

git clone https://githubfast.com/huggingface/accelerate.git
pip install -e ./accelerate/

3.常规pip安装

cd chatTTS-ui_mlu && pip install -r requirements.txt

4.代码修改

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.代码修改

三.算法启动

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

python app.py

在这里插入图片描述
MLU体验感拉满了简直

相关推荐

  1. Element-UI 快速入门

    2024-06-07 07:20:06       37 阅读
  2. Element-UI快速入门

    2024-06-07 07:20:06       37 阅读
  3. Element-UI快速入门

    2024-06-07 07:20:06       41 阅读
  4. Element-ui快速入门

    2024-06-07 07:20:06       39 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-07 07:20:06       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-07 07:20:06       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-07 07:20:06       82 阅读
  4. Python语言-面向对象

    2024-06-07 07:20:06       91 阅读

热门阅读

  1. 门诊住院处方

    2024-06-07 07:20:06       28 阅读
  2. ios 获取图片的一部分区域

    2024-06-07 07:20:06       24 阅读
  3. MYSQL服务器系统变量的使用

    2024-06-07 07:20:06       25 阅读
  4. 深度学习 - 构建神经网络

    2024-06-07 07:20:06       26 阅读
  5. 删除MongoDB索引和缓存问题

    2024-06-07 07:20:06       23 阅读
  6. [Unity]播放音频卡顿问题

    2024-06-07 07:20:06       29 阅读
  7. iOS 实现蓝牙设备重连的四种方式

    2024-06-07 07:20:06       31 阅读
  8. Git常用指令

    2024-06-07 07:20:06       26 阅读
  9. 机器学习-降维算法,PCK,LDA,NMF,LLE

    2024-06-07 07:20:06       26 阅读