mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
fixes xtts install commands
+correct the install commands to install xtts the right way for nvidia with cuda +removed deepspeed flag since not all users can run it
This commit is contained in:
@@ -232,7 +232,7 @@ if defined xtts_env_exist (
|
||||
|
||||
REM Start XTTS
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% XTTS launched in a new window.
|
||||
start cmd /k "title XTTSv2 API Server && cd /d %~dp0xtts && python -m xtts_api_server --deepspeed"
|
||||
start cmd /k "title XTTSv2 API Server && cd /d %~dp0xtts && python -m xtts_api_server"
|
||||
)
|
||||
)
|
||||
|
||||
@@ -282,7 +282,7 @@ if defined xtts_env_exist (
|
||||
|
||||
REM Start XTTS
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% XTTS launched in a new window.
|
||||
start cmd /k "title XTTSv2 API Server && cd /d %~dp0xtts && python -m xtts_api_server --deepspeed"
|
||||
start cmd /k "title XTTSv2 API Server && cd /d %~dp0xtts && python -m xtts_api_server"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -470,7 +470,7 @@ install_xtts() {
|
||||
# Use the GPU choice made earlier to set the correct PyTorch index-url
|
||||
if [ "$GPU_CHOICE" == "1" ]; then
|
||||
log_message "INFO" "Installing NVIDIA version of PyTorch"
|
||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
||||
pip3 install torch==2.1.1+cu118 torchvision torchaudio==2.1.1+cu118 --index-url https://download.pytorch.org/whl/cu118
|
||||
install_st_extras_post
|
||||
elif [ "$GPU_CHOICE" == "2" ]; then
|
||||
log_message "INFO" "Installing AMD version of PyTorch"
|
||||
|
||||
@@ -254,18 +254,10 @@ if /i "%install_xtts_requirements%"=="Y" (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Conda environment xtts...
|
||||
call conda activate xtts
|
||||
|
||||
|
||||
|
||||
REM Install pip requirements
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements for xtts...
|
||||
pip install xtts-api-server
|
||||
pip install pydub
|
||||
pip install stream2sentence
|
||||
|
||||
REM Use the GPU choice made earlier to set the correct PyTorch index-url
|
||||
if "%GPU_CHOICE%"=="1" (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing NVIDIA version of PyTorch for xtts...
|
||||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
||||
pip install torch==2.1.1+cu118 torchvision torchaudio==2.1.1+cu118 --index-url https://download.pytorch.org/whl/cu118
|
||||
goto :install_xtts
|
||||
) else if "%GPU_CHOICE%"=="2" (
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing AMD version of PyTorch for xtts...
|
||||
@@ -277,6 +269,12 @@ if /i "%install_xtts_requirements%"=="Y" (
|
||||
goto :install_xtts
|
||||
)
|
||||
|
||||
REM Install pip requirements
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements for xtts...
|
||||
pip install xtts-api-server
|
||||
pip install pydub
|
||||
pip install stream2sentence
|
||||
|
||||
:install_xtts
|
||||
REM Create folders for xtts
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Creating xtts folders...
|
||||
|
||||
Reference in New Issue
Block a user