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

相关推荐
wu858773457几秒前
从 Obsidian 到 AI 助手:2026年,你的终极本地知识库方案该怎么选?
人工智能
风之所往_几秒前
Python 3.9 新特性全面总结
python
Briwisdom1 分钟前
Agent 不是工具调用器——理解 Agent 的工作机制
人工智能·codex·ai-agent·claude code·opencode·agent机制
带娃的IT创业者1 分钟前
深度解析 GPT-5.6 Sol:当 AI 模型开始具备“物理世界“的感知力
人工智能·gpt·大模型·技术演进·gpt-5.6·物理世界感知·认知架构
青风972 分钟前
16-ADAPTRACK:基于自适应阈值的多目标跟踪匹配算法
人工智能·算法·目标跟踪
W是笔名7 分钟前
python___容器类型的数据___序列
开发语言·python
AI前沿资讯9 分钟前
AI3D角色生产如何减少返工?用 V2Fun 前移建模与动画流程
人工智能·3d
aqi0017 分钟前
15天学会AI应用开发(十一)从TXT文件构建RAG知识库
人工智能·python·大模型·ai编程·ai应用
AIJWAI17 分钟前
朱雀 AI 检测的核心逻辑是什么?
人工智能
汤姆yu21 分钟前
macOS系统下Aider完整安装、配置与实战使用教程
大数据·人工智能·算法·macos·github·copilot