This commit is contained in:
yumoqing 2025-04-06 12:31:51 +00:00
parent 1604885268
commit 943f4b4912
2 changed files with 26 additions and 9 deletions

View File

@ -2,9 +2,9 @@
"home":"/data/f5tts", "home":"/data/f5tts",
"user":"f5tts", "user":"f5tts",
"passwd":"Ymq@651018", "passwd":"Ymq@651018",
"modelpath":"/share/models/QwQ-32B", "modelpath":"/share/models/SWivid/F5-TTS/F5TTS_Base",
"modelname":"qwq:32b", "device":"cuda",
"port":8101, "port":8101,
"ws_port":8102 "ws_port":8102,
"gpucnt":8 "gpucnt":8
} }

View File

@ -5,17 +5,34 @@
# user # user
# passwd # passwd
# modelpath # modelpath
# llms_path
#
# modelname # modelname
# gpucnt # gpucnt
# port # port
# #
# 开始要检查安装nvidia驱动 # 开始要检查安装nvidia驱动
# 需要下载两个模型
# 1SWivid/F5-TTS
# 2charactr/vocos-mel-24khz
sudo apt install git-lfs sudo apt install git-lfs
sudo rm -rf {{home}} sudo rm -rf {{home}}
sudo mkdir {{home}} sudo mkdir {{home}}
sudo chown -R $(id -un):$(id -gn) {{home}} sudo chown -R $(id -un):$(id -gn) {{home}}
sudo apt -y install python3-venv sudo apt -y install python3-venv
if [ -f "/usr/bin/hf-cli" ];then
echo "hf-cli exists"
else
sudo cat <<EOF>/usr/bin/hf-cli
#!/usr/bin/bash
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download --resume-download $1 --local-dir {{llm_path}}/$1
EOF
fi
sudo chmod +x /usr/bin/hf-cli
nohup hf-cli SWivid/F5-TTS &
nohup hf-cli charactr/vocos-mel-24khz &
mkdir {{home}}/.pip mkdir {{home}}/.pip
cat <<EOF> {{home}}/.pip/pip.conf cat <<EOF> {{home}}/.pip/pip.conf
[global] [global]
@ -43,13 +60,13 @@ ExecStop=su - {{user}} "killname {{home}}/py/f5tts/app/f5tts.py"
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
sudo mv {{home}}/{{user}}.service /etc/systemd/system sudo mv {{home}}/{{user}}.service /etc/systemd/system
python3 -m venv {{home}}/py3 /usr/bin/python3 -m venv {{home}}/py3
{{home}}/py3/bin/pip install torch==2.4.0+cu124 torchaudio==2.4.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124 {{home}}/py3/bin/pip install torch==2.4.0+cu124 torchaudio==2.4.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124
mkdir {{home}}/py mkdir {{home}}/py
pip install git+https://git.kaiyuancloud.cn/yumoqing/apppublic {{home}}/py3/bin/pip install git+https://git.kaiyuancloud.cn/yumoqing/apppublic
pip install git+https://git.kaiyuancloud.cn/yumoqing/sqlor {{home}}/py3/bin/pip install git+https://git.kaiyuancloud.cn/yumoqing/sqlor
pip install git+https://git.kaiyuancloud.cn/yumoqing/ahserver {{home}}/py3/bin/pip install git+https://git.kaiyuancloud.cn/yumoqing/ahserver
pip install f5-tts {{home}}/py3/bin/pip install f5-tts
cd {{home}}/py cd {{home}}/py
git clone https://git.kaiyuancloud.cn/yumoqing/f5tts git clone https://git.kaiyuancloud.cn/yumoqing/f5tts
sudo deluser {{user}} sudo deluser {{user}}