aboutsummaryrefslogtreecommitdiff
path: root/app/backends/sglomni/configs/voxtral_tts.yaml
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-09-03 00:38:47 -0400
committerhistoria <historiavg@proton.me>2026-09-03 00:38:47 -0400
commit7ec70e19b78cbe7438ec4d61e15951f6e8dd0fb8 (patch)
tree5d9a3f3c9846bf5b6690b3d30c6896eac0fee55c /app/backends/sglomni/configs/voxtral_tts.yaml
parentd04a2c53b926ccde0d582dbf4a7360dc0f072205 (diff)
downloadtts-audiobook-generator-7ec70e19b78cbe7438ec4d61e15951f6e8dd0fb8.tar.gz
feat: gplang-omni reserves 70% of gpu 0 memory, preventing oom errors on consumer cards
Diffstat (limited to 'app/backends/sglomni/configs/voxtral_tts.yaml')
-rw-r--r--app/backends/sglomni/configs/voxtral_tts.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/backends/sglomni/configs/voxtral_tts.yaml b/app/backends/sglomni/configs/voxtral_tts.yaml
index 450cbce..b53f83a 100644
--- a/app/backends/sglomni/configs/voxtral_tts.yaml
+++ b/app/backends/sglomni/configs/voxtral_tts.yaml
@@ -1,2 +1,25 @@
+# Voxtral TTS 4B with a pinned AR-engine memory budget.
+#
+# The upstream pipeline (VoxtralTTSPipelineConfig) colocates its three stages
+# (preprocessing -> tts_generation -> vocoder) in one process on GPU 0 and
+# leaves the engine's sglang mem_fraction_static unset: the static pool
+# (weights + KV cache) is auto-sized to nearly all free VRAM at boot. On a
+# 24 GB card that leaves only tens of MiB free once the engine's CUDA graphs
+# and the colocated vocoder are resident — the first /v1/audio/speech request
+# aborts with "CUDA out of memory. Tried to allocate ~100 MiB" and every
+# retry fails identically (the same failure the qwen3_tts/higgs/zonos2
+# vendored configs fix).
+#
+# 0.70 pins the static pool at ~70% of the card (~16.5 GB on a 24 GB GPU —
+# ~8 GB of weights leaves a KV pool far larger than any narration request
+# needs) and leaves ~7 GB for the vocoder, CUDA graphs, transient
+# allocations, and other GPU processes. Precedent: dots_tts.yaml pins this
+# same knob. NOTE the stage name: Voxtral's engine stage is tts_generation,
+# not tts_engine.
config_cls: VoxtralTTSPipelineConfig
model_path: mistralai/Voxtral-4B-TTS-2603
+
+stages:
+ tts_generation:
+ engine:
+ mem_fraction_static: 0.70