Piper CPU and Anna adaptation pilot · 27 October 2026
Preservation update · 23 November 2026: voice/training assets now also have a
verified permanent copy at /data/athena-voices/anna/piper/.
Copy scope, hashes and unchanged-source rules.
The original recipe/working paths below still exist and were NOT moved or
retired. Do not redirect writing scripts into the preservation archive.
Historical results and source manifests below remain unchanged.
Michael authorized trying Piper and, explicitly, temporarily unloading idle Qwen for GPU training and restoring it afterwards. This is an isolated pilot, not a production endpoint integration. Michael rejected this Anna pilot after listening: it sounds like a 32-kbps MP3 to him. Piper is out of the current replacement shortlist; speed does not override that assessment.
Cleanup status: no files deleted. The isolated remote test root occupies about 8.8 GiB and contains weights, training/CPU venvs, derived private Anna clips and listening samples. Automatic approval review rejected its irreversible complete deletion because the latest quality rejection was not an explicit authorization for that deletion. Ask Michael for that precise deletion approval; do not retry through a different tool or path. Local listening samples remain available too. The original supplied recording and production reference are outside this scope.
Observed outcome
- Piper 1.8.0 CPU inference passes the speed gate with substantial headroom.
- Anna fine-tuning completed on the RTX 5080: 1,000 generator batches / 2,000 optimizer updates in 249.10 seconds, peak allocated GPU memory 5,641 MiB. The two optimizers explain the differing step counts.
- The exported Anna model is 63,516,051 bytes, 22,050 Hz mono. Its architecture and CPU thread count are unchanged from the medium baseline.
- Human listening acceptance failed. Michael rejected sound quality; local STT also finds errors, especially in the technical passage. Do not suggest acceptance based on speed, ASR, or hypothetical longer training.
- Qwen
flash-next-strata-iq3-dualis restored,/healthreports loaded/ok, and no own trainer remains. Production settings and original Anna reference match the before-test hashes. Deck was not restarted. - Articulino CPU TTS and Parakeet STT stayed enabled and resident. No Hermes, Mac app or production TTS worker code changed. Native client playback of these new Piper files has not been tested.
Measurements
Four ONNX intra-op threads, one inter-op thread, sequential execution, CPUExecutionProvider only, two tiny warmups. Own transient units used CPUQuota=400%, AllowedCPUs=2-5,8-11, Nice=10, MemoryMax=2G, MemorySwapMax=0, PrivateDevices=yes, no network and a 90-second limit. The first filter was predeclared as RTF <= 0.2, not as Articulino parity or a user-specified exact threshold. Model loading is separate from generation.
| Arm | Story 1 audio / generation | Story 2 audio / generation | Technical audio / generation | Weighted RTF |
|---|---|---|---|---|
| Public Thorsten medium | 11.44 / 0.330 s | 11.55 / 0.326 s | 9.74 / 0.273 s | 0.02840 |
| Anna, 250 generator batches | 13.99 / 0.404 s | 13.37 / 0.379 s | 10.69 / 0.306 s | 0.02864 |
| Anna, 500 generator batches | 13.19 / 0.574 s | 13.94 / 0.612 s | 10.15 / 0.438 s | 0.04357 |
| Anna, 1,000 generator batches | 13.10 / 0.373 s | 13.19 / 0.364 s | 10.23 / 0.287 s | 0.02803 |
The 500-batch timing overlapped the final CPU export and Qwen reload; do not attribute its lower speed to that checkpoint. The final measurement ran with Qwen resident again and the GPU trainer finished. These are short probes, not a concurrency/load benchmark. The final three runs are 35.2–36.3x realtime; first sentence 89–113 ms, peak process RSS about 261 MiB.
Unmodified synthetic story and technical text are recorded in the JSON results.
STT uses the existing local Parakeet CPU CLI. Its lexical word-error proxy
normalizes case and punctuation but not number spellings or merged words.
For example, the public baseline's Vögelsingen counts as two edits although
it may be an orthographic ASR decision. STT is neither a human transcript nor
a voice-identity score. Final story runs: 2/36 and 1/36 edits; final technical
passage: 9/25. Examples include Vögel zählen and Bergkopf for Backup.
The public baseline also has technical ASR deviations (4/25 edits).
An additional untrained checkpoint re-export through the same current exporter/CPU runtime gives 0/36 edits in each story and 4/25 in the technical passage (weighted RTF 0.02934). This does not prove every dynamic-shape case, but provides no evidence that a generally broken export explains the Anna pilot's extra pronunciation deviations. Do not label this pilot production-ready.
The extra pronunciation_probe.py uses explicitly different phonetic input,
recorded alongside the original input, and is not part of that benchmark.
German eSpeak produces German readings of English brand names/units (observed
Home /ho:me/, Terabyte with /by:te/). This explains some pronunciation
problems, not all training/ASR deviations. The existing production enhancer is
unchanged. The guided probe remains imperfect and is not an acceptance result.
Private data and training protocol
Own root: /data/athena-piper-test-20261027, mode 0700. The supplied 15-minute
Anna Training.wav was copied there, never uploaded to a provider. Original
recording and production reference are unchanged. Local silence segmentation
and confidence-filtered Parakeet transcripts accepted 76 clips / 882.03 seconds,
rejected one forced-boundary clip. Transcripts were not manually certified.
69 clips form the training pool: 63 actual training clips and six internal validation clips. Seven independent held-out clips never enter the trainer; one supplies the paired original/synthetic listening sample. A single source recording and automatically transcribed text limit generalization conclusions.
Piper medium's existing German checkpoint supplies all 784 matching tensors; no mismatched random architecture was silently substituted. Warmstart loads generator and discriminator weights, with fresh optimizers; it does not resume the checkpoint's old 2.7-million global step. Learning rates 5e-5 generator / 2.5e-5 discriminator, batch 8, float32, seed 20261027, no MRD, no cloud/MOS scoring, no extra languages. Maximum 1,000 generator batches or 25 minutes. Progress checks reject nonfinite losses; a local stop-request file ends only the own trainer. Checkpoints at 250/500/750/1,000 batches are weight-only.
The default 1.8.0 phoneme map adds symbols without changing existing IDs. The technical probe contains no symbols missing from the public baseline map; the observed errors therefore cannot simply be attributed to missing symbol IDs.
Audio, per-clip transcripts, private held-out text, caches, checkpoints and ONNX weights stay outside Git. This test root is not a declared part of Deck's encrypted restore bundle. A future accepted custom voice must be added to that bundle explicitly; this experiment did not create an unsolicited backup.
Native reproduction and recovery
The scripts are native Python/Linux; Docker supplies no compiler or trainer.
Only verify_preservation.py optionally inspects today's exact Deck container
start time. A future native deployment must replace that diagnostic with its
service invocation/start-time check; a native full restore was not exercised.
Public asset revisions, URLs, sizes and hashes are in the three manifests.
Pinned Piper source is 639388b6317fc4731e91d53da42aea68fd4166ff (v1.8.0).
The German Thorsten dataset is CC0 according to its model card; Piper runtime
is GPL. Consult those original licenses when redistributing software/voices.
On Debian 13 with Python 3.13.5 and GCC:
- Create the own private root, copy scripts/manifests, run
prepare.pyfor the CPU-only venv. It contains no Torch/CUDA inference dependencies. - Run
speed.pyunder the CPU limits above. Only if it passes, copy authorized Anna input asanna-input.wavand runprepare_data.pywith the installed local Parakeet binary/model paths verified first. - Run
prepare_training.py: separatetrain-venv, Torch 2.13.0 CUDA 13, Lightning 2.6.6, Cython and ONNX exporter. Exact resolved packages are recorded. Debianlibpython3.13-devandpython3.13-dev3.13.5-2+deb13u5 are downloaded and extracted under the test root, never installed on the host. Build the alignment extension there and copy it into the wheel's nested alignment package. Matching Debian headers/compiler must be supplied explicitly on another OS/Python version; do not blindly reuse these native paths. - With GPUs hidden, run
train_pilot.py prepare. Verify the tensor match and prepared clip counts. SetTMPDIRto the own writabletmp/for sandboxed units. - After authorized idle/drain checks, temporarily disable the previously enabled chat profiles through Deck's authenticated UI and use Modell entladen. CPU TTS/STT remain enabled; never use video-mode switching, endpoint stop or a Deck restart to free the training GPU.
- Resolve the RTX 5080 by UUID from
nvidia-smi, not a numeric CUDA index: CUDA's default enumeration mapped numeric index 1 to the 3060 here. The wrong-device assertion stopped that attempt before training. Runtrain_pilot.py trainunder an own transient systemd unit, MemoryMax=12G, CPUQuota=500%, RuntimeMaxSec=1620, TimeoutStopSec=60, no network, writable own root only. Do not enable PrivateDevices for the GPU trainer. - After success, error or interruption, stop/wait only the own trainer, restore exactly the former chat-profile publication through the UI, and reload the previous Qwen profile with a short ordinary authenticated request. No auto-restore daemon or persistent service was installed. If this workflow is automated later it needs a finally/watchdog for this manual UI restoration.
- Export checkpoints with
export_pilot.py, thenspeed.py --model ... --results ... --prefix ...andevaluate.pyon CPU. The official exporter is used with explicitdynamo=Falsefor Torch 2.13; Python 3.13's PosixPath alias is narrowly allowlisted for the public old checkpoint. ONNX checker passes. The exporter emits expected dynamic-shape tracer warnings; several sentence lengths are exercised by the CPU probes, not exhaustively proved. - Verify settings/reference/source hashes, worker health and absence of the own trainer. Do not replace unrelated endpoint settings with a stale snapshot.
Initial setup failures (missing Python headers, nested extension output, sandbox TMPDIR, CUDA numeric-device order, and the old-checkpoint PosixPath alias) were diagnosed before retrying; no production service restart resulted. The corrected training preparation/import recipe was rerun successfully.