aboutsummaryrefslogtreecommitdiff
path: root/app/converter/config.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-24 16:18:38 -0400
committerhistoria <historiavg@proton.me>2026-08-24 16:18:38 -0400
commit919544c0931d53bb81904b6212ff14f856549da3 (patch)
treeaef7161db4cdb43bbd572fdc6c2fa2539726f4ee /app/converter/config.py
parent1ff9a635bd9b033b631a6b525891b7eb44e189d3 (diff)
downloadtts-audiobook-generator-919544c0931d53bb81904b6212ff14f856549da3.tar.gz
feat: option to unload models from audio.cpp per-run
Diffstat (limited to 'app/converter/config.py')
-rw-r--r--app/converter/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/converter/config.py b/app/converter/config.py
index 9f70a73..6eacb41 100644
--- a/app/converter/config.py
+++ b/app/converter/config.py
@@ -83,3 +83,10 @@ AUDIOCPP_CLONE_MODEL_ID = "qwen"
# VoiceDesign); on other families it acts as a style/delivery instruction
# when the model supports one and is ignored otherwise. Empty by default.
AUDIOCPP_INSTRUCTIONS = ""
+
+# Ask the audio.cpp server to unload all currently loaded models before
+# converting, so models left resident by earlier runs free their memory
+# (e.g. VRAM on GPU backends) and only the selected entry loads. Set to
+# False to keep other models resident across runs (the TUI Settings menu
+# exposes this as "Unload models", default Yes).
+AUDIOCPP_UNLOAD_MODELS = True