From e0910fde6347d70202ec104dcb36b0df39ad1bf5 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Tue, 27 Oct 2026 19:49:16 +0100 Subject: [PATCH] Continue selected Anna full20 checkpoint with original recording --- .../README.md | 146 +++++++++++ .../audit_parent.py | 22 ++ .../compare.py | 75 ++++++ .../control.py | 32 +++ .../cpu-parent.json | 235 ++++++++++++++++++ .../cpu-plus10.json | 233 +++++++++++++++++ .../cpu-plus20.json | 233 +++++++++++++++++ .../evaluate_all.py | 12 + .../evaluation-status.json | 9 + .../export-10.json | 23 ++ .../export-20.json | 23 ++ .../export.py | 37 +++ .../final-verification.json | 10 + .../lineage.json | 21 ++ .../load-verification.json | 63 +++++ .../parent-audit.json | 22 ++ .../score.py | 26 ++ .../source-adaptation.json | 5 + .../support.py | 37 +++ .../train.py | 103 ++++++++ .../training-result.json | 78 ++++++ .../transcriptions.json | 68 +++++ .../verify.py | 21 ++ .../tts-candidate-shortlist-2026-10-27.md | 2 +- 24 files changed, 1535 insertions(+), 1 deletion(-) create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/README.md create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/audit_parent.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/compare.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/control.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-parent.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus10.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus20.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluate_all.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluation-status.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-10.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-20.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/final-verification.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/lineage.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/load-verification.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/parent-audit.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/score.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/source-adaptation.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/support.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/train.py create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/training-result.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/transcriptions.json create mode 100644 docs/experiments/kikiri-anna-full20-continuation-2026-10-27/verify.py diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/README.md b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/README.md new file mode 100644 index 0000000..e20757b --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/README.md @@ -0,0 +1,146 @@ +# Continue the selected Anna full20 voice · 27 October 2026 + +Michael selected `anna-full20-expressive.wav` as the basis for further work, +using the large original `Anna Training.wav`. Continue the **model checkpoint +behind that listening file**, not training on the synthetic listening audio. +Active TTS stays unchanged; restore Qwen afterwards. + +## Data and lineage + +The large recording was already used in the previous pilots. Its retained +Athena copy is 908.9116 s (15 min 9 s), mono 48 kHz PCM16; its checksum still +matches the original dataset-preparation manifest. The derived 24-kHz dataset +contains 63 training clips / 731.265 s, six validation / 68.215 s, seven +held-out / 82.55 s. Accepted audio totals 882.03 s; silence/one unsuitable +segment account for the remaining difference. Original and private transcripts +remain outside Git. Transcripts are local ASR-generated, not manually certified. +Nothing from validation/held-out sets is added to the training pool. + +`lineage.json` binds the selected listening file to its exact inference model +and voicepack hashes. Parent training checkpoint: +`/data/athena-kikiri-anna-more-20261027/run/anna-extra-20.pth`. +This is the **full20** choice: both current speaker encoders and the actual +training mel filterbank, unchanged 24-kHz reference audio/no added padding. +Keep that recipe in every new export. No old first-stage timbre fallback, +synthetic self-training, technical lexicon or phonemizer change. + +## Fixed continuation protocol + +- Own private root `/data/athena-kikiri-anna-full20-next-20261027`, 0700; + parent/data/public assets/environments reused read-only. No installation, + permanent service, container, SDK or client modification. +- Twenty additional Stage 2 epochs from the selected checkpoint, fresh Adam + state (prior checkpoints were weight-only). Main/acoustic LR 5e-6, BERT + 5e-7: half the preceding continuation. Batch two, FP32, 160-frame crops, + waveform GAN and WavLM active from the start; diffusion unused. +- All thirteen components loaded strictly. Preserve the trained prosody + encoder, using the same one-block source adaptation from the preceding + experiment; check optimizer parameter bindings. Python/NumPy/Torch seed + 20261029 is set **after** upstream imports, which otherwise reset seeds. +- Save only +10/+20 weight-only checkpoints to bound space. Training loss + and ASR are not speaker-identity or accent scores. Compare both to the exact + selected full20 parent on the same original story and expressive paragraph. +- Export both current encoders through actual `meldataset.preprocess` as in + the selected full20 sample. Its mel transform nominal sample-rate parameter + is 16000, but input/output WAVs stay 24 kHz: no resampling/downgrade here. +- CPU-only synthesis: four threads, same affinity 2–5/8–11, quota 400%, seed + 42, speed 1, one explicit warmup, no enhancer/substitutions/postprocessing. + Record load separately and measure actual generation/audio duration. + Parent render must exactly reproduce the selected audio SHA-256. + +## Native operation and reproducibility + +Read the [original pilot](../kikiri-anna-training-2026-10-27/README.md) and +[selected full20 experiment](../kikiri-anna-followup-2026-10-27/README.md) for +source commits, public hashes, standalone CPython and CUDA/CPU environments. +Those are explicit native dependencies. A new Debian host must reproduce +them and restore the private original dataset/parent checkpoint first; these +scripts are not a production installer or a complete encrypted restore test. +An accepted private voice would need explicit inclusion in normal restore +data. No unsolicited backup is created by this experiment. + +`train.py prepare` writes configuration/source adaptation without GPU use. +Training uses the RTX 5080 UUID with a transient native unit: quota 500%, +affinity as above, nice 10, RAM cap 14 GiB/no swap, private network, writable +own root only, 30-minute limit. Before training, snapshot current production, +pause only the currently offered chat profiles in authenticated Deck UI, +confirm zero running/waiting requests, and use regular `Modell entladen`. +TTS/STT remain active. On success or error, finish/stop only the own trainer, +restore exactly the prior publications and reload the prior Qwen profile via +an ordinary authenticated request. No production restart. + +Run `export.py 10` / `20` under the existing training venv with GPU devices +hidden, CPU quota 400%, RAM cap 4 GiB/no swap and own writable root. Then +`evaluate_all.py` sequentially uses the pinned CPU-only venv, quota 400%, +RAM cap 3 GiB, private devices/network and own TMPDIR. `score.py` uses local +Parakeet only. `verify.py` checks relevant original state hashes, CPU TTS +PIDs, restored Qwen and absence of the own trainer. No private input, audio, +weights, API keys or production chat data enter Git/cloud. + +## Completed run and measured results + +The continuation completed successfully in **497.450 s** on the RTX 5080: +20 epochs / 620 batches, no OOM or training restart. All thirteen checkpoint +components loaded strictly; the independent parent audit also matched the +initial tensor fingerprints of both speaker encoders, predictor and decoder. +The original selected inference model/voicepack remained unchanged. Validation +loss at +10 was 0.426204 and at +20 was 0.422044; these are training diagnostics, +not Anna similarity or accent measurements. Peak CUDA allocated/reserved memory +was 13,054,047,232 / 13,956,546,560 bytes. The fresh optimizer differs from a +continuous optimizer-state resume; do not present this as an uninterrupted run. + +Both new voicepacks average only the original 63 training clips. Both current +encoders and the selected training-consistent mel recipe were retained. No +generated sample, validation clip or held-out clip was added to training. + +| Arm | Story: audio / generation | Expressive: audio / generation | Weighted RTF | +| --- | --- | --- | --- | +| Selected full20 parent | 15.725 s / 5.038 s | 15.700 s / 4.856 s | 0.3148 | +| Parent +10 | 15.475 s / 4.580 s | 15.500 s / 4.616 s | 0.2969 | +| Parent +20 | 15.425 s / 4.594 s | 15.550 s / 4.757 s | 0.3019 | + +All measurements are four-thread CPU-only generation after explicit warmup, +24-kHz mono PCM16, speed 1. New samples retain **3.27–3.38× realtime** in this +short test. Model loading is excluded and recorded separately in each CPU JSON. +Qwen was loaded again first, but not deliberately driven with concurrent LLM +generation. These six renders do not establish a sustained throughput gain or +real client streaming/playback behavior. Architecture remains 81,810,022 +parameters; extra training adds no inference layers. Complete paragraphs are +returned as one chunk, so this is not an incremental first-audio latency test. + +Both parent renders reproduced the preceding selected full20 files **byte for +byte**, including the requested `anna-full20-expressive.wav`. Every exported +listening WAV was copied back and checked against its SHA-256, duration, mono +PCM16/24-kHz format, finite source samples, zero clipped fraction and zero +dropped frontend phonemes. Local Parakeet recognized all six passages with the +same one-word discrepancy: **Vögel → Wögel**; otherwise the normalized words +were complete. That stable discrepancy is not diagnosed as an acoustic versus +ASR error by this test. Punctuation differences are ignored. ASR cannot certify +Anna identity, accent removal, naturalness or prosody. No new listening verdict +has been supplied yet, so no candidate is promoted or activated. + +## Restoration and retained outputs + +Training, export and CPU/STT transient units exited successfully and the own +trainer is absent. The twelve original chat publications were restored through +the authenticated UI. A normal authenticated completion succeeded for the +previous `flash-next-strata-iq3-dual` profile; UI independently showed the +profile ready. Final verification found relevant profile/endpoint/audio/CPU +configuration and original reference hashes unchanged, the same CPU TTS PIDs +and Deck start time, and Qwen running. No Deck/host/Hermes restart occurred. +Active TTS remains unchanged. This experiment installs no gateway integration. + +Remote retained checkpoints/exports/listening files are under +`/data/athena-kikiri-anna-full20-next-20261027/`. Local listening files are under +`/Users/mike_i386/Documents/ChatGPT/Athena Deck/work/kikiri-anna-full20-next-20261027/audio/`: + +- `anna-full20-parent-expressive.wav`: exact selected reference. +- `anna-full20-plus10-expressive.wav`: ten additional epochs. +- `anna-full20-plus20-expressive.wav`: twenty additional epochs. +- Corresponding `*-story.wav` files provide the second fixed text. + +Only scripts, lineage/hash metadata and synthetic test results are versioned. +Private original audio/transcripts, model weights, endpoint snapshots, keys and +the local UI screenshot stay out of Git. All original material and previous +selected checkpoints are retained. This is a bounded comparison; more epochs +are not automatically warranted without a useful listening improvement. diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/audit_parent.py b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/audit_parent.py new file mode 100644 index 0000000..b920595 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/audit_parent.py @@ -0,0 +1,22 @@ +"""Independently match loaded tensors to the selected parent's full checkpoint.""" +from pathlib import Path +import os,hashlib,json +os.environ.update(CUDA_VISIBLE_DEVICES='',OMP_NUM_THREADS='2',OPENBLAS_NUM_THREADS='1') +import torch +ROOT=Path('/data/athena-kikiri-anna-full20-next-20261027') +PARENT=Path('/data/athena-kikiri-anna-more-20261027') +torch.set_num_threads(2) +state=torch.load(PARENT/'run/anna-extra-20.pth',map_location='cpu',weights_only=True)['net'] +actual=json.loads((ROOT/'load-verification.json').read_text())['initial_fingerprints'] +rows=[] +for component,expected in actual.items(): + h=hashlib.sha256() + for k,t in sorted({k.removeprefix('module.'):v for k,v in state[component].items()}.items()): + h.update(k.encode());h.update(t.contiguous().numpy().tobytes()) + same=h.hexdigest()==expected;assert same,component + rows.append(dict(component=component,loaded_exact_parent_state=same)) +lineage=json.loads((ROOT/'lineage.json').read_text()) +for p,k in [(PARENT/'models/extra-20/model.pth','selected_model_sha256'),(PARENT/'models/extra-20/fullmatch.pt','selected_voice_sha256')]: + assert hashlib.file_digest(p.open('rb'),'sha256').hexdigest()==lineage[k] +result=dict(initial_model_tensors_match_selected_parent=True,components=rows,parent_exports_unchanged=True) +(ROOT/'parent-audit.json').write_text(json.dumps(result,indent=2));print(json.dumps(result),flush=True) diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/compare.py b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/compare.py new file mode 100644 index 0000000..a309c5b --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/compare.py @@ -0,0 +1,75 @@ +"""Same CPU frontend, original German story plus an expressive German passage.""" +from pathlib import Path +import os,sys,json,time,hashlib,random,resource +ROOT=Path('/data/athena-kikiri-anna-full20-next-20261027');BASE=Path('/data/athena-kikiri-anna-20261027') +PARENT=Path('/data/athena-kikiri-anna-more-20261027') +PUBLIC=Path('/data/athena-kikiri-victoria-cpu-20261027') +(ROOT/'tmp').mkdir(exist_ok=True,mode=0o700) +os.environ.update(CUDA_VISIBLE_DEVICES='',HF_HUB_OFFLINE='1',HF_HOME=str(ROOT/'cache/huggingface'), + HF_HUB_DISABLE_TELEMETRY='1',HF_HUB_DISABLE_IMPLICIT_TOKEN='1',TMPDIR=str(ROOT/'tmp'), + XDG_CACHE_HOME=str(ROOT/'cache'),OMP_NUM_THREADS='4',OPENBLAS_NUM_THREADS='1',TOKENIZERS_PARALLELISM='false') +import numpy as np,soundfile as sf,torch,torch._dynamo +from kokoro import KModel,KPipeline +from support import CASES,write,preservation +torch.set_num_threads(4);torch.set_num_interop_threads(1);os.sched_setaffinity(0,{2,3,4,5,8,9,10,11}) +assert torch.version.cuda is None and not torch.cuda.is_available() +os.umask(0o077);arm=sys.argv[1] +assert arm in ('parent','plus10','plus20') +if arm=='parent': + model_path=PARENT/'models/extra-20/model.pth';voice_path=PARENT/'models/extra-20/fullmatch.pt' +else: + n=10 if arm=='plus10' else 20 + model_path=ROOT/'models'/f'extra-{n:02d}'/'model.pth';voice_path=model_path.parent/'voice.pt' +random.seed(42);np.random.seed(42);torch.manual_seed(42) +started=time.monotonic() +model=KModel(repo_id='hexgrad/Kokoro-82M',config=str(PUBLIC/'source/training/config.json'),model=str(model_path)).to('cpu').eval() +weights=torch.load(model_path,map_location='cpu',weights_only=True);compat=[] +for name,state in weights.items(): + c=getattr(model,name);state={k.removeprefix('module.'):v for k,v in state.items()} + check=c.load_state_dict(state,strict=False);assert not check.unexpected_keys + current=c.state_dict() + for key in check.missing_keys: + path,param=key.rsplit('.',1);layer=c.get_submodule(path) + assert isinstance(layer,torch.nn.InstanceNorm1d) and layer.affine and param in ('weight','bias') + assert torch.all(current[key]==(1 if param=='weight' else 0)) + state[key]=current[key] + c.load_state_dict(state,strict=True);compat.append(dict(component=name,identity_affine_keys=check.missing_keys)) +del weights +voice=torch.load(voice_path,map_location='cpu',weights_only=True);assert voice.shape==(510,1,256) and torch.isfinite(voice).all() +pipeline=KPipeline(lang_code='d',repo_id='hexgrad/Kokoro-82M',model=model,device='cpu') +g2p=pipeline.g2p +def compatible(text): + ps,t=g2p(text);return ps.replace('ʏ','y'),t +pipeline.g2p=compatible +report=dict(arm=arm,device='cpu',threads=4,model_load_seconds=time.monotonic()-started, + model_sha256=hashlib.file_digest(model_path.open('rb'),'sha256').hexdigest(), + voice_sha256=hashlib.file_digest(voice_path.open('rb'),'sha256').hexdigest(), + parameters=sum(p.numel() for p in model.parameters()),strict_components=compat,runs=[]) +(ROOT/'outputs').mkdir(exist_ok=True) +def render(text,name,save=True): + random.seed(42);np.random.seed(42);torch.manual_seed(42);start=time.monotonic();chunks=[];ps=[] + for r in pipeline(text,voice=voice,speed=1): + assert len(r.phonemes)<=510 + x=r.audio.detach().cpu().numpy().reshape(-1);assert np.isfinite(x).all() + chunks.append(x);ps.append(r.phonemes) + elapsed=time.monotonic()-start;x=np.concatenate(chunks);duration=len(x)/24000 + row=dict(text=text,duration_seconds=duration,generation_seconds=elapsed,rtf=elapsed/duration, + realtime_multiple=duration/elapsed,phonemes=ps,clipped_fraction=float(np.mean(np.abs(x)>=1)), + peak=float(np.max(np.abs(x))),chunks=len(chunks),dropped=sorted({c for p in ps for c in p if c not in model.vocab}), + peak_rss_kib=resource.getrusage(resource.RUSAGE_SELF).ru_maxrss) + if save: + p=ROOT/'outputs'/name;sf.write(p,x,24000,subtype='PCM_16');row.update(file=name,sha256=hashlib.file_digest(p.open('rb'),'sha256').hexdigest()) + return row +report['warmup']=render('Die Stimme ist bereit.','warmup.wav',False) +cases=[CASES[0],dict(id='expressive',text='Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.')] +for case in cases: + row=render(case['text'],f'anna-full20-{arm}-{case["id"]}.wav');row['case']=case['id'];report['runs'].append(row) + if arm=='parent': + expected=json.loads((PARENT/'cpu-full20.json').read_text()) + old=next(r for r in expected['runs'] if r['case']==case['id']) + assert row['sha256']==old['sha256'],'Parent must reproduce selected full20 listening sample' + row['matches_selected_parent']=True + write(ROOT/f'cpu-{arm}.json',report) +report.update(complete=True,preservation=preservation(),weighted_rtf=sum(x['generation_seconds'] for x in report['runs'])/sum(x['duration_seconds'] for x in report['runs'])) +write(ROOT/f'cpu-{arm}.json',report) +print(json.dumps(dict(arm=arm,weighted_rtf=report['weighted_rtf'],runs=[{k:r[k] for k in ('case','duration_seconds','generation_seconds','rtf')} for r in report['runs']],preservation=report['preservation'])),flush=True) diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/control.py b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/control.py new file mode 100644 index 0000000..432bda3 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/control.py @@ -0,0 +1,32 @@ +"""Authenticated observation and final reload. Credential only arrives on stdin.""" +from pathlib import Path +import hashlib, json, sys, time, urllib.request +ROOT=Path('/data/athena-kikiri-anna-full20-next-20261027') +PUBLIC=Path('/data/athena-kikiri-victoria-cpu-20261027') +sys.path.insert(0,str(PUBLIC)) +from support import snapshot +key=json.load(sys.stdin)['api_key'] +def request(path,body=None,port=8108): + data=None if body is None else json.dumps(body).encode() + req=urllib.request.Request(f'http://127.0.0.1:{port}'+path,data=data, + headers={'Authorization':'Bearer '+key,'Content-Type':'application/json'}) + with urllib.request.urlopen(req,timeout=600) as f:return json.load(f) +def safe_status(): + e=request('/api/v1/status')['endpoint'] + return {k:e.get(k) for k in ('state','active_requests','scheduler','requests_running','requests_queued')} +mode=sys.argv[1] +if mode=='before': + before=snapshot() + worker=json.loads(Path('/opt/athena-deck-dev/runtime/state/strata-worker/worker.json').read_text()) + before['previous_profile']=worker['model_name'] + (ROOT/'production-before.json').write_text(json.dumps(before,indent=2)) + print(json.dumps(dict(previous_profile=before['previous_profile'],status=safe_status()))) +elif mode=='status':print(json.dumps(safe_status())) +elif mode=='restore': + before=json.loads((ROOT/'production-before.json').read_text()) + status=safe_status() + while status.get('active_requests'): + time.sleep(3);status=safe_status() + result=request('/v1/chat/completions',dict(model=before['previous_profile'],messages=[{'role':'user','content':'Antworte mit OK.'}], + max_tokens=1,temperature=0,reasoning_effort='none'),8120) + print(json.dumps(dict(choices_present=bool(result.get('choices')),status=safe_status()))) diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-parent.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-parent.json new file mode 100644 index 0000000..f73575a --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-parent.json @@ -0,0 +1,235 @@ +{ + "arm": "parent", + "device": "cpu", + "threads": 4, + "model_load_seconds": 0.8388435619999655, + "model_sha256": "7668ac570e3ae705362e199f0eb221a811275f0c80fffbd47a402c3ef3463275", + "voice_sha256": "fd6cad07fcdeb1008e7397a0eff0c183879b385d3ac4206e516283b386c9afa0", + "parameters": 81810022, + "strict_components": [ + { + "component": "bert", + "identity_affine_keys": [] + }, + { + "component": "bert_encoder", + "identity_affine_keys": [] + }, + { + "component": "predictor", + "identity_affine_keys": [ + "F0.0.norm1.norm.weight", + "F0.0.norm1.norm.bias", + "F0.0.norm2.norm.weight", + "F0.0.norm2.norm.bias", + "F0.1.norm1.norm.weight", + "F0.1.norm1.norm.bias", + "F0.1.norm2.norm.weight", + "F0.1.norm2.norm.bias", + "F0.2.norm1.norm.weight", + "F0.2.norm1.norm.bias", + "F0.2.norm2.norm.weight", + "F0.2.norm2.norm.bias", + "N.0.norm1.norm.weight", + "N.0.norm1.norm.bias", + "N.0.norm2.norm.weight", + "N.0.norm2.norm.bias", + "N.1.norm1.norm.weight", + "N.1.norm1.norm.bias", + "N.1.norm2.norm.weight", + "N.1.norm2.norm.bias", + "N.2.norm1.norm.weight", + "N.2.norm1.norm.bias", + "N.2.norm2.norm.weight", + "N.2.norm2.norm.bias" + ] + }, + { + "component": "decoder", + "identity_affine_keys": [ + "encode.norm1.norm.weight", + "encode.norm1.norm.bias", + "encode.norm2.norm.weight", + "encode.norm2.norm.bias", + "decode.0.norm1.norm.weight", + "decode.0.norm1.norm.bias", + "decode.0.norm2.norm.weight", + "decode.0.norm2.norm.bias", + "decode.1.norm1.norm.weight", + "decode.1.norm1.norm.bias", + "decode.1.norm2.norm.weight", + "decode.1.norm2.norm.bias", + "decode.2.norm1.norm.weight", + "decode.2.norm1.norm.bias", + "decode.2.norm2.norm.weight", + "decode.2.norm2.norm.bias", + "decode.3.norm1.norm.weight", + "decode.3.norm1.norm.bias", + "decode.3.norm2.norm.weight", + "decode.3.norm2.norm.bias", + "generator.noise_res.0.adain1.0.norm.weight", + "generator.noise_res.0.adain1.0.norm.bias", + "generator.noise_res.0.adain1.1.norm.weight", + "generator.noise_res.0.adain1.1.norm.bias", + "generator.noise_res.0.adain1.2.norm.weight", + "generator.noise_res.0.adain1.2.norm.bias", + "generator.noise_res.0.adain2.0.norm.weight", + "generator.noise_res.0.adain2.0.norm.bias", + "generator.noise_res.0.adain2.1.norm.weight", + "generator.noise_res.0.adain2.1.norm.bias", + "generator.noise_res.0.adain2.2.norm.weight", + "generator.noise_res.0.adain2.2.norm.bias", + "generator.noise_res.1.adain1.0.norm.weight", + "generator.noise_res.1.adain1.0.norm.bias", + "generator.noise_res.1.adain1.1.norm.weight", + "generator.noise_res.1.adain1.1.norm.bias", + "generator.noise_res.1.adain1.2.norm.weight", + "generator.noise_res.1.adain1.2.norm.bias", + "generator.noise_res.1.adain2.0.norm.weight", + "generator.noise_res.1.adain2.0.norm.bias", + "generator.noise_res.1.adain2.1.norm.weight", + "generator.noise_res.1.adain2.1.norm.bias", + "generator.noise_res.1.adain2.2.norm.weight", + "generator.noise_res.1.adain2.2.norm.bias", + "generator.resblocks.0.adain1.0.norm.weight", + "generator.resblocks.0.adain1.0.norm.bias", + "generator.resblocks.0.adain1.1.norm.weight", + "generator.resblocks.0.adain1.1.norm.bias", + "generator.resblocks.0.adain1.2.norm.weight", + "generator.resblocks.0.adain1.2.norm.bias", + "generator.resblocks.0.adain2.0.norm.weight", + "generator.resblocks.0.adain2.0.norm.bias", + "generator.resblocks.0.adain2.1.norm.weight", + "generator.resblocks.0.adain2.1.norm.bias", + "generator.resblocks.0.adain2.2.norm.weight", + "generator.resblocks.0.adain2.2.norm.bias", + "generator.resblocks.1.adain1.0.norm.weight", + "generator.resblocks.1.adain1.0.norm.bias", + "generator.resblocks.1.adain1.1.norm.weight", + "generator.resblocks.1.adain1.1.norm.bias", + "generator.resblocks.1.adain1.2.norm.weight", + "generator.resblocks.1.adain1.2.norm.bias", + "generator.resblocks.1.adain2.0.norm.weight", + "generator.resblocks.1.adain2.0.norm.bias", + "generator.resblocks.1.adain2.1.norm.weight", + "generator.resblocks.1.adain2.1.norm.bias", + "generator.resblocks.1.adain2.2.norm.weight", + "generator.resblocks.1.adain2.2.norm.bias", + "generator.resblocks.2.adain1.0.norm.weight", + "generator.resblocks.2.adain1.0.norm.bias", + "generator.resblocks.2.adain1.1.norm.weight", + "generator.resblocks.2.adain1.1.norm.bias", + "generator.resblocks.2.adain1.2.norm.weight", + "generator.resblocks.2.adain1.2.norm.bias", + "generator.resblocks.2.adain2.0.norm.weight", + "generator.resblocks.2.adain2.0.norm.bias", + "generator.resblocks.2.adain2.1.norm.weight", + "generator.resblocks.2.adain2.1.norm.bias", + "generator.resblocks.2.adain2.2.norm.weight", + "generator.resblocks.2.adain2.2.norm.bias", + "generator.resblocks.3.adain1.0.norm.weight", + "generator.resblocks.3.adain1.0.norm.bias", + "generator.resblocks.3.adain1.1.norm.weight", + "generator.resblocks.3.adain1.1.norm.bias", + "generator.resblocks.3.adain1.2.norm.weight", + "generator.resblocks.3.adain1.2.norm.bias", + "generator.resblocks.3.adain2.0.norm.weight", + "generator.resblocks.3.adain2.0.norm.bias", + "generator.resblocks.3.adain2.1.norm.weight", + "generator.resblocks.3.adain2.1.norm.bias", + "generator.resblocks.3.adain2.2.norm.weight", + "generator.resblocks.3.adain2.2.norm.bias", + "generator.resblocks.4.adain1.0.norm.weight", + "generator.resblocks.4.adain1.0.norm.bias", + "generator.resblocks.4.adain1.1.norm.weight", + "generator.resblocks.4.adain1.1.norm.bias", + "generator.resblocks.4.adain1.2.norm.weight", + "generator.resblocks.4.adain1.2.norm.bias", + "generator.resblocks.4.adain2.0.norm.weight", + "generator.resblocks.4.adain2.0.norm.bias", + "generator.resblocks.4.adain2.1.norm.weight", + "generator.resblocks.4.adain2.1.norm.bias", + "generator.resblocks.4.adain2.2.norm.weight", + "generator.resblocks.4.adain2.2.norm.bias", + "generator.resblocks.5.adain1.0.norm.weight", + "generator.resblocks.5.adain1.0.norm.bias", + "generator.resblocks.5.adain1.1.norm.weight", + "generator.resblocks.5.adain1.1.norm.bias", + "generator.resblocks.5.adain1.2.norm.weight", + "generator.resblocks.5.adain1.2.norm.bias", + "generator.resblocks.5.adain2.0.norm.weight", + "generator.resblocks.5.adain2.0.norm.bias", + "generator.resblocks.5.adain2.1.norm.weight", + "generator.resblocks.5.adain2.1.norm.bias", + "generator.resblocks.5.adain2.2.norm.weight", + "generator.resblocks.5.adain2.2.norm.bias" + ] + }, + { + "component": "text_encoder", + "identity_affine_keys": [] + } + ], + "runs": [ + { + "text": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.", + "duration_seconds": 15.725, + "generation_seconds": 5.037537630996667, + "rtf": 0.32035215459438265, + "realtime_multiple": 3.121564770701046, + "phonemes": [ + "vˌɛn duː mˈɑːkst, ɛɾʦˈɛːlə ɪç diːɾ ˌInə kˈʊɐʦə ɡəʃˈɪçtə. ˈanɑː ˈœfnətə das fˈɛnstɜ ʊnt hˈœɾtə dɾˈI vˈøːɡəl zˈɪŋən. Wf deːm tˈɪʃ lˈɑːɡən zˈiːbən bˈyːçɜ ʊnt ˌInə rˈoːtə tˈasə. ʦʊm ʃlˈʊs zˈɑːɡtə ziː: das hat vˈʊndɜbˌɑːɾ fʊŋkʦjˌoːnˈiːɾt." + ], + "clipped_fraction": 0.0, + "peak": 0.595427393913269, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1273344, + "file": "anna-full20-parent-story.wav", + "sha256": "c4bdf45d04a5effd0c75235999aa964219dfb8b87fece944b8b663d1c70e20a2", + "case": "story", + "matches_selected_parent": true + }, + { + "text": "Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "duration_seconds": 15.7, + "generation_seconds": 4.855733994991169, + "rtf": 0.30928242006313184, + "realtime_multiple": 3.233290789033132, + "phonemes": [ + "ɡˈuːtən mˈɔɾɡən, mˈɪçaˌeːl. ʃˈøːn, das duː vˈiːdɜ dɑː bɪst! dɾˈWsən rˈWʃt dɛɾ rˈeːɡən, ʊnt diː vˈøːɡəl zˈuːxən ʃˈʊʦ ˌʊntɜ deːm dˈax. vˈɪɾklɪç? das hˌɛtə ɪç nˈɪçt ɡədˈaxt. hˈɔøtə nˈeːmən viːɾ ʊns In vˈeːnɪç ʦˈIt ʊnt mˈaxən ˈaləs ɡˌanʦ ɪn rˈuːə." + ], + "clipped_fraction": 0.0, + "peak": 0.6938080191612244, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1288980, + "file": "anna-full20-parent-expressive.wav", + "sha256": "8138c9c9a265f6e05a4738ab72af49fab235332868d1b5fdf3522938d8acaa1a", + "case": "expressive", + "matches_selected_parent": true + } + ], + "warmup": { + "text": "Die Stimme ist bereit.", + "duration_seconds": 2.275, + "generation_seconds": 0.5961143520107726, + "rtf": 0.2620282865981418, + "realtime_multiple": 3.8163818608394915, + "phonemes": [ + "diː ʃtˈɪmə ɪst bərˈIt." + ], + "clipped_fraction": 0.0, + "peak": 0.4938804805278778, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1042832 + }, + "complete": true, + "preservation": { + "files_equal": true, + "cpu_tts_pids_equal": true, + "deck_start_equal": true + }, + "weighted_rtf": 0.31482169056444986 +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus10.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus10.json new file mode 100644 index 0000000..224702f --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus10.json @@ -0,0 +1,233 @@ +{ + "arm": "plus10", + "device": "cpu", + "threads": 4, + "model_load_seconds": 0.8705966279958375, + "model_sha256": "236368d5d72c7e3a868670bb665ff17066ca9d70a8d658ddaa82d0bb9c87cbfb", + "voice_sha256": "169055a380866618fb40151db70e6e43a39406679ff42c97c58bf52c66f7cfdc", + "parameters": 81810022, + "strict_components": [ + { + "component": "bert", + "identity_affine_keys": [] + }, + { + "component": "bert_encoder", + "identity_affine_keys": [] + }, + { + "component": "predictor", + "identity_affine_keys": [ + "F0.0.norm1.norm.weight", + "F0.0.norm1.norm.bias", + "F0.0.norm2.norm.weight", + "F0.0.norm2.norm.bias", + "F0.1.norm1.norm.weight", + "F0.1.norm1.norm.bias", + "F0.1.norm2.norm.weight", + "F0.1.norm2.norm.bias", + "F0.2.norm1.norm.weight", + "F0.2.norm1.norm.bias", + "F0.2.norm2.norm.weight", + "F0.2.norm2.norm.bias", + "N.0.norm1.norm.weight", + "N.0.norm1.norm.bias", + "N.0.norm2.norm.weight", + "N.0.norm2.norm.bias", + "N.1.norm1.norm.weight", + "N.1.norm1.norm.bias", + "N.1.norm2.norm.weight", + "N.1.norm2.norm.bias", + "N.2.norm1.norm.weight", + "N.2.norm1.norm.bias", + "N.2.norm2.norm.weight", + "N.2.norm2.norm.bias" + ] + }, + { + "component": "decoder", + "identity_affine_keys": [ + "encode.norm1.norm.weight", + "encode.norm1.norm.bias", + "encode.norm2.norm.weight", + "encode.norm2.norm.bias", + "decode.0.norm1.norm.weight", + "decode.0.norm1.norm.bias", + "decode.0.norm2.norm.weight", + "decode.0.norm2.norm.bias", + "decode.1.norm1.norm.weight", + "decode.1.norm1.norm.bias", + "decode.1.norm2.norm.weight", + "decode.1.norm2.norm.bias", + "decode.2.norm1.norm.weight", + "decode.2.norm1.norm.bias", + "decode.2.norm2.norm.weight", + "decode.2.norm2.norm.bias", + "decode.3.norm1.norm.weight", + "decode.3.norm1.norm.bias", + "decode.3.norm2.norm.weight", + "decode.3.norm2.norm.bias", + "generator.noise_res.0.adain1.0.norm.weight", + "generator.noise_res.0.adain1.0.norm.bias", + "generator.noise_res.0.adain1.1.norm.weight", + "generator.noise_res.0.adain1.1.norm.bias", + "generator.noise_res.0.adain1.2.norm.weight", + "generator.noise_res.0.adain1.2.norm.bias", + "generator.noise_res.0.adain2.0.norm.weight", + "generator.noise_res.0.adain2.0.norm.bias", + "generator.noise_res.0.adain2.1.norm.weight", + "generator.noise_res.0.adain2.1.norm.bias", + "generator.noise_res.0.adain2.2.norm.weight", + "generator.noise_res.0.adain2.2.norm.bias", + "generator.noise_res.1.adain1.0.norm.weight", + "generator.noise_res.1.adain1.0.norm.bias", + "generator.noise_res.1.adain1.1.norm.weight", + "generator.noise_res.1.adain1.1.norm.bias", + "generator.noise_res.1.adain1.2.norm.weight", + "generator.noise_res.1.adain1.2.norm.bias", + "generator.noise_res.1.adain2.0.norm.weight", + "generator.noise_res.1.adain2.0.norm.bias", + "generator.noise_res.1.adain2.1.norm.weight", + "generator.noise_res.1.adain2.1.norm.bias", + "generator.noise_res.1.adain2.2.norm.weight", + "generator.noise_res.1.adain2.2.norm.bias", + "generator.resblocks.0.adain1.0.norm.weight", + "generator.resblocks.0.adain1.0.norm.bias", + "generator.resblocks.0.adain1.1.norm.weight", + "generator.resblocks.0.adain1.1.norm.bias", + "generator.resblocks.0.adain1.2.norm.weight", + "generator.resblocks.0.adain1.2.norm.bias", + "generator.resblocks.0.adain2.0.norm.weight", + "generator.resblocks.0.adain2.0.norm.bias", + "generator.resblocks.0.adain2.1.norm.weight", + "generator.resblocks.0.adain2.1.norm.bias", + "generator.resblocks.0.adain2.2.norm.weight", + "generator.resblocks.0.adain2.2.norm.bias", + "generator.resblocks.1.adain1.0.norm.weight", + "generator.resblocks.1.adain1.0.norm.bias", + "generator.resblocks.1.adain1.1.norm.weight", + "generator.resblocks.1.adain1.1.norm.bias", + "generator.resblocks.1.adain1.2.norm.weight", + "generator.resblocks.1.adain1.2.norm.bias", + "generator.resblocks.1.adain2.0.norm.weight", + "generator.resblocks.1.adain2.0.norm.bias", + "generator.resblocks.1.adain2.1.norm.weight", + "generator.resblocks.1.adain2.1.norm.bias", + "generator.resblocks.1.adain2.2.norm.weight", + "generator.resblocks.1.adain2.2.norm.bias", + "generator.resblocks.2.adain1.0.norm.weight", + "generator.resblocks.2.adain1.0.norm.bias", + "generator.resblocks.2.adain1.1.norm.weight", + "generator.resblocks.2.adain1.1.norm.bias", + "generator.resblocks.2.adain1.2.norm.weight", + "generator.resblocks.2.adain1.2.norm.bias", + "generator.resblocks.2.adain2.0.norm.weight", + "generator.resblocks.2.adain2.0.norm.bias", + "generator.resblocks.2.adain2.1.norm.weight", + "generator.resblocks.2.adain2.1.norm.bias", + "generator.resblocks.2.adain2.2.norm.weight", + "generator.resblocks.2.adain2.2.norm.bias", + "generator.resblocks.3.adain1.0.norm.weight", + "generator.resblocks.3.adain1.0.norm.bias", + "generator.resblocks.3.adain1.1.norm.weight", + "generator.resblocks.3.adain1.1.norm.bias", + "generator.resblocks.3.adain1.2.norm.weight", + "generator.resblocks.3.adain1.2.norm.bias", + "generator.resblocks.3.adain2.0.norm.weight", + "generator.resblocks.3.adain2.0.norm.bias", + "generator.resblocks.3.adain2.1.norm.weight", + "generator.resblocks.3.adain2.1.norm.bias", + "generator.resblocks.3.adain2.2.norm.weight", + "generator.resblocks.3.adain2.2.norm.bias", + "generator.resblocks.4.adain1.0.norm.weight", + "generator.resblocks.4.adain1.0.norm.bias", + "generator.resblocks.4.adain1.1.norm.weight", + "generator.resblocks.4.adain1.1.norm.bias", + "generator.resblocks.4.adain1.2.norm.weight", + "generator.resblocks.4.adain1.2.norm.bias", + "generator.resblocks.4.adain2.0.norm.weight", + "generator.resblocks.4.adain2.0.norm.bias", + "generator.resblocks.4.adain2.1.norm.weight", + "generator.resblocks.4.adain2.1.norm.bias", + "generator.resblocks.4.adain2.2.norm.weight", + "generator.resblocks.4.adain2.2.norm.bias", + "generator.resblocks.5.adain1.0.norm.weight", + "generator.resblocks.5.adain1.0.norm.bias", + "generator.resblocks.5.adain1.1.norm.weight", + "generator.resblocks.5.adain1.1.norm.bias", + "generator.resblocks.5.adain1.2.norm.weight", + "generator.resblocks.5.adain1.2.norm.bias", + "generator.resblocks.5.adain2.0.norm.weight", + "generator.resblocks.5.adain2.0.norm.bias", + "generator.resblocks.5.adain2.1.norm.weight", + "generator.resblocks.5.adain2.1.norm.bias", + "generator.resblocks.5.adain2.2.norm.weight", + "generator.resblocks.5.adain2.2.norm.bias" + ] + }, + { + "component": "text_encoder", + "identity_affine_keys": [] + } + ], + "runs": [ + { + "text": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.", + "duration_seconds": 15.475, + "generation_seconds": 4.579868485001498, + "rtf": 0.2959527292408076, + "realtime_multiple": 3.378917986548895, + "phonemes": [ + "vˌɛn duː mˈɑːkst, ɛɾʦˈɛːlə ɪç diːɾ ˌInə kˈʊɐʦə ɡəʃˈɪçtə. ˈanɑː ˈœfnətə das fˈɛnstɜ ʊnt hˈœɾtə dɾˈI vˈøːɡəl zˈɪŋən. Wf deːm tˈɪʃ lˈɑːɡən zˈiːbən bˈyːçɜ ʊnt ˌInə rˈoːtə tˈasə. ʦʊm ʃlˈʊs zˈɑːɡtə ziː: das hat vˈʊndɜbˌɑːɾ fʊŋkʦjˌoːnˈiːɾt." + ], + "clipped_fraction": 0.0, + "peak": 0.5995210409164429, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1230916, + "file": "anna-full20-plus10-story.wav", + "sha256": "4d7af4c8577ed5e2bd4f949e5b0fd5a915cda6186e4b60bbd4b12c9fbabda884", + "case": "story" + }, + { + "text": "Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "duration_seconds": 15.5, + "generation_seconds": 4.616177381001762, + "rtf": 0.2978178955485008, + "realtime_multiple": 3.357756585306158, + "phonemes": [ + "ɡˈuːtən mˈɔɾɡən, mˈɪçaˌeːl. ʃˈøːn, das duː vˈiːdɜ dɑː bɪst! dɾˈWsən rˈWʃt dɛɾ rˈeːɡən, ʊnt diː vˈøːɡəl zˈuːxən ʃˈʊʦ ˌʊntɜ deːm dˈax. vˈɪɾklɪç? das hˌɛtə ɪç nˈɪçt ɡədˈaxt. hˈɔøtə nˈeːmən viːɾ ʊns In vˈeːnɪç ʦˈIt ʊnt mˈaxən ˈaləs ɡˌanʦ ɪn rˈuːə." + ], + "clipped_fraction": 0.0, + "peak": 0.6723154783248901, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1271528, + "file": "anna-full20-plus10-expressive.wav", + "sha256": "2e03c65ebecd0e1a61ebd2f68f99a9783bfca9504f05279baec5ac16b3dc77ff", + "case": "expressive" + } + ], + "warmup": { + "text": "Die Stimme ist bereit.", + "duration_seconds": 2.275, + "generation_seconds": 0.5749788060056744, + "rtf": 0.252737936705791, + "realtime_multiple": 3.956667578417748, + "phonemes": [ + "diː ʃtˈɪmə ɪst bərˈIt." + ], + "clipped_fraction": 0.0, + "peak": 0.4763352870941162, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1041120 + }, + "complete": true, + "preservation": { + "files_equal": true, + "cpu_tts_pids_equal": true, + "deck_start_equal": true + }, + "weighted_rtf": 0.296886065084851 +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus20.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus20.json new file mode 100644 index 0000000..2a3f413 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/cpu-plus20.json @@ -0,0 +1,233 @@ +{ + "arm": "plus20", + "device": "cpu", + "threads": 4, + "model_load_seconds": 0.8665039069892373, + "model_sha256": "eac26cd33205c3ea3054102943ea956dd9f56e1751a5203bb7788fbbfd3d7d53", + "voice_sha256": "5c5f913c31155bc55c89076b1c46d58f4a843b45494e3b8dacfa9851484a8ee7", + "parameters": 81810022, + "strict_components": [ + { + "component": "bert", + "identity_affine_keys": [] + }, + { + "component": "bert_encoder", + "identity_affine_keys": [] + }, + { + "component": "predictor", + "identity_affine_keys": [ + "F0.0.norm1.norm.weight", + "F0.0.norm1.norm.bias", + "F0.0.norm2.norm.weight", + "F0.0.norm2.norm.bias", + "F0.1.norm1.norm.weight", + "F0.1.norm1.norm.bias", + "F0.1.norm2.norm.weight", + "F0.1.norm2.norm.bias", + "F0.2.norm1.norm.weight", + "F0.2.norm1.norm.bias", + "F0.2.norm2.norm.weight", + "F0.2.norm2.norm.bias", + "N.0.norm1.norm.weight", + "N.0.norm1.norm.bias", + "N.0.norm2.norm.weight", + "N.0.norm2.norm.bias", + "N.1.norm1.norm.weight", + "N.1.norm1.norm.bias", + "N.1.norm2.norm.weight", + "N.1.norm2.norm.bias", + "N.2.norm1.norm.weight", + "N.2.norm1.norm.bias", + "N.2.norm2.norm.weight", + "N.2.norm2.norm.bias" + ] + }, + { + "component": "decoder", + "identity_affine_keys": [ + "encode.norm1.norm.weight", + "encode.norm1.norm.bias", + "encode.norm2.norm.weight", + "encode.norm2.norm.bias", + "decode.0.norm1.norm.weight", + "decode.0.norm1.norm.bias", + "decode.0.norm2.norm.weight", + "decode.0.norm2.norm.bias", + "decode.1.norm1.norm.weight", + "decode.1.norm1.norm.bias", + "decode.1.norm2.norm.weight", + "decode.1.norm2.norm.bias", + "decode.2.norm1.norm.weight", + "decode.2.norm1.norm.bias", + "decode.2.norm2.norm.weight", + "decode.2.norm2.norm.bias", + "decode.3.norm1.norm.weight", + "decode.3.norm1.norm.bias", + "decode.3.norm2.norm.weight", + "decode.3.norm2.norm.bias", + "generator.noise_res.0.adain1.0.norm.weight", + "generator.noise_res.0.adain1.0.norm.bias", + "generator.noise_res.0.adain1.1.norm.weight", + "generator.noise_res.0.adain1.1.norm.bias", + "generator.noise_res.0.adain1.2.norm.weight", + "generator.noise_res.0.adain1.2.norm.bias", + "generator.noise_res.0.adain2.0.norm.weight", + "generator.noise_res.0.adain2.0.norm.bias", + "generator.noise_res.0.adain2.1.norm.weight", + "generator.noise_res.0.adain2.1.norm.bias", + "generator.noise_res.0.adain2.2.norm.weight", + "generator.noise_res.0.adain2.2.norm.bias", + "generator.noise_res.1.adain1.0.norm.weight", + "generator.noise_res.1.adain1.0.norm.bias", + "generator.noise_res.1.adain1.1.norm.weight", + "generator.noise_res.1.adain1.1.norm.bias", + "generator.noise_res.1.adain1.2.norm.weight", + "generator.noise_res.1.adain1.2.norm.bias", + "generator.noise_res.1.adain2.0.norm.weight", + "generator.noise_res.1.adain2.0.norm.bias", + "generator.noise_res.1.adain2.1.norm.weight", + "generator.noise_res.1.adain2.1.norm.bias", + "generator.noise_res.1.adain2.2.norm.weight", + "generator.noise_res.1.adain2.2.norm.bias", + "generator.resblocks.0.adain1.0.norm.weight", + "generator.resblocks.0.adain1.0.norm.bias", + "generator.resblocks.0.adain1.1.norm.weight", + "generator.resblocks.0.adain1.1.norm.bias", + "generator.resblocks.0.adain1.2.norm.weight", + "generator.resblocks.0.adain1.2.norm.bias", + "generator.resblocks.0.adain2.0.norm.weight", + "generator.resblocks.0.adain2.0.norm.bias", + "generator.resblocks.0.adain2.1.norm.weight", + "generator.resblocks.0.adain2.1.norm.bias", + "generator.resblocks.0.adain2.2.norm.weight", + "generator.resblocks.0.adain2.2.norm.bias", + "generator.resblocks.1.adain1.0.norm.weight", + "generator.resblocks.1.adain1.0.norm.bias", + "generator.resblocks.1.adain1.1.norm.weight", + "generator.resblocks.1.adain1.1.norm.bias", + "generator.resblocks.1.adain1.2.norm.weight", + "generator.resblocks.1.adain1.2.norm.bias", + "generator.resblocks.1.adain2.0.norm.weight", + "generator.resblocks.1.adain2.0.norm.bias", + "generator.resblocks.1.adain2.1.norm.weight", + "generator.resblocks.1.adain2.1.norm.bias", + "generator.resblocks.1.adain2.2.norm.weight", + "generator.resblocks.1.adain2.2.norm.bias", + "generator.resblocks.2.adain1.0.norm.weight", + "generator.resblocks.2.adain1.0.norm.bias", + "generator.resblocks.2.adain1.1.norm.weight", + "generator.resblocks.2.adain1.1.norm.bias", + "generator.resblocks.2.adain1.2.norm.weight", + "generator.resblocks.2.adain1.2.norm.bias", + "generator.resblocks.2.adain2.0.norm.weight", + "generator.resblocks.2.adain2.0.norm.bias", + "generator.resblocks.2.adain2.1.norm.weight", + "generator.resblocks.2.adain2.1.norm.bias", + "generator.resblocks.2.adain2.2.norm.weight", + "generator.resblocks.2.adain2.2.norm.bias", + "generator.resblocks.3.adain1.0.norm.weight", + "generator.resblocks.3.adain1.0.norm.bias", + "generator.resblocks.3.adain1.1.norm.weight", + "generator.resblocks.3.adain1.1.norm.bias", + "generator.resblocks.3.adain1.2.norm.weight", + "generator.resblocks.3.adain1.2.norm.bias", + "generator.resblocks.3.adain2.0.norm.weight", + "generator.resblocks.3.adain2.0.norm.bias", + "generator.resblocks.3.adain2.1.norm.weight", + "generator.resblocks.3.adain2.1.norm.bias", + "generator.resblocks.3.adain2.2.norm.weight", + "generator.resblocks.3.adain2.2.norm.bias", + "generator.resblocks.4.adain1.0.norm.weight", + "generator.resblocks.4.adain1.0.norm.bias", + "generator.resblocks.4.adain1.1.norm.weight", + "generator.resblocks.4.adain1.1.norm.bias", + "generator.resblocks.4.adain1.2.norm.weight", + "generator.resblocks.4.adain1.2.norm.bias", + "generator.resblocks.4.adain2.0.norm.weight", + "generator.resblocks.4.adain2.0.norm.bias", + "generator.resblocks.4.adain2.1.norm.weight", + "generator.resblocks.4.adain2.1.norm.bias", + "generator.resblocks.4.adain2.2.norm.weight", + "generator.resblocks.4.adain2.2.norm.bias", + "generator.resblocks.5.adain1.0.norm.weight", + "generator.resblocks.5.adain1.0.norm.bias", + "generator.resblocks.5.adain1.1.norm.weight", + "generator.resblocks.5.adain1.1.norm.bias", + "generator.resblocks.5.adain1.2.norm.weight", + "generator.resblocks.5.adain1.2.norm.bias", + "generator.resblocks.5.adain2.0.norm.weight", + "generator.resblocks.5.adain2.0.norm.bias", + "generator.resblocks.5.adain2.1.norm.weight", + "generator.resblocks.5.adain2.1.norm.bias", + "generator.resblocks.5.adain2.2.norm.weight", + "generator.resblocks.5.adain2.2.norm.bias" + ] + }, + { + "component": "text_encoder", + "identity_affine_keys": [] + } + ], + "runs": [ + { + "text": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.", + "duration_seconds": 15.425, + "generation_seconds": 4.594085072996677, + "rtf": 0.2978337162396549, + "realtime_multiple": 3.357578223935332, + "phonemes": [ + "vˌɛn duː mˈɑːkst, ɛɾʦˈɛːlə ɪç diːɾ ˌInə kˈʊɐʦə ɡəʃˈɪçtə. ˈanɑː ˈœfnətə das fˈɛnstɜ ʊnt hˈœɾtə dɾˈI vˈøːɡəl zˈɪŋən. Wf deːm tˈɪʃ lˈɑːɡən zˈiːbən bˈyːçɜ ʊnt ˌInə rˈoːtə tˈasə. ʦʊm ʃlˈʊs zˈɑːɡtə ziː: das hat vˈʊndɜbˌɑːɾ fʊŋkʦjˌoːnˈiːɾt." + ], + "clipped_fraction": 0.0, + "peak": 0.5654215216636658, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1229736, + "file": "anna-full20-plus20-story.wav", + "sha256": "f20205d3ee87dc62caf114b2d30186f7c0acd384075d9521e4e06264d74e3e1a", + "case": "story" + }, + { + "text": "Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "duration_seconds": 15.55, + "generation_seconds": 4.756577673004358, + "rtf": 0.3058892394215021, + "realtime_multiple": 3.26915716908251, + "phonemes": [ + "ɡˈuːtən mˈɔɾɡən, mˈɪçaˌeːl. ʃˈøːn, das duː vˈiːdɜ dɑː bɪst! dɾˈWsən rˈWʃt dɛɾ rˈeːɡən, ʊnt diː vˈøːɡəl zˈuːxən ʃˈʊʦ ˌʊntɜ deːm dˈax. vˈɪɾklɪç? das hˌɛtə ɪç nˈɪçt ɡədˈaxt. hˈɔøtə nˈeːmən viːɾ ʊns In vˈeːnɪç ʦˈIt ʊnt mˈaxən ˈaləs ɡˌanʦ ɪn rˈuːə." + ], + "clipped_fraction": 0.0, + "peak": 0.6772451996803284, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1272140, + "file": "anna-full20-plus20-expressive.wav", + "sha256": "8b1637e291e7be611577e8861ec5bafa40a629e728a2fbd53f89e0963790ce4b", + "case": "expressive" + } + ], + "warmup": { + "text": "Die Stimme ist bereit.", + "duration_seconds": 2.275, + "generation_seconds": 0.5697270500095328, + "rtf": 0.2504294725316628, + "realtime_multiple": 3.99314022383514, + "phonemes": [ + "diː ʃtˈɪmə ɪst bərˈIt." + ], + "clipped_fraction": 0.0, + "peak": 0.46860218048095703, + "chunks": 1, + "dropped": [], + "peak_rss_kib": 1040872 + }, + "complete": true, + "preservation": { + "files_equal": true, + "cpu_tts_pids_equal": true, + "deck_start_equal": true + }, + "weighted_rtf": 0.3018777319128663 +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluate_all.py b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluate_all.py new file mode 100644 index 0000000..27fe947 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluate_all.py @@ -0,0 +1,12 @@ +"""Sequential CPU rendering after Qwen is restored; same selected export recipe.""" +from pathlib import Path +import subprocess,json,time +ROOT=Path('/data/athena-kikiri-anna-full20-next-20261027') +PY=Path('/data/athena-kikiri-victoria-cpu-20261027/venv/bin/python') +result=dict(complete=False,arms=[]);started=time.monotonic() +for arm in ('parent','plus10','plus20'): + subprocess.run([str(PY),str(ROOT/'compare.py'),arm],check=True,timeout=100) + data=json.loads((ROOT/f'cpu-{arm}.json').read_text());assert data['complete'] + result['arms'].append(arm) +result.update(complete=True,seconds=time.monotonic()-started) +(ROOT/'evaluation-status.json').write_text(json.dumps(result,indent=2));print(json.dumps(result),flush=True) diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluation-status.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluation-status.json new file mode 100644 index 0000000..34b9f77 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/evaluation-status.json @@ -0,0 +1,9 @@ +{ + "complete": true, + "arms": [ + "parent", + "plus10", + "plus20" + ], + "seconds": 41.67766569800733 +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-10.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-10.json new file mode 100644 index 0000000..2cbc2c8 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-10.json @@ -0,0 +1,23 @@ +{ + "additional_epochs": 10, + "parent": "Selected full20 checkpoint", + "training_clips": 63, + "acoustic_norm": 1.4807015657424927, + "prosody_norm": 2.5577433109283447, + "validation_loss": 0.42620405554771423, + "extraction": "Both encoders from this checkpoint, actual training mel, unchanged 24-kHz audio/no added padding", + "mel_sr_parameter": 16000, + "audio_sample_rate": 24000, + "files": [ + { + "file": "model.pth", + "bytes": 327187851, + "sha256": "236368d5d72c7e3a868670bb665ff17066ca9d70a8d658ddaa82d0bb9c87cbfb" + }, + { + "file": "voice.pt", + "bytes": 523739, + "sha256": "169055a380866618fb40151db70e6e43a39406679ff42c97c58bf52c66f7cfdc" + } + ] +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-20.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-20.json new file mode 100644 index 0000000..7e732be --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export-20.json @@ -0,0 +1,23 @@ +{ + "additional_epochs": 20, + "parent": "Selected full20 checkpoint", + "training_clips": 63, + "acoustic_norm": 1.5055818557739258, + "prosody_norm": 2.632075548171997, + "validation_loss": 0.4220435619354248, + "extraction": "Both encoders from this checkpoint, actual training mel, unchanged 24-kHz audio/no added padding", + "mel_sr_parameter": 16000, + "audio_sample_rate": 24000, + "files": [ + { + "file": "model.pth", + "bytes": 327187851, + "sha256": "eac26cd33205c3ea3054102943ea956dd9f56e1751a5203bb7788fbbfd3d7d53" + }, + { + "file": "voice.pt", + "bytes": 523739, + "sha256": "5c5f913c31155bc55c89076b1c46d58f4a843b45494e3b8dacfa9851484a8ee7" + } + ] +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export.py b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export.py new file mode 100644 index 0000000..04b8e45 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/export.py @@ -0,0 +1,37 @@ +"""Keep the selected full20 extraction: current encoders, actual training mel.""" +from pathlib import Path +import os,sys,json,hashlib +ROOT=Path('/data/athena-kikiri-anna-full20-next-20261027');BASE=Path('/data/athena-kikiri-anna-20261027') +PUBLIC=Path('/data/athena-kikiri-victoria-cpu-20261027') +os.environ.update(CUDA_VISIBLE_DEVICES='',HF_HUB_OFFLINE='1',OMP_NUM_THREADS='4',OPENBLAS_NUM_THREADS='1') +import numpy as np,soundfile as sf,torch +torch.set_num_threads(4);torch.set_num_interop_threads(1) +sys.path.insert(0,str(PUBLIC/'source/scripts'));from extract_voicepack import StyleEncoder +sys.path.insert(0,str(BASE/'StyleTTS2'));from meldataset import preprocess,to_mel +os.umask(0o077);epoch=int(sys.argv[1]);assert epoch in (10,20) +checkpoint=ROOT/'run'/f'anna-extra-{epoch:02d}.pth' +state=torch.load(checkpoint,map_location='cpu',weights_only=True) +dest=ROOT/'models'/f'extra-{epoch:02d}';dest.mkdir(parents=True,exist_ok=True) +clean=lambda s:{k.removeprefix('module.'):v for k,v in s.items()} +names=('bert','bert_encoder','predictor','decoder','text_encoder') +torch.save({k:clean(state['net'][k]) for k in names},dest/'model.pth') +encoders=[] +for key in ('style_encoder','predictor_encoder'): + m=StyleEncoder(dim_in=64,style_dim=128,max_conv_dim=512) + m.load_state_dict(clean(state['net'][key]),strict=True);m.eval();encoders.append(m) +validation=float(state['val_loss']);del state +styles=[] +with torch.no_grad(): + for p in sorted((BASE/'data/training-audio').glob('*.wav')): + a,sr=sf.read(p,dtype='float32');assert sr==24000 and a.ndim==1 + x=preprocess(a) + v=torch.cat([m(x[:,None]) for m in encoders],dim=-1) + assert torch.isfinite(v).all() and v.norm()<1000;styles.append(v) +v=torch.cat(styles).mean(0);assert .51 and sys.argv[1]=='prepare': + print(json.dumps(dict(prepared=True,epochs=20,lr=5e-6,source=source_record)),flush=True) + sys.exit(0) +assert torch.cuda.is_available() and torch.cuda.device_count()==1 and '5080' in torch.cuda.get_device_name(0) +import models,optimizers,kokoro_tb_utils +checks=[];initial_fingerprints={};original_load=models.load_checkpoint +def digest(state): + h=hashlib.sha256() + for k,t in sorted(state.items()):h.update(k.encode());h.update(t.detach().cpu().contiguous().numpy().tobytes()) + return h.hexdigest() +def checked_load(model,optimizer,path,load_only_params=True,ignore_modules=[]): + load=getattr(torch,'_original_load',torch.load) + state=load(path,map_location='cpu',weights_only=True)['net'] + assert not ignore_modules + for key in model: + assert key in state,key + model[key].load_state_dict({k.removeprefix('module.'):v for k,v in state[key].items()},strict=True) + checks.append(dict(component=key,tensors=len(state[key]))) + for key in ('predictor_encoder','predictor','style_encoder','decoder'): + initial_fingerprints[key]=digest(model[key].state_dict()) + # Optimizers were built before this warmstart. They must reference exactly + # the loaded modules; the upstream clone would break this invariant. + for key in ('predictor_encoder','style_encoder','decoder'): + assert {id(p) for p in model[key].parameters()}=={id(p) for g in optimizer.optimizers[key].param_groups for p in g['params']} + del state + (ROOT/'load-verification.json').write_text(json.dumps(dict(components=checks, + initial_fingerprints=initial_fingerprints,optimizer_bindings_verified=True),indent=2)) + return model,optimizer,0,0 +models.load_checkpoint=checked_load +original_step=optimizers.MultiOptimizer.step;steps={} +def step(self,key=None,scaler=None): + label=key or 'all';steps[label]=steps.get(label,0)+1 + return original_step(self,key,scaler) +optimizers.MultiOptimizer.step=step +original_save=torch.save;started=time.monotonic() +def save(obj,f,*a,**kw): + if isinstance(obj,dict) and 'net' in obj and str(f).endswith('.pth'): + completed=int(obj['epoch'])+1 + if completed not in (10,20):return + assert all(torch.isfinite(t).all() for c in obj['net'].values() for t in c.values() if t.is_floating_point()) + obj={k:v for k,v in obj.items() if k!='optimizer'} + result=original_save(obj,ROOT/'run'/f'anna-extra-{completed:02d}.pth',*a,**kw) + report=dict(extra_epochs=completed,wall_seconds=time.monotonic()-started, + validation_loss=float(obj['val_loss']),optimizer_step_calls=steps) + (ROOT/'progress.json').write_text(json.dumps(report,indent=2));print(json.dumps(report),flush=True) + return result + return original_save(obj,f,*a,**kw) +torch.save=save +extract=kokoro_tb_utils.extract_voicepack +kokoro_tb_utils.extract_voicepack=lambda model,root_path,device,n_samples=200: extract(model,str(BASE/'data/training-audio'),device,min(n_samples,16)) +kokoro_tb_utils.prepare_test_tokens=lambda cleaner:[] +random.seed(20261029);np.random.seed(20261029);torch.manual_seed(20261029) +torch.cuda.reset_peak_memory_stats() +result=dict(seed=20261029,epochs=20,lr=5e-6,bert_lr=5e-7,device=torch.cuda.get_device_name(0), + initialization='Selected full20 checkpoint; original large Anna recording, fresh Adam, no prosody reset') +try: + module=types.ModuleType('anna_stage2_followup');module.__file__=str(ROOT/'train_second_anna.py') + sys.modules[module.__name__]=module;exec(compile(patched,module.__file__,'exec'),module.__dict__) + # Reseed after upstream meldataset import resets Python and NumPy. + random.seed(20261029);np.random.seed(20261029);torch.manual_seed(20261029) + torch.autograd.set_detect_anomaly(False) + module.main.main(args=['--config_path',str(cfg)],standalone_mode=False) + result['success']=True +finally: + result.update(wall_seconds=time.monotonic()-started,optimizer_step_calls=steps,strict_loaded_components=checks, + peak_allocated_bytes=torch.cuda.max_memory_allocated(),peak_reserved_bytes=torch.cuda.max_memory_reserved()) + (ROOT/'training-result.json').write_text(json.dumps(result,indent=2));print(json.dumps(result),flush=True) diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/training-result.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/training-result.json new file mode 100644 index 0000000..2500105 --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/training-result.json @@ -0,0 +1,78 @@ +{ + "seed": 20261029, + "epochs": 20, + "lr": 5e-06, + "bert_lr": 5e-07, + "device": "NVIDIA GeForce RTX 5080", + "initialization": "Selected full20 checkpoint; original large Anna recording, fresh Adam, no prosody reset", + "success": true, + "wall_seconds": 497.45010590399033, + "optimizer_step_calls": { + "msd": 620, + "mpd": 620, + "bert_encoder": 1240, + "bert": 1240, + "predictor": 1240, + "predictor_encoder": 620, + "style_encoder": 620, + "decoder": 620, + "diffusion": 620, + "wd": 60 + }, + "strict_loaded_components": [ + { + "component": "bert", + "tensors": 25 + }, + { + "component": "bert_encoder", + "tensors": 2 + }, + { + "component": "predictor", + "tensors": 122 + }, + { + "component": "decoder", + "tensors": 375 + }, + { + "component": "text_encoder", + "tensors": 24 + }, + { + "component": "predictor_encoder", + "tensors": 67 + }, + { + "component": "style_encoder", + "tensors": 67 + }, + { + "component": "diffusion", + "tensors": 92 + }, + { + "component": "text_aligner", + "tensors": 143 + }, + { + "component": "pitch_extractor", + "tensors": 77 + }, + { + "component": "mpd", + "tensors": 90 + }, + { + "component": "msd", + "tensors": 54 + }, + { + "component": "wd", + "tensors": 15 + } + ], + "peak_allocated_bytes": 13054047232, + "peak_reserved_bytes": 13956546560 +} \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/transcriptions.json b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/transcriptions.json new file mode 100644 index 0000000..3a34cbc --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/transcriptions.json @@ -0,0 +1,68 @@ +[ + { + "arm": "parent", + "case": "story", + "file": "anna-full20-parent-story.wav", + "seconds": 1.269525091003743, + "exit_code": 0, + "expected": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.", + "recognized": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Wögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.", + "word_edits": 1, + "reference_words": 36 + }, + { + "arm": "parent", + "case": "expressive", + "file": "anna-full20-parent-expressive.wav", + "seconds": 1.2027990170026897, + "exit_code": 0, + "expected": "Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "recognized": "Guten Morgen Michael, schön, dass du wieder da bist. Draußen rauscht der Regen und die Wögel suchen Schutz unter dem Dach. Wirklich, das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "word_edits": 1, + "reference_words": 40 + }, + { + "arm": "plus10", + "case": "story", + "file": "anna-full20-plus10-story.wav", + "seconds": 1.1899680529895704, + "exit_code": 0, + "expected": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.", + "recognized": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Wögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.", + "word_edits": 1, + "reference_words": 36 + }, + { + "arm": "plus10", + "case": "expressive", + "file": "anna-full20-plus10-expressive.wav", + "seconds": 1.181265102000907, + "exit_code": 0, + "expected": "Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "recognized": "Guten Morgen Michael, schön, dass du wieder da bist. Draußen rauscht der Regen und die Wögel suchen Schutz unter dem Dach. Wirklich, das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "word_edits": 1, + "reference_words": 40 + }, + { + "arm": "plus20", + "case": "story", + "file": "anna-full20-plus20-story.wav", + "seconds": 1.183935509994626, + "exit_code": 0, + "expected": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.", + "recognized": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Wögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.", + "word_edits": 1, + "reference_words": 36 + }, + { + "arm": "plus20", + "case": "expressive", + "file": "anna-full20-plus20-expressive.wav", + "seconds": 1.1580744990060339, + "exit_code": 0, + "expected": "Guten Morgen, Michael. Schön, dass du wieder da bist! Draußen rauscht der Regen, und die Vögel suchen Schutz unter dem Dach. Wirklich? Das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "recognized": "Guten Morgen Michael, schön, dass du wieder da bist, draußen rauscht der Regen und die Wögel suchen Schutz unter dem Dach. Wirklich, das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe.", + "word_edits": 1, + "reference_words": 40 + } +] \ No newline at end of file diff --git a/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/verify.py b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/verify.py new file mode 100644 index 0000000..92cebaa --- /dev/null +++ b/docs/experiments/kikiri-anna-full20-continuation-2026-10-27/verify.py @@ -0,0 +1,21 @@ +"""Compare only relevant state hashes/PIDs and public worker health metadata.""" +from pathlib import Path +import json,subprocess,urllib.request +from support import ROOT,STATE,snapshot,write +before=json.loads((ROOT/'production-before.json').read_text());after=snapshot() +worker=json.loads((STATE/'strata-worker/worker.json').read_text()) +result=dict(files_equal=before['hashes']==after['hashes'], + cpu_tts_pids_equal=before['pids']['articulino']==after['pids']['articulino'] and before['pids']['qwen_tts']==after['pids']['qwen_tts'], + deck_start_equal=before['deck_started']==after['deck_started'], + previous_profile=before['previous_profile'],current_profile=worker['model_name'],strata_running=bool(after['pids']['strata'])) +# A normal authenticated completion is separately required by control.py. +own=[] +for p in Path('/proc').iterdir(): + if not p.name.isdigit():continue + try:args=(p/'cmdline').read_bytes().split(b'\0') + except OSError:continue + if any(a.endswith(b'/train.py') for a in args) and str(ROOT).encode() in b' '.join(args):own.append(int(p.name)) +result['owned_trainers']=own +result['passed']=all(result[k] for k in ('files_equal','cpu_tts_pids_equal','deck_start_equal','strata_running')) and not own and result['current_profile']==result['previous_profile'] +write(ROOT/'final-verification.json',result);print(json.dumps(result),flush=True) +assert result['passed'] diff --git a/docs/experiments/tts-candidate-shortlist-2026-10-27.md b/docs/experiments/tts-candidate-shortlist-2026-10-27.md index 1e6dee4..ca7b02f 100644 --- a/docs/experiments/tts-candidate-shortlist-2026-10-27.md +++ b/docs/experiments/tts-candidate-shortlist-2026-10-27.md @@ -18,7 +18,7 @@ record the verdict and clean up its own test data when requested. | Qwen3-TTS 0.6B Q4 / Q8 codec | Retained comparison reference | Same three clips/text gave about 15 s in 14.111–14.645 s. This passage was complete in STT; previous intermittent noise failures remain unresolved. This row makes no claim about which profile is currently published. | | Chatterbox Nano + German community LoRA, FP32 | **Stronger perceived Anna identity; accent and CPU reserve unresolved** | Explicit Athena trial: Anna B, four CPU threads, adapter merged in RAM, 16.98 s audio in 14.815 s (RTF 0.8725, 1.146× realtime), first synthesis. No warm repeat or quality matrix after missing the 2× gate. Michael hears Anna more clearly, with a slight Chinese-sounding accent. He confirms “rote Tasse” is correct: the raw STT “hohe Tasse” was an ASR error, not a confirmed TTS word error. No general claim about untested precision/runtime alternatives. No activation; Sopro technical B remains the reference. [Actual trial](chatterbox-nano-de-cpu-2026-10-27/README.md). | | Kokoro/Kikiri German Victoria, FP32 | **CPU speed gate passed; original Victoria listening verdict pending** | Explicit CPU-only test with the public Victoria voice: story 14.5 s in 4.24–4.78 s; technical text 19 s in 6.70 s (2.84× realtime). Local STT recovered numbers/time; technical term discrepancies remain, and the frontend pronounces CEST as a word. This is not an Anna-cloning sample or proof that Anna fine-tuning will work. That original Victoria trial did not train or activate a model. A separately authorized Anna pilot is now recorded below. [Victoria trial](kikiri-victoria-cpu-2026-10-27/README.md). | -| Kokoro/Kikiri Anna fine-tune, FP32 | **Pilot needs stronger Anna match / less perceived accent; follow-up listening pending** | Trained on 63 Anna segments with separate validation/held-out clips: ten acoustic + twelve prosody epochs, RTX 5080. Same technical text: 20.175 s in 6.840 s on four CPU threads (2.95× realtime). STT recovers the paragraph, with Home/Logfile/CEST and other technical deviations; no Anna-identity claim from STT. Michael reports a Chinese-sounding accent and wants a closer Anna match. A twenty-epoch low-LR continuation plus separate speaker-embedding export checks retain approximately 3× CPU realtime; ASR does not show an intelligibility gain or measure accent removal. New listening verdict pending. Active TTS unchanged, Qwen restored; Sopro B remains the reference. [Anna pilot](kikiri-anna-training-2026-10-27/README.md), [follow-up](kikiri-anna-followup-2026-10-27/README.md). | +| Kokoro/Kikiri Anna fine-tune, FP32 | **Selected full20 starting point continued; new listening verdict pending** | The original 15-minute Anna recording supplies 63 training clips / 12m11s, with separate validation/held-out clips. Initial technical sample: 20.175 s in 6.840 s on four CPU threads (2.95× realtime). Michael wants a closer Anna match and less perceived Chinese-sounding accent; technical word preparation is separate. After the earlier continuation/export comparisons, he selected `anna-full20-expressive.wav` as the starting point. Twenty further lower-LR epochs from its exact model used the original large recording, never the synthetic sample. +10/+20 samples retain 3.27–3.38× CPU realtime; the parent reproduces byte for byte. All six synthetic passages have the same ASR Vögel/Wögel discrepancy, with no evidence here for accent removal or stronger identity. No new human listening verdict or activation; active TTS unchanged, Qwen restored. Sopro B remains the comparison reference. [Anna pilot](kikiri-anna-training-2026-10-27/README.md), [first follow-up](kikiri-anna-followup-2026-10-27/README.md), [selected full20 continuation](kikiri-anna-full20-continuation-2026-10-27/README.md). | | Audio8 TTS Preview 0.1B ONNX INT8 | **Rejected and deleted** | CPU speed fails; Michael also reports a Chinese-sounding accent. All isolated weights, venv, derived voices, pilot data and audio deleted remotely and locally: about 1.49 GiB on Athena plus 8.3 MiB local. Small records remain in `audio8-cpu-2026-10-27/`. Qwen and Articulino preserved. | | Pocket TTS German | Already tested, not a newly discovered alternative | Existing 17 October Anna CPU runs had RTF 0.453/0.462. Do not present it as untested or claim the newly advertised tiny English models support German. A different German checkpoint/recipe would need a specific reason to retest. | | MOSS-TTS-Nano / NeuTTS-Nano German Q8 | Rejected; test weights removed | Michael rejected pronunciation/naturalness. Do not silently reinstall or rank them as acceptable based on ASR. |