diff --git a/docs/experiments/tts-cpu-2026-10-13/README.md b/docs/experiments/tts-cpu-2026-10-13/README.md new file mode 100644 index 0000000..e8c816a --- /dev/null +++ b/docs/experiments/tts-cpu-2026-10-13/README.md @@ -0,0 +1,47 @@ +# Existing Qwen TTS on CPU — 2026-10-13 + +Requested short German speech test without modifying or unloading Strata. +Existing Qwen/Qwen3-TTS-12Hz-1.7B-Base weights, pinned revision from +`tts_runtime.py`, and built-in Ryan preset embedding. Synthetic text: +"Hallo Michael, die Sprachausgabe läuft jetzt auf der CPU." + +The production faster-qwen3-tts Deck worker currently hardcodes CUDA, including +preset tensors and warmup. This isolated test uses the already installed +official Qwen3TTSModel API with the same model/preset on CPU, float32 and SDPA; +it is not a new production CPU integration. No installation/download needed. + +| Measurement | 2 threads | 6 threads | +|---|---:|---:| +| Imports | 4.37 s | 3.82 s | +| Model load | 2.35 s | 1.56 s | +| Total ready time | 6.73 s | 5.38 s | +| First generation | 28.79 s | 26.94 s | +| Audio duration | 5.28 s | 5.28 s | +| Real-time factor (generation / audio) | 5.45 | 5.10 | + +With 2 threads, a second generation from the already loaded model takes +28.23 seconds (RTF 5.35). With 6 threads, first complete audio arrives about +32.32 seconds after process start. Model-file page caches may be warm; these +are process/model startup timings, not guaranteed cold-host timings. This +non-streaming test does not measure streaming time to first audio chunk. + +Conclusion: CPU execution works, but the existing 1.7B model is about five +times slower than real-time here. Increasing CPU threads from two to six did +not overcome the deficit. No new TTS policy or GPU allocation adopted. + +## Isolation and verification + +Temporary containers: no GPU devices, CUDA_VISIBLE_DEVICES=-1, no network, +read-only existing state mount, 12-GiB memory limit with no swap, explicit +2/6 CPU quota and torch threads. Weights and presets unchanged; only public +bundled Ryan voice used. The offline model generated valid nonzero mono +24000-Hz PCM WAV files. No subjective pronunciation/voice-quality assessment +was performed. + +Strata's GPU process PID and allocations (11184 / 15274 MiB) remained exactly +unchanged through both tests. Test containers exited and were removed. CPU +tests share host CPU/memory resources, so this does not guarantee unaffected +concurrent LLM latency. No production logs, private voices or user speech read. +Own synthetic audio/results remain under +`/opt/athena-deck-dev/tts-cpu-test-20261013`; only synthetic text/metrics are +committed. No production code/config or restore recipe changed. diff --git a/docs/experiments/tts-cpu-2026-10-13/six-threads.json b/docs/experiments/tts-cpu-2026-10-13/six-threads.json new file mode 100644 index 0000000..59ea3c7 --- /dev/null +++ b/docs/experiments/tts-cpu-2026-10-13/six-threads.json @@ -0,0 +1,18 @@ +{ + "phase": "complete", + "cpu_threads": 6, + "text": "Hallo Michael, die Sprachausgabe l\u00e4uft jetzt auf der CPU.", + "runs": [ + { + "run": 1, + "generation_seconds": 26.943378145000224, + "audio_seconds": 5.28, + "realtime_factor": 5.102912527462164, + "faster_than_realtime": false, + "sample_rate": 24000 + } + ], + "import_seconds": 3.8178626960002475, + "load_seconds": 1.5615185639999254, + "ready_seconds": 5.3795274340000105 +} \ No newline at end of file diff --git a/docs/experiments/tts-cpu-2026-10-13/two-threads.json b/docs/experiments/tts-cpu-2026-10-13/two-threads.json new file mode 100644 index 0000000..5a3bcbb --- /dev/null +++ b/docs/experiments/tts-cpu-2026-10-13/two-threads.json @@ -0,0 +1,26 @@ +{ + "phase": "complete", + "cpu_threads": 2, + "text": "Hallo Michael, die Sprachausgabe l\u00e4uft jetzt auf der CPU.", + "runs": [ + { + "run": 1, + "generation_seconds": 28.79211995500009, + "audio_seconds": 5.28, + "realtime_factor": 5.4530530217803195, + "faster_than_realtime": false, + "sample_rate": 24000 + }, + { + "run": 2, + "generation_seconds": 28.22883306199992, + "audio_seconds": 5.28, + "realtime_factor": 5.346369898106046, + "faster_than_realtime": false, + "sample_rate": 24000 + } + ], + "import_seconds": 4.374509268000111, + "load_seconds": 2.3542950940000082, + "ready_seconds": 6.728943532999892 +} \ No newline at end of file