From 7417e9e5d12b32f967f65d6f85f84ca0579e33c9 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 19 Aug 2024 18:35:27 +0200 Subject: [PATCH] update xtts-webui --- xtts-rocm/install.sh | 4 +++- xtts-rocm/run.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/xtts-rocm/install.sh b/xtts-rocm/install.sh index b7ccccc..fb5f38f 100755 --- a/xtts-rocm/install.sh +++ b/xtts-rocm/install.sh @@ -26,8 +26,10 @@ install_xtts() { sed -i 's/asr_model = WhisperModel(whisper_model, device=device, compute_type="float16")/asr_model = WhisperModel(whisper_model, device=device, compute_type="int8")/' webui/scripts/utils/formatter.py # Deepspeed and ninja (not working) - $python_exec -m pip install ninja #deepspeed + $python_exec -m pip install ninja deepspeed # apt-get install -y ninja-build + + ln -S webui/models models } # Main function diff --git a/xtts-rocm/run.sh b/xtts-rocm/run.sh index 5df19f3..2ae189c 100755 --- a/xtts-rocm/run.sh +++ b/xtts-rocm/run.sh @@ -11,7 +11,8 @@ main() { rocm-smi # Start XTTS - $python_exec webui/app.py --host 0.0.0.0 -v v2.0.3 + cd webui/ + TORCH_BLAS_PREFER_HIPBLASLT=0 ../$python_exec app.py --host 0.0.0.0 -v v2.0.3 } main \ No newline at end of file