update xtts

This commit is contained in:
Mathieu Broillet 2024-02-17 11:06:25 +01:00
parent 7803eed885
commit 43f354e902
Signed by: mathieu
GPG Key ID: C0E9E0E95AF03319
2 changed files with 5 additions and 0 deletions

View File

@ -121,6 +121,9 @@ RUN python3.10 -m venv /ai/venv/xtts/ --system-site-packages
RUN sed -i '/torch==2.1.1/d' requirements.txt RUN sed -i '/torch==2.1.1/d' requirements.txt
RUN sed -i '/torchaudio==2.1.1/d' requirements.txt RUN sed -i '/torchaudio==2.1.1/d' requirements.txt
RUN /ai/venv/xtts/bin/python -m pip install -r requirements.txt RUN /ai/venv/xtts/bin/python -m pip install -r requirements.txt
RUN sed -i 's/device = "cuda" if torch.cuda.is_available() else "cpu"/device = "cpu"/' /ai/xtts/scripts/utils/formatter.py # disable gpu for faster-whipser as ROCM isn't supported yet
RUN sed -i 's/asr_model = WhisperModel(whisper_model, device=device, compute_type="float16")/asr_model = WhisperModel(whisper_model, device=device, compute_type="int8")/' /ai/xtts/scripts/utils/formatter.py
# Install deepspeed and ninja even though it doesn't work with XTTS (dunno why, compilation errors) # Install deepspeed and ninja even though it doesn't work with XTTS (dunno why, compilation errors)
RUN /ai/venv/xtts/bin/python -m pip install deepspeed ninja RUN /ai/venv/xtts/bin/python -m pip install deepspeed ninja
RUN apt-get install -y ninja-build RUN apt-get install -y ninja-build

View File

@ -143,3 +143,5 @@ services:
volumes: volumes:
- ./xtts/outputs:/ai/xtts/output - ./xtts/outputs:/ai/xtts/output
- ./xtts/models:/ai/xtts/models - ./xtts/models:/ai/xtts/models
- ./xtts/hfmodels:/root/.cache/huggingface
# - ./xtts/finetuned_models:/ai/xtts/finetuned_models