Files
Athena-Deck/docs/experiments/qwen-reference-comparison-2026-10-27

Qwen CPU: same three Anna references · 27 October 2026

Michael requested the same comparison again with Qwen. The three exact source excerpts, synthetic text and seed 42 were reused from the preceding Articulino comparison. No production voice or setting was replaced.

Method

Use the existing native CPU binding realtimetts-qwen-native-cpu==0.4.2, ABI 5, with CPU_ONLY=True. Reuse the existing Qwen3-TTS 0.6B Base Q4_K_M talker and Q8 codec from Serveurperso/Qwen3-TTS-GGUF, pinned revision b7ee2e8c7459c3bea99da23e3d178125a7d1713c. Both public file hashes were verified before loading; they are recorded in results.json.

The live CPU policy was reread: two generation threads, two codec threads, CPU Flash Attention disabled, affinity 2–5/8–11. The harness uses the same two-frame streaming, no FP16 clamp, Q4 onset profile off, speaker embedding only, seed 42 and Q4 sampling defaults: temperature 0.9, top-k 50, top-p 1.0, repetition penalty 1.05 and 1024 output tokens per sentence. The production speech preparation/splitter supplied the four sentences. No retries, parameter search, pitch adjustment, voice fine-tuning or extra warmup was performed.

References A/B/C are the same 7.90/7.86/5.78-second clips at 00:52.02–00:59.92, 05:25.14–05:33.00 and 13:12.24–13:18.02. Source clip hashes were checked against the previous selection. Qwen requires 24 kHz mono PCM16; the existing Articulino bandlimited resampler prepared derived files in this experiment's own directory. Original 48 kHz clips and the long source recording were not changed. No reference transcript was provided to Qwen.

The test text is identical to the Articulino passage, starting with “Wenn du magst, erzähle ich dir eine kurze Geschichte.” Full input and actual Qwen sentence chunks are in setup.json and test-text.txt.

Measurements

Reference Audio Generation + WAV write RTF First PCM
A 14.88 s 14.111 s 0.9483 0.334 s
B 15.60 s 14.645 s 0.9388 0.333 s
C 15.20 s 14.316 s 0.9418 0.331 s

Model initialization was 0.427 s. Separate voice preparation took 1.538/1.495/1.097 s and is excluded from the generation column. These are three short sequential renders in one model process, not a long-run or concurrent realtime guarantee. No production LLM requests were generated for load testing. Qwen produces incremental PCM, whereas the measured Articulino first-chunk timer represents a complete sentence; those latency columns are not equivalent.

All three WAVs are finite mono 24 kHz PCM16 without clipped samples. Existing Parakeet Redux CPU CLI v0.6.1 transcribed each output. All 36 expected words match after case and punctuation normalization, with zero word edits in each run. ASR does not establish naturalness, freedom from accent, Anna similarity or a fix for Qwen's previously observed intermittent noise failures. Listening assessment of these new samples is pending.

The preceding Articulino renders needed 0.462–0.519 s for about 15 s audio; these Qwen renders needed 14.111–14.645 s. This is a practical comparison of the configured pipelines, not isolated neural-model compute: their frontends, speaker conditioning, thread usage, generation architecture and pauses differ.

Isolation and unchanged production

Own native host process under transient unit athena-qwen-references-20261027.service: hard MemoryMax 4 GiB, swap disabled, CPUQuota 400%, affinity above, nice 10, PrivateDevices, NoNewPrivileges, UMask 0077, ten-minute lifetime, 8 GiB address-space limit and cooperative 120-second per-reference timeout. No listener or permanent service was added.

The own test admission required its hard 4 GiB budget plus a 2 GiB host reserve; 6.36 GiB was available before loading. A monitor would cancel this test below 2 GiB available. The measured minimum was 4.16 GiB; maximum process RSS was 3.04 GiB. No admission, memory or deadline guard fired. This is a separate bounded test, not a lowering of the production Qwen loader's guard.

After Qwen exited, a separate bounded child process used the existing Parakeet CPU CLI for read-only transcription of the three synthetic WAVs. Both units finished and are inactive. Existing Qwen and Strata stayed in place; no model switch, request cancellation, restart, endpoint call, Mac patch or new container was needed. No Hermes credentials were read for this experiment.

Before/after hashes match for the profile catalogue, endpoint configuration, audio policy, CPU partition, canonical Qwen worker and original production Anna reference. The live Qwen worker hash matches too; Deck's pre-test start time is unchanged. Listening files remain outside Git in work/qwen-references-20261027/outputs on the Mac and the own Athena directory /data/athena-qwen-references-20261027/outputs.

Native reproduction

Use the existing pinned native CPU environment documented in the Qwen runtime recipe. No new dependencies or weights are installed here. run_qwen.py uses explicit Athena paths for the public talker/codec and application source, plus three private derived references and the synthetic text under its own test root. Adapt paths deliberately on another native Debian host; restore authorized reference recordings separately. It writes only the own experiment directory. Run under the stated limits, wait for completion, then use check_stt.py with the existing pinned native Parakeet runtime. Private recordings and reference transcripts stay outside Git. This experiment is not a new production integration or full native restore test.