Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 09acc1a

Browse files
committed
Small reload change
1 parent d9f34b6 commit 09acc1a

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

modules/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bitsandbytes-windows/

setup-cuda-bnb.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ git clone https://github.com/JarodMica/bitsandbytes-windows.git .\modules\bitsan
44
xcopy .\modules\bitsandbytes-windows\bin\* .\venv\Lib\site-packages\bitsandbytes\. /Y
55
xcopy .\modules\bitsandbytes-windows\bin\cuda_setup\* .\venv\Lib\site-packages\bitsandbytes\cuda_setup\. /Y
66
xcopy .\modules\bitsandbytes-windows\bin\nn\* .\venv\Lib\site-packages\bitsandbytes\nn\. /Y
7+
8+
pause

setup-cuda.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ python -m pip install -e .\modules\tortoise-tts\
1010
python -m pip install -r .\modules\dlas\requirements.txt
1111
python -m pip install -e .\modules\dlas\
1212
python -m pip install -r .\requirements.txt
13+
python -m pip install deepspeed-0.8.3+6eca037c-cp39-cp39-win_amd64.whl
1314

1415
# setup BnB
1516
.\setup-cuda-bnb.bat

src/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3724,8 +3724,12 @@ def unload_tts():
37243724
do_gc()
37253725

37263726
def reload_tts():
3727-
unload_tts()
3728-
load_tts()
3727+
subprocess.Popen(["start.bat"])
3728+
with open("reload_flag.txt", "w") as f:
3729+
f.write("reload")
3730+
os.kill(os.getpid(), signal.SIGTERM) # Or signal.SIGKILL for an even harder kill
3731+
# unload_tts()
3732+
# load_tts()
37293733

37303734
def get_current_voice():
37313735
global current_voice

0 commit comments

Comments
 (0)