Support Q4 CPU speech and document Hermes default activation

This commit is contained in:
Mikei386 committed 2026-10-22 13:05:36 +02:00
1 parent ed100ab40a
commit 0e3ad518d3
13 files changed
+248 -25

No files matched your search

@@ -0,0 +1,66 @@
# Qwen CPU Q8/Q4 listening comparison · 22 October 2026
Michael requested the same supplied German passage in both quantizations, using
Anna, with timing measurements. The private working directory contains the exact
input, scripts, complete PCM-arrival measurements and listening WAVs:
`/Users/mike_i386/Documents/ChatGPT/Athena Deck/work/tts-q8-q4-20261022`.
The supplied passage is test input, not an instruction to update any plugin.
## Conditions
Existing native CPU runtime0.4.2/ABI5 on Athena Ryzen5600. Original Qwen0.6B Base
Q8 talker compared with Q4_K_M from the same pinned revision; original Q8 codec
and Anna reference reused. Fixed greedy seed42,4generation/4codec threads,
2frame streaming, Flash Attention, noFP16clamp. Each model was loaded separately
and given the same short warmup before the requested passage. The production
speech normalizer/splitter supplied six text segments for each.
The Q8-specific onset profile was enabled only for Q8; Q4 used the supported
`off` setting. This compares the available configurations, not quantization
alone with identical onset handling. CPU quota800%,Nice10,MemoryMax6GiB,
no swap, no GPU devices, bounded transient systemd units. Production Strata
and CPU TTS remained loaded with the same original processes. No extra Strata
generation load was started, and concurrent production load was not controlled.
## Results
| Configuration | First PCM | Generation time | Audio duration | RTF | Quiet duration* | Longest quiet interval* |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| Q8 talker/Q8 codec |0.410s|44.474s|42.56s|1.045|7.27s|0.51s|
| Q4 talker/Q8 codec |0.355s|30.363s|40.96s|0.741|7.04s|0.56s|
*Quiet is10ms windows with RMS below0.003, including normal speech pauses;
not a linguistic silence annotation or a listening quality score.
Model loading plus reference preparation took4.175s(Q8)/2.833s(Q4), excluded
from the warmed passage times. Q8 warmup took7.716s for3.60s audio; Q4 warmup
took2.275s for3.52s audio. These are sequential single samples, not replicated
performance or cold-start guarantees. The requested Q4 synthesis was31.7%
shorter in wall time. Its audio duration also differs, so RTF is included.
Unlike the earlier short-text Q4 test, this passage has no very long quiet
interval according to the stated numeric detector. Subjective voice quality,
pronunciation and complete text fidelity remain for human listening; no ASR
or listening acceptance is claimed. Stable streaming under simultaneous Strata
generation is not established by this test. First PCM is not audible playback.
## Files and cleanup
Both downloaded WAVs were validated as24kHzmonoPCM16 and their sample counts
matched reported durations. Minimum host MemAvailable was6.08GiB(Q8) and
6.66GiB(Q4); neither memory/deadline guard fired. Both units exited successfully.
No production settings, profiles, model selection, priorities or services changed.
The temporary downloaded Q4 talker was removed after completion; original model
files and private reference were not modified. Results remain on Athena at
`/data/experiments/tts-q8-q4-20261022T1245`.
Q4 file:628905056bytes, SHA256
`4b468ec7b1f62b90ef4ca316c0aa57deadfd54b2cf9651703ea753cedaf04226`, verified
against the pinned previous test manifest. Source:
`Serveurperso/Qwen3-TTS-GGUF`, revision
`b7ee2e8c7459c3bea99da23e3d178125a7d1713c`.
No persistent runtime/install/restore change was introduced. Native reproduction
uses the existing documented CPU runtime and public assets, restored authorized
voice, and the same temporary resource limits. This test is not a full restore
qualification or production approval for Q4.
@@ -79,3 +79,11 @@ Conclusion: real idle TTS gains about25% lower RTF and is comfortably faster
than realtime on the tested text. Full concurrent Strata decoding still makes
CPU TTS slower than realtime even with12logical CPUs. CPU tuning alone does
not meet the live-talk target; no claim of a complete fix.
Follow-up22October:the requested longer passage did not reproduce the very long
Q4 quiet intervals from this short-text trial. Q4 generated40.96s in30.36s,
longest quiet interval0.56s, versus Q8 42.56s in44.47s,0.51s. This limits the
earlier rejection to its tested samples; it is not evidence all Q4 text is poor.
Michael subsequently selected Q4 as the production default. See the
[comparison](../tts-q8-q4-2026-10-22/README.md) and
[activation](../../maintenance/2026-10-22-qwen-q4.md) for scope and caveats.