bugfix
This commit is contained in:
parent
1604885268
commit
943f4b4912
@ -2,9 +2,9 @@
|
||||
"home":"/data/f5tts",
|
||||
"user":"f5tts",
|
||||
"passwd":"Ymq@651018",
|
||||
"modelpath":"/share/models/QwQ-32B",
|
||||
"modelname":"qwq:32b",
|
||||
"modelpath":"/share/models/SWivid/F5-TTS/F5TTS_Base",
|
||||
"device":"cuda",
|
||||
"port":8101,
|
||||
"ws_port":8102
|
||||
"ws_port":8102,
|
||||
"gpucnt":8
|
||||
}
|
||||
|
@ -5,17 +5,34 @@
|
||||
# user
|
||||
# passwd
|
||||
# modelpath
|
||||
# llms_path
|
||||
#
|
||||
# modelname
|
||||
# gpucnt
|
||||
# port
|
||||
#
|
||||
# 开始要检查安装nvidia驱动
|
||||
|
||||
# 需要下载两个模型
|
||||
# 1)SWivid/F5-TTS
|
||||
# 2)charactr/vocos-mel-24khz
|
||||
sudo apt install git-lfs
|
||||
sudo rm -rf {{home}}
|
||||
sudo mkdir {{home}}
|
||||
sudo chown -R $(id -un):$(id -gn) {{home}}
|
||||
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
|
||||
cat <<EOF> {{home}}/.pip/pip.conf
|
||||
[global]
|
||||
@ -43,13 +60,13 @@ ExecStop=su - {{user}} "killname {{home}}/py/f5tts/app/f5tts.py"
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
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
|
||||
mkdir {{home}}/py
|
||||
pip install git+https://git.kaiyuancloud.cn/yumoqing/apppublic
|
||||
pip install git+https://git.kaiyuancloud.cn/yumoqing/sqlor
|
||||
pip install git+https://git.kaiyuancloud.cn/yumoqing/ahserver
|
||||
pip install f5-tts
|
||||
{{home}}/py3/bin/pip install git+https://git.kaiyuancloud.cn/yumoqing/apppublic
|
||||
{{home}}/py3/bin/pip install git+https://git.kaiyuancloud.cn/yumoqing/sqlor
|
||||
{{home}}/py3/bin/pip install git+https://git.kaiyuancloud.cn/yumoqing/ahserver
|
||||
{{home}}/py3/bin/pip install f5-tts
|
||||
cd {{home}}/py
|
||||
git clone https://git.kaiyuancloud.cn/yumoqing/f5tts
|
||||
sudo deluser {{user}}
|
||||
|
Loading…
Reference in New Issue
Block a user