Support Q4 CPU speech and document Hermes default activation
This commit is contained in:
1 parent
ed100ab40a
commit
0e3ad518d3
13 files changed
+248
-25
No files matched your search
@@ -1,3 +1,14 @@
|
||||
## Qwen Q4 CPU speech ·22 October2026
|
||||
|
||||
Michael selected Qwen0.6B Q4_K_M with the existing Q8 codec and Anna reference.
|
||||
Normal separate Deck profile`qwen-06b-q4-anna-cpu`,published and warm; original
|
||||
Q8 profile/weights retained unpublished. All eight existing Hermes Q8 profiles
|
||||
now explicitly select Q4 through the official CLI. No GPU/reserve/Strata profile
|
||||
change. Small Deck app update at idle, existing native0.4.2 runtime reused.
|
||||
[Activation and verification](maintenance/2026-10-22-qwen-q4.md).
|
||||
Concurrent Strata/live-phone playback still needs acceptance; the single-text
|
||||
Q4 listening test is not a blanket realtime guarantee.
|
||||
|
||||
## Strata v0.2.2 / Engine0.1.47 · 21 October 2026, 23 Uhr (current runtime)
|
||||
|
||||
Pinned011c9e600a93bbc9fd451c563501b5831c32bbca, CUDA13SM86/120, native in-place
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Qwen3-TTS 0.6B Q8 als natives CPU-Profil
|
||||
# Qwen3-TTS 0.6B Q8/Q4 als natives CPU-Profil
|
||||
|
||||
Das Profil verwendet `realtimetts-qwen-native-cpu==0.4.2` (ABI5) direkt,
|
||||
ohne PyTorch, CUDA, zusätzlichen dauerhaften Container oder Hermes-Anpassung.
|
||||
Q8-Talker und Q8-Sprach-Codec werden in der normalen Deck-Bibliothek verwaltet.
|
||||
Q8- oder Q4_K_M-Talker und Q8-Sprach-Codec werden in der normalen Deck-Bibliothek verwaltet.
|
||||
Die Stimme kommt aus der bestehenden privaten Referenz unter
|
||||
`speech-voices/Anna/reference.wav`; `speech-voices/default.json` bestimmt den
|
||||
neutralen API-Stimmnamen `default`.
|
||||
@@ -14,6 +14,7 @@ neutralen API-Stimmnamen `default`.
|
||||
2. In der Bibliothek/Modellsuche `Serveurperso/Qwen3-TTS-GGUF` verwenden,
|
||||
Revision `b7ee2e8c7459c3bea99da23e3d178125a7d1713c`:
|
||||
`qwen-talker-0.6b-base-Q8_0.gguf` als Hauptmodell,
|
||||
alternativ `qwen-talker-0.6b-base-Q4_K_M.gguf`,
|
||||
`qwen-tokenizer-12hz-Q8_0.gguf` als Sprach-Codec.
|
||||
Die Hashes stehen im [Messbericht](experiments/qwen06-native-cpu-2026-10-19/README.md).
|
||||
Andere Quantisierungen/Revisionen werden nicht ungeprüft freigegeben.
|
||||
@@ -28,6 +29,15 @@ neutralen API-Stimmnamen `default`.
|
||||
weiterhin `/v1/audio/speech`, Modell `tts`, Stimme `default`; kein neuer
|
||||
Client-Endpunkt und keine neuen Zugangsdaten.
|
||||
|
||||
Seit22.Oktober ist auf Michaels Installation **Qwen0.6B Q4 Anna CPU** ausgewählt,
|
||||
API-ID `qwen-06b-q4-anna-cpu`. Q8 bleibt als separates, deaktiviertes Profil
|
||||
erhalten. Hermes fordert die konkrete Q4-ID an; der allgemeine Alias `tts`
|
||||
kann bei gleichzeitig veröffentlichter OmniVoice-Ausgabe mehrdeutig sein.
|
||||
Q4 nutzt ausdrücklich `onset_silence_profile=off`; die vorhandene Q8-spezifische
|
||||
Korrektur wird nicht auf Q4 übertragen. Beide verwenden denselben Q8-Codec,
|
||||
dieselbe private Anna-Referenz und die bereits installierte CPU-Laufzeit0.4.2.
|
||||
[Aktivierung, Prüfung und Rückfall](maintenance/2026-10-22-qwen-q4.md).
|
||||
|
||||
## Ressourcen und Verhalten
|
||||
|
||||
- Vier Generierungs- und vier Decoder-Threads, zwei Codec-Frames (160ms),
|
||||
|
||||
@@ -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.
|
||||
@@ -0,0 +1,102 @@
|
||||
# Qwen Q4 as Hermes speech default ·22 October2026
|
||||
|
||||
Michael requested Q4 as the default for later Conduit telephone use after
|
||||
listening to the requested Q8/Q4 comparison. The specific passage generated
|
||||
40.96s audio in30.36s with Q4 versus42.56s in44.47s with Q8. This is one warmed
|
||||
CPU comparison, not proof of smooth playback under concurrent Strata load.
|
||||
See[comparison](../experiments/tts-q8-q4-2026-10-22/README.md).
|
||||
|
||||
## Product change
|
||||
|
||||
Deck explicitly supports both pinned0.6B GGUF talkers from
|
||||
`Serveurperso/Qwen3-TTS-GGUF`, revision
|
||||
`b7ee2e8c7459c3bea99da23e3d178125a7d1713c`. Q4_K_M SHA256:
|
||||
`4b468ec7b1f62b90ef4ca316c0aa57deadfd54b2cf9651703ea753cedaf04226`.
|
||||
The Q8 codec and Anna reference remain the existing files. Q4 never inherits
|
||||
the Q8-only onset profile: its explicit setting is`off`. Unknown variants and
|
||||
revisions remain rejected. No runtime dependency or GPU support was added.
|
||||
|
||||
Q4 is a normal separate model/profile, not a relabeled Q8 entry. Import using
|
||||
`deploy/import_qwen_native.py --quant Q4 --state STATE --cache HF_CACHE`.
|
||||
The existing normal catalogue, component assignment, endpoint publication and
|
||||
audio policy retain source/model identities for backup and restore.
|
||||
|
||||
## Activation
|
||||
|
||||
New image:`athena-deck-standalone:d77f747cd05983eb`. Only the existing Deck app
|
||||
was updated, in the idle window Michael confirmed. Two authenticated ordinary
|
||||
status checks observed0active requests before the stop. Existing installer
|
||||
Dockerfile/allowlist and`launch`/`ready`/manifest routines were used; the117-layer
|
||||
base was reused directly without the installer's100-layer compaction step.
|
||||
No persistent installer override was introduced. The app update installed0new
|
||||
OS packages and rebuilt no ML runtime. This is not a Hermes custom image.
|
||||
|
||||
Q4 profile:`qwen-06b-q4-anna-cpu`, internal ID
|
||||
`e6eddd10ef4142f78945e14882dc7a45`. Published; audio policy retains`warm` and
|
||||
now points to Q4. Original Q8 profile and weights remain, unpublished. Other
|
||||
existing profiles were verified unchanged as JSON data. Existing CPU8/RAM59GiB,
|
||||
GPU order/reserves/layer split and private voice remain unchanged.
|
||||
|
||||
The official Hermes CLI changed only`tts.openai.model` from the explicit Q8 ID
|
||||
to Q4 in eight existing profiles:default,jean-luc-picode,william-t-time and the
|
||||
five existing SSH profiles. Parsed configuration comparisons verified every
|
||||
other setting unchanged. Endpoint, credential, voice and STT remain unchanged.
|
||||
The model defaults for future profiles follow Hermes' own creation/cloning
|
||||
behavior; no global profile-creation patch was added.
|
||||
|
||||
The previous Strata dual-slot model was restored through one normal one-token
|
||||
API request:HTTP200,48.21s including loading. The running native speech worker
|
||||
command was verified to selectQ4. No Conduit pairing, app preference, plugin
|
||||
code or Hermes gateway restart was changed.
|
||||
|
||||
## Validation and limits
|
||||
|
||||
117 focused tests ran:115 passed, with2 pre-existing skips. These cover Q4 model
|
||||
recognition, keeping the Q8-only onset setting away from Q4, WAV/PCM routing,
|
||||
cancellation, audio policy, profile identities and endpoint behavior. Python
|
||||
compilation, JavaScript syntax and`git diff --check` passed. A broader attempted
|
||||
Mac run included a nonexistent test module and was blocked from binding test
|
||||
ports; the actual endpoint suite was rerun successfully with loopback access.
|
||||
An unrelated pre-existing STT fixture in`test_audio_residency` lacks`model` and
|
||||
was not modified or represented as passing.
|
||||
|
||||
Live Hermes streaming acceptance passed for all three phone profiles:
|
||||
|
||||
| Profile | First PCM | Generation | Audio duration |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| default |2.080s|4.010s|3.60s|
|
||||
| jean-luc-picode |0.366s|2.355s|3.60s|
|
||||
| william-t-time |0.369s|2.359s|3.60s|
|
||||
|
||||
The native`_load_tts_config`/`resolve_streaming_provider` selected the explicit
|
||||
Q4 profile for each; complete PCM was nonempty, sample-aligned,24kHzmono.
|
||||
An initial test incorrectly required each arbitrary network packet to end on
|
||||
a16bit sample boundary. It stopped after a packet in the second request;
|
||||
the probe was corrected to validate complete PCM, with no product change.
|
||||
The initial default call after restart was slower:7.391s total for3.60s audio,
|
||||
first PCM5.488s. These are individual warmup-sensitive measurements.
|
||||
|
||||
A real
|
||||
phone call, handset playback and sustained simultaneous Strata/TTS acceptance
|
||||
remain user checks; no phone call was triggered by this maintenance.
|
||||
|
||||
## Persistence and rollback
|
||||
|
||||
Keep the application revision with Q4 support, existing native runtime recipe,
|
||||
normal model catalogue entry, profiles, endpoint/audio policy and encrypted
|
||||
private`speech-voices` backup. On native Debian use the same source modules,
|
||||
existing pinned CPU venv, public Q4/codec assets and restored Anna reference.
|
||||
No new native package, CUDA dependency or persistent auxiliary service is
|
||||
required. Full fresh-Debian restore qualification remains an existing open task.
|
||||
|
||||
To return to Q8, publish its original profile instead of Q4, set the warm TTS
|
||||
policy to Q8, and set Hermes`tts.openai.model` back to
|
||||
`qwen-06b-q8-anna-cpu` through the official per-profile CLI. No voice conversion
|
||||
or model download is necessary. This known Q4 profile must not be loaded with
|
||||
an older Deck build that supports only Q8.
|
||||
|
||||
The maintenance work is explicitly recorded at
|
||||
`/opt/athena-deck-dev/qwen-q4-activation-20261022`; its scoped selection rollback
|
||||
contains only the three changed Deck settings files and the install manifest.
|
||||
No broad data backup or private voice copy was created. Existing Hermes chats,
|
||||
cron jobs, MCPs and plugin settings were not migrated or rewritten.
|
||||
Reference in new issue
Block a user