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 小时前
普通办公电脑基于 Ollama 的本地 AI 能力技术文档
人工智能·电脑
点云-激光雷达-Slam-三维牙齿2 小时前
速度起飞 笔记本电脑6G显卡llama运行Qwen3.6 35BA3B MTP 大模型
人工智能·python·电脑·llama
言乐63 小时前
Python游戏水平测试辅助系统
开发语言·python·游戏·django·pygame
桑榆4164 小时前
双系统(Windows + Ubuntu)安装流程
linux·windows·ubuntu
Shockang7 小时前
AI 智能体安全沙盒实战
人工智能
yuhulkjv3358 小时前
Claude表格复制到word不再崩溃,AI导出鸭批量导出+格式无损一键搞定
人工智能·ai·c#·word·ai导出鸭
从零开始学习人工智能9 小时前
【踩坑实录】WSL2 解决 onnxruntime\-gpu ImportError: libcudart\.so\.13 无 CUDA13 运行库问题
python
大明者省9 小时前
WSL2 Ubuntu22.04 GPU训练环境配置指南
人工智能·算法·计算机视觉
抱抱宝9 小时前
Agent-study项目教程(03):手写 Mini-ReAct Agent(不依赖框架)
javascript·人工智能·gpt·react.js·prompt·agent
抱抱宝9 小时前
大模型应用开发教程08 | 构建完整 RAG 应用(Chroma/FAISS 实战)
人工智能·gpt·prompt·agent