Ubuntu 22服务器,3.9/3.10都可以,但是 3.11不可以(20250111 官网上说可以了,我也升级了到了Ubuntu 24服务器)

安装GPU 驱动 基于NVIDIA A30 加速卡推理部署通义千问-72B-Chat测试过程-阿里云开发者社区

下载按照Miniconda3

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

然后配置

conda create -n chattts_env310 python=3.10
conda activate chattts_env310
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
#提示Writing to /root/.config/pip/pip.conf


git clone https://github.com/2noise/ChatTTS
cd ChatTTS

pip  install --upgrade -r requirements.txt

首次运行ChatTTS会下载大模型,下次运行就不会了

python examples/cmd/run.py "Your text 1." "Your text 2."

# 如果没有事先下载好 大模型,首次执行的时候,会自动从国外下载,几个GB,很慢
# INFO[0068] #2.2 get: https://huggingface.co/2Noise/ChatTTS/resolve/main/asset/gpt/model.safetensors
# INFO[0068] #2.1 get: https://huggingface.co/2Noise/ChatTTS/resolve/main/asset/gpt/config.json
# INFO[0069] #2.1 writing file asset/gpt/config.json

GPU加持,速度还是可以的

python examples/web/webui.py

我的GPU 服务器会崩溃

运行API 服务

fastapi dev examples/api/main.py --host 0.0.0.0 --port 8000

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐