Document isolated Sopro CPU speed and Anna reference comparison
This commit is contained in:
1 parent
064794240a
commit
a80d5673e5
12 files changed
+983
No files matched your search
@@ -0,0 +1,142 @@
|
||||
# Sopro V2 Turbo on Athena CPU · 27 October 2026
|
||||
|
||||
Michael authorized a CPU-only speed gate, followed, if fast enough, by the same
|
||||
three Anna excerpts and comparison texts, local STT and downloadable listening
|
||||
samples. The active TTS was explicitly to remain unchanged. No production
|
||||
integration or Anna fine-tuning was performed.
|
||||
|
||||
## Pinned candidate and isolation
|
||||
|
||||
- Publisher: [Sopro V2 Turbo](https://huggingface.co/samuel-vitorino/sopro-v2-turbo),
|
||||
Apache-2.0, four supported languages including German, local reference cloning.
|
||||
- Source: `samuel-vitorino/sopro`, commit
|
||||
`7bfcf9a0539d274f6593959a21da948f506ceee1`, package 2.2.0.
|
||||
- Weights: revision `c12d0dc7c4a33b3cb6ea3d11ceb70bc60c7c6312`.
|
||||
The 120M claim describes the main model; additional reference encoders and
|
||||
vocoder are required. Downloaded artifacts total approximately 634 MB.
|
||||
Each LFS weight matched its publisher SHA-256; see `manifest.json`.
|
||||
- Separate native host venv: PyTorch/torchaudio 2.8.0+cpu; `torch.version.cuda`
|
||||
was `None`, CUDA unavailable, explicit device CPU. Full dependency versions
|
||||
are in `requirements-resolved.txt`. No packages in production venvs changed.
|
||||
- Four PyTorch intra-op threads, one inter-op thread, affinity CPUs
|
||||
2–5/8–11, quota 400%, nice 10, MemoryMax 4 GiB, no swap. This affinity includes
|
||||
CPUs shared with Strata; it is not exclusive core ownership. Strata remained
|
||||
resident, but no synthetic concurrent LLM requests were added in this test.
|
||||
- Test root `/data/athena-sopro-cpu-20261027`, mode 0700. Transient preparation,
|
||||
inference and STT units all ended and were collected. No listener, container,
|
||||
permanent service, endpoint/profile change or Mac-app patch was created.
|
||||
Inference/STT units used `PrivateNetwork=yes` and offline model paths.
|
||||
|
||||
## Fixed speed gate
|
||||
|
||||
Before synthesis, the announced criterion was **RTF ≤ 0.5 in both story runs**
|
||||
(at least twice realtime). The existing Anna excerpt A and 36-word story were
|
||||
used. Two renders per precision reused the prepared reference, with seed 42
|
||||
reset immediately before each synthesis. Model load and reference preparation
|
||||
are reported separately, not hidden inside throughput. Output writing adds
|
||||
about 3–5 ms and is excluded from generation time below.
|
||||
|
||||
| CPU mode | Audio | Mean synthesis, n=2 | RTF | Realtime multiple |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| FP32 | 14.453 s | 5.967 s | 0.4128 | 2.42× |
|
||||
| Official INT8 AR option | 13.685 s | 5.411 s | 0.3954 | 2.53× |
|
||||
|
||||
Both modes passed. FP32 model loading took 0.685 s and reference preparation
|
||||
0.089 s. INT8 loading/preparation took 0.737/0.087 s. INT8 changes the generated
|
||||
waveform and duration; its lower wall time is not entirely a compute speedup.
|
||||
Its RTF advantage was only about 4.2%. FP32 was retained for all listening
|
||||
comparisons to keep full model precision with sufficient measured headroom.
|
||||
The two repeats within each speed process produced matching WAV hashes.
|
||||
|
||||
This is the offline synthesis API, **not measured streaming TTFA or a Hermes
|
||||
playback test**. It does not establish headroom during active Strata generation.
|
||||
It also does not reach the earlier Articulino result of roughly 15 seconds of
|
||||
audio in half a second on this host.
|
||||
|
||||
## Same references and texts
|
||||
|
||||
Reference WAVs were read directly from the previous experiment's private
|
||||
`/data/athena-articulino-references-20261027/references` directory. No new cuts
|
||||
or externally uploaded voices were used:
|
||||
|
||||
| Reference | Original interval | Source length |
|
||||
| --- | --- | ---: |
|
||||
| A | 00:52.02–00:59.92 | 7.90 s |
|
||||
| B | 05:25.14–05:33.00 | 7.86 s |
|
||||
| C | 13:12.24–13:18.02 | 5.78 s |
|
||||
|
||||
Sopro's own loader resamples to 24 kHz, crops at pauses and applies its default
|
||||
reference/output level handling. Those upstream behaviors were left unchanged.
|
||||
Only synthesis RNG is explicitly seeded; reference preprocessing can add
|
||||
low-level random room tone. Bit-exact equality between independent processes
|
||||
is therefore not claimed. Inputs are identical private WAVs, not necessarily
|
||||
identical internal reference tensors across processes.
|
||||
|
||||
The story and raw technical paragraph are verbatim the earlier Audio8 cases,
|
||||
also embedded in `benchmark.py` and the result files. No pronunciation hints,
|
||||
normalizer edits or Articulino-specific language markup were introduced after
|
||||
seeing outputs. All quality renders used language `de`, seed 42, two acoustic
|
||||
steps, temperature 0.8, top-p 0.9 and top-k 25. Output is 24 kHz mono PCM16.
|
||||
|
||||
| Reference / text | Audio | Synthesis | RTF | Local STT word edits |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| A / story | 14.453 s | 6.070 s | 0.420 | 0 / 36 |
|
||||
| B / story | 14.709 s | 5.981 s | 0.407 | 0 / 36 |
|
||||
| C / story | 14.657 s | 6.062 s | 0.414 | 0 / 36 |
|
||||
| A / technical | 17.397 s | 7.251 s | 0.417 | 4 / 40 |
|
||||
| B / technical | 18.805 s | 7.691 s | 0.409 | 3 / 40 |
|
||||
| C / technical | 18.507 s | 7.602 s | 0.411 | 5 / 40 |
|
||||
|
||||
Combined quality-matrix RTF: 0.4126, approximately 2.42× realtime. No nonfinite
|
||||
samples or PCM clipping were observed. Inference cgroup peak was approximately
|
||||
917 MiB, no swap. This six-render matrix took 42.5 s including model setup.
|
||||
|
||||
## Local STT and listening limits
|
||||
|
||||
All six outputs passed through the existing native Parakeet Redux CPU CLI
|
||||
v0.6.1 with two threads, without using or reconfiguring the production STT
|
||||
endpoint. Total measured ASR time was approximately 7.39 s; cgroup peak 537 MiB.
|
||||
|
||||
- All three story transcripts match all 36 words after case/punctuation
|
||||
normalization: no substitutions, deletions or insertions in this ASR check.
|
||||
- Raw technical transcripts vary around `Unraid` → `Unrate`, `MiB` → `MB`,
|
||||
`CEST` → `Zest`/`6-Test`; A also has `auf` → `of`, and C's time wording is
|
||||
inconsistent (`18 Todare`). Numeric punctuation itself is normalized out.
|
||||
The 12 edits across 120 reference tokens are raw ASR distances, **not**
|
||||
a human-verified pronunciation error rate or a measure of Anna similarity.
|
||||
- No corrected technical rerun was selected to replace these results.
|
||||
- Accent, naturalness and Anna identity remain Michael's listening assessment;
|
||||
intelligible STT and unclipped PCM cannot establish them. No voice is yet
|
||||
declared an accepted Anna replacement.
|
||||
|
||||
Listening files are outside Git under the local
|
||||
`work/sopro-cpu-20261027/audio` directory and remote test-root `outputs/`.
|
||||
All six local WAVs matched the remote result SHA-256 and expected headers and
|
||||
durations. Only synthetic text/results, public dependency pins and hashes are
|
||||
recorded in this folder; no Anna reference audio/transcripts or credentials.
|
||||
|
||||
## Production preservation and native reproduction
|
||||
|
||||
`final-verification.json` confirms unchanged production catalogue, endpoint,
|
||||
audio/CPU policies, original Anna reference and canonical Qwen worker hashes;
|
||||
the Deck start time and production worker PIDs were unchanged across the test.
|
||||
The existing Strata and Articulino workers remained present. No Qwen reload,
|
||||
TTS switch, restart or production speech request was performed.
|
||||
|
||||
For native Debian reproduction, configure the test root and existing private
|
||||
reference paths in these scripts. Run `prepare.py` with host Python supporting
|
||||
venv, Git and CA roots; it creates its own venv, fetches the fixed source commit,
|
||||
downloads only the named model artifacts at the fixed revision, and verifies
|
||||
publisher LFS hashes. `requirements-resolved.txt` records this actual package
|
||||
set; reinstall those versions with the CPU PyTorch index and the pinned local
|
||||
Sopro checkout (adjust its file URL if the configured root differs).
|
||||
|
||||
Run `benchmark.py speed` and optionally `speed --int8` with that venv under
|
||||
the above transient resource limits; it refuses to overwrite prior results.
|
||||
Only after a passed speed gate does `benchmark.py quality` run the matrix.
|
||||
Run `score.py` separately with the existing pinned native Parakeet model/CLI.
|
||||
These scripts assume private reference and STT restoration separately and
|
||||
do not provide a complete fresh native Deck installer/restore acceptance.
|
||||
|
||||
The retained candidate environment, weights and outputs occupy approximately
|
||||
1.53 GiB. There is no active test process or registered production profile.
|
||||
@@ -0,0 +1,119 @@
|
||||
"""CPU speed gate first; quality matrix only after the gate is observed to pass."""
|
||||
import os
|
||||
os.environ.update(CUDA_VISIBLE_DEVICES='', HF_HUB_OFFLINE='1',
|
||||
HF_HUB_DISABLE_IMPLICIT_TOKEN='1', HF_HUB_DISABLE_TELEMETRY='1',
|
||||
OMP_NUM_THREADS='4', MKL_NUM_THREADS='4', OPENBLAS_NUM_THREADS='1')
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import resource
|
||||
import statistics
|
||||
import subprocess
|
||||
import time
|
||||
import numpy as np
|
||||
import torch
|
||||
from sopro import SoproTTS
|
||||
|
||||
ROOT = Path('/data/athena-sopro-cpu-20261027')
|
||||
REFS = Path('/data/athena-articulino-references-20261027/references')
|
||||
STATE = Path('/opt/athena-deck-dev/runtime/state')
|
||||
FILES = [STATE/n for n in ('profiles.json','endpoint.json','audio-policy.json','cpu-partition.json')]
|
||||
FILES += [STATE/'speech-voices/Anna/reference.wav', Path('/opt/athena-deck-dev/source/qwen_native_worker.py')]
|
||||
CASES = [dict(id='story', 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.'),
|
||||
dict(id='technical', text='Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.')]
|
||||
|
||||
def write(path, data):
|
||||
tmp = path.with_suffix('.tmp')
|
||||
tmp.write_text(json.dumps(data, indent=2, ensure_ascii=False))
|
||||
tmp.replace(path)
|
||||
|
||||
def available():
|
||||
return next(int(s.split()[1])*1024 for s in Path('/proc/meminfo').read_text().splitlines() if s.startswith('MemAvailable:'))
|
||||
|
||||
def snapshot():
|
||||
pids = dict(strata=[], articulino=[], qwen_tts=[])
|
||||
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 args and args[0].endswith(b'/engine/strata'): pids['strata'].append(int(p.name))
|
||||
for key,name in [('articulino','articulino_worker.py'),('qwen_tts','qwen_native_worker.py')]:
|
||||
if any(a.endswith(('/'+name).encode()) for a in args): pids[key].append(int(p.name))
|
||||
return dict(hashes={str(p):hashlib.file_digest(p.open('rb'),'sha256').hexdigest() for p in FILES},
|
||||
pids=pids, deck_started=subprocess.check_output(['docker','inspect','--format','{{.State.StartedAt}}','athena-deck-dev'],text=True).strip())
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('phase', choices=['speed','quality'])
|
||||
parser.add_argument('--int8', action='store_true')
|
||||
args = parser.parse_args()
|
||||
os.umask(0o077)
|
||||
torch.set_num_threads(4)
|
||||
torch.set_num_interop_threads(1)
|
||||
assert torch.version.cuda is None and not torch.cuda.is_available()
|
||||
os.sched_setaffinity(0,{2,3,4,5,8,9,10,11})
|
||||
assert available() >= 3*1024**3, 'Host memory reserve unavailable'
|
||||
(ROOT/'outputs').mkdir(exist_ok=True, mode=0o700)
|
||||
precision = 'int8-ar' if args.int8 else 'fp32'
|
||||
target = ROOT/(args.phase+'-'+precision+'.json')
|
||||
assert not target.exists(), 'Refuse to overwrite a previous run'
|
||||
if args.phase == 'quality':
|
||||
gate = json.loads((ROOT/('speed-'+precision+'.json')).read_text())
|
||||
assert gate['phase'] == 'complete' and gate['speed_gate_passed'], 'No passed speed gate'
|
||||
baseline = ROOT/'production-before.json'
|
||||
if not baseline.exists(): write(baseline,snapshot())
|
||||
result = dict(phase='loading', precision=precision, runs=[], references=[],
|
||||
protocol=dict(device='cpu', threads=4, interop_threads=1, affinity=sorted(os.sched_getaffinity(0)),
|
||||
seed=42, language='de', steps=2, max_seconds_per_segment=30, temperature=.8,
|
||||
top_p=.9, top_k=25, api='offline synthesize', gate_maximum_rtf=.5,
|
||||
cpu_quota_percent=400, memory_max_gib=4, private_reference_reused=True),
|
||||
initial_available_gib=available()/2**30, initial_loadavg=os.getloadavg(),
|
||||
torch=torch.__version__, cuda_build=torch.version.cuda)
|
||||
write(target,result)
|
||||
started=time.monotonic()
|
||||
tts=SoproTTS.from_pretrained(ROOT/'model',device='cpu',dtype=torch.float32,
|
||||
quantization='int8' if args.int8 else None)
|
||||
result['model_load_seconds']=time.monotonic()-started
|
||||
assert tts.device.type=='cpu' and tts.sample_rate==24000
|
||||
work=[('A',CASES[0],1),('A',CASES[0],2)] if args.phase=='speed' else [(label,case,1) for label in 'ABC' for case in CASES]
|
||||
current=None
|
||||
for label,case,repetition in work:
|
||||
assert available()>=2*1024**3, 'Host 2GiB reserve lost'
|
||||
if current!=label:
|
||||
refpath=REFS/f'anna-reference-{label}.wav'
|
||||
started=time.monotonic()
|
||||
ref=tts.prepare_reference(ref_audio_path=refpath)
|
||||
result['references'].append(dict(label=label,preparation_seconds=time.monotonic()-started,
|
||||
source_sha256=hashlib.file_digest(refpath.open('rb'),'sha256').hexdigest()))
|
||||
current=label
|
||||
torch.manual_seed(42)
|
||||
started=time.monotonic()
|
||||
wav=tts.synthesize(case['text'],ref=ref,lang='de',steps=2,temperature=.8,top_p=.9,top_k=25,max_seconds=30).cpu()
|
||||
synthesis=time.monotonic()-started
|
||||
assert wav.numel()>0 and torch.isfinite(wav).all()
|
||||
duration=wav.shape[-1]/tts.sample_rate
|
||||
name=f'sopro-{precision}-{args.phase}-{case["id"]}-{label}-{repetition}.wav'
|
||||
file=ROOT/'outputs'/name
|
||||
tts.save_wav(file,wav)
|
||||
pcm=wav.numpy().reshape(-1)
|
||||
row=dict(label=label,case=case['id'],repetition=repetition,text=case['text'],file=name,
|
||||
generation_seconds=synthesis,write_seconds=time.monotonic()-started-synthesis,
|
||||
duration_seconds=duration,rtf=synthesis/duration,realtime_multiple=duration/synthesis,
|
||||
peak=float(np.max(np.abs(pcm))),clipped_fraction=float(np.mean(np.abs(pcm)>=1)),
|
||||
peak_rss_kib=resource.getrusage(resource.RUSAGE_SELF).ru_maxrss,
|
||||
available_gib=available()/2**30,loadavg=os.getloadavg(),
|
||||
sha256=hashlib.file_digest(file.open('rb'),'sha256').hexdigest())
|
||||
result['runs'].append(row);result['phase']='running';write(target,result)
|
||||
print(json.dumps(row,ensure_ascii=False),flush=True)
|
||||
result['phase']='complete'
|
||||
result['weighted_rtf']=sum(r['generation_seconds'] for r in result['runs'])/sum(r['duration_seconds'] for r in result['runs'])
|
||||
result['speed_gate_passed']=all(r['rtf']<=.5 for r in result['runs']) if args.phase=='speed' else True
|
||||
after=snapshot(); before=json.loads(baseline.read_text())
|
||||
result['production_preservation']=dict(files_equal=before['hashes']==after['hashes'],
|
||||
pids_equal=before['pids']==after['pids'],deck_start_equal=before['deck_started']==after['deck_started'])
|
||||
write(ROOT/'production-after.json',after);write(target,result)
|
||||
assert all(result['production_preservation'].values()), 'Production state changed independently; investigate'
|
||||
print(json.dumps(dict(phase='complete',speed_gate_passed=result['speed_gate_passed'],weighted_rtf=result['weighted_rtf'],preservation=result['production_preservation'])),flush=True)
|
||||
|
||||
if __name__=='__main__': main()
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"production_preservation": {
|
||||
"files_equal": true,
|
||||
"pids_equal": true,
|
||||
"deck_start_equal": true
|
||||
},
|
||||
"test_units": {
|
||||
"athena-sopro-prepare-20261027.service": "LoadState=not-found\nActiveState=inactive",
|
||||
"athena-sopro-speed-fp32-20261027.service": "LoadState=not-found\nActiveState=inactive",
|
||||
"athena-sopro-speed-int8-20261027.service": "LoadState=not-found\nActiveState=inactive",
|
||||
"athena-sopro-quality-20261027.service": "LoadState=not-found\nActiveState=inactive",
|
||||
"athena-sopro-stt-20261027.service": "LoadState=not-found\nActiveState=inactive"
|
||||
},
|
||||
"own_disk_bytes": 1642293201,
|
||||
"deck_started": "2026-10-27T11:19:49.796388945Z",
|
||||
"production_pids_present": {
|
||||
"strata": 1,
|
||||
"articulino": 1,
|
||||
"qwen_tts": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"source": "https://github.com/samuel-vitorino/sopro",
|
||||
"source_revision": "7bfcf9a0539d274f6593959a21da948f506ceee1",
|
||||
"model_id": "samuel-vitorino/sopro-v2-turbo",
|
||||
"model_revision": "c12d0dc7c4a33b3cb6ea3d11ceb70bc60c7c6312",
|
||||
"files": [
|
||||
{
|
||||
"file": "config.json",
|
||||
"bytes": 4481,
|
||||
"sha256": "9d5a45b510a0e24620700e0f80288cff2441b9d826416d6fd7ef745b485476f4",
|
||||
"publisher_lfs_sha256": null
|
||||
},
|
||||
{
|
||||
"file": "model.safetensors",
|
||||
"bytes": 486332212,
|
||||
"sha256": "4a68c1b636b1201cb5f808475a8c05d9711dae041f2933084c9cf4f6f12677e3",
|
||||
"publisher_lfs_sha256": "4a68c1b636b1201cb5f808475a8c05d9711dae041f2933084c9cf4f6f12677e3"
|
||||
},
|
||||
{
|
||||
"file": "semantic_encoder.safetensors",
|
||||
"bytes": 82497708,
|
||||
"sha256": "d1d1bccdfffdcd6d01d802a3e5dbefa0674c660f5022d87ec14e3271596c5c5f",
|
||||
"publisher_lfs_sha256": "d1d1bccdfffdcd6d01d802a3e5dbefa0674c660f5022d87ec14e3271596c5c5f"
|
||||
},
|
||||
{
|
||||
"file": "speaker_encoder.safetensors",
|
||||
"bytes": 10784100,
|
||||
"sha256": "67422a45d801542ee0aa55ce824f570ceb1c6b2283b4e74978c1b4673b49acd7",
|
||||
"publisher_lfs_sha256": "67422a45d801542ee0aa55ce824f570ceb1c6b2283b4e74978c1b4673b49acd7"
|
||||
},
|
||||
{
|
||||
"file": "vocoder.safetensors",
|
||||
"bytes": 54348240,
|
||||
"sha256": "07e5561491cce41f7f90cfdb94b2ff263ff5742c3d89339db99b17ad82cc3f44",
|
||||
"publisher_lfs_sha256": "07e5561491cce41f7f90cfdb94b2ff263ff5742c3d89339db99b17ad82cc3f44"
|
||||
},
|
||||
{
|
||||
"file": "tokenizer.model",
|
||||
"bytes": 370821,
|
||||
"sha256": "2d76e7a4e8dbd0a4d2137c13200ac9710ad3fd93fad20a61f71102ab7bae754d",
|
||||
"publisher_lfs_sha256": "2d76e7a4e8dbd0a4d2137c13200ac9710ad3fd93fad20a61f71102ab7bae754d"
|
||||
},
|
||||
{
|
||||
"file": "README.md",
|
||||
"bytes": 5878,
|
||||
"sha256": "0cd5af86ff15be2d0585fbda61f112ce94031108b0ff3f169477c7485dd0fca9",
|
||||
"publisher_lfs_sha256": null
|
||||
}
|
||||
],
|
||||
"python": "3.13.5 (main, Aug 10 2026, 12:06:59) [GCC 14.2.0]",
|
||||
"torch_wheels": "https://download.pytorch.org/whl/cpu",
|
||||
"total_model_bytes": 634343440
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
"""Prepare the explicitly requested isolated Sopro CPU experiment on Athena.
|
||||
|
||||
Run with host Python. Only public pinned sources/weights are downloaded;
|
||||
production environments, endpoint configuration and private audio stay intact.
|
||||
"""
|
||||
from pathlib import Path
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import urllib.request
|
||||
import venv
|
||||
|
||||
ROOT = Path('/data/athena-sopro-cpu-20261027')
|
||||
SOURCE_REV = '7bfcf9a0539d274f6593959a21da948f506ceee1'
|
||||
MODEL_REV = 'c12d0dc7c4a33b3cb6ea3d11ceb70bc60c7c6312'
|
||||
MODEL_ID = 'samuel-vitorino/sopro-v2-turbo'
|
||||
FILES = ['config.json', 'model.safetensors', 'semantic_encoder.safetensors',
|
||||
'speaker_encoder.safetensors', 'vocoder.safetensors', 'tokenizer.model', 'README.md']
|
||||
|
||||
os.umask(0o077)
|
||||
ROOT.mkdir(exist_ok=True, mode=0o700)
|
||||
os.environ.update(PIP_DISABLE_PIP_VERSION_CHECK='1', HF_HUB_DISABLE_TELEMETRY='1',
|
||||
HF_HUB_DISABLE_IMPLICIT_TOKEN='1', CUDA_VISIBLE_DEVICES='',
|
||||
OMP_NUM_THREADS='2', OPENBLAS_NUM_THREADS='1')
|
||||
python = ROOT/'venv/bin/python'
|
||||
if not python.exists():
|
||||
venv.EnvBuilder(with_pip=True).create(ROOT/'venv')
|
||||
def run(args):
|
||||
subprocess.run([str(x) for x in args], check=True)
|
||||
run([python, '-m', 'pip', 'install', '--no-cache-dir', '--quiet',
|
||||
'--index-url', 'https://download.pytorch.org/whl/cpu', 'torch==2.8.0', 'torchaudio==2.8.0'])
|
||||
source = ROOT/'source'
|
||||
if not source.exists():
|
||||
run(['git', 'clone', '--quiet', 'https://github.com/samuel-vitorino/sopro.git', source])
|
||||
run(['git', '-C', source, 'checkout', '--quiet', '--detach', SOURCE_REV])
|
||||
assert subprocess.check_output(['git', '-C', str(source), 'rev-parse', 'HEAD'], text=True).strip() == SOURCE_REV
|
||||
run([python, '-m', 'pip', 'install', '--no-cache-dir', '--quiet', source])
|
||||
with urllib.request.urlopen(f'https://huggingface.co/api/models/{MODEL_ID}/revision/{MODEL_REV}?blobs=true', timeout=30) as response:
|
||||
metadata = json.load(response)
|
||||
assert metadata['sha'] == MODEL_REV
|
||||
remote = {x['rfilename']: x for x in metadata['siblings']}
|
||||
model = ROOT/'model'
|
||||
model.mkdir(exist_ok=True, mode=0o700)
|
||||
manifest = []
|
||||
for name in FILES:
|
||||
path = model/name
|
||||
expected = remote[name].get('lfs', {}).get('sha256')
|
||||
valid = path.exists() and (not expected or hashlib.file_digest(path.open('rb'), 'sha256').hexdigest() == expected)
|
||||
if not valid:
|
||||
tmp = path.with_suffix(path.suffix+'.part')
|
||||
with urllib.request.urlopen(f'https://huggingface.co/{MODEL_ID}/resolve/{MODEL_REV}/{name}', timeout=90) as response, tmp.open('wb') as output:
|
||||
while chunk := response.read(1024*1024):
|
||||
output.write(chunk)
|
||||
actual = hashlib.file_digest(tmp.open('rb'), 'sha256').hexdigest()
|
||||
assert not expected or actual == expected, name+' checksum mismatch'
|
||||
tmp.replace(path)
|
||||
digest = hashlib.file_digest(path.open('rb'), 'sha256').hexdigest()
|
||||
manifest.append(dict(file=name, bytes=path.stat().st_size, sha256=digest,
|
||||
publisher_lfs_sha256=expected))
|
||||
print(json.dumps(manifest[-1]), flush=True)
|
||||
freeze = subprocess.check_output([str(python), '-m', 'pip', 'freeze'], text=True)
|
||||
(ROOT/'requirements-resolved.txt').write_text(freeze)
|
||||
data = dict(source='https://github.com/samuel-vitorino/sopro', source_revision=SOURCE_REV,
|
||||
model_id=MODEL_ID, model_revision=MODEL_REV, files=manifest,
|
||||
python=sys.version, torch_wheels='https://download.pytorch.org/whl/cpu',
|
||||
total_model_bytes=sum(x['bytes'] for x in manifest))
|
||||
(ROOT/'manifest.json').write_text(json.dumps(data, indent=2))
|
||||
run([python, '-m', 'pip', 'check'])
|
||||
run([python, '-c', 'import torch,torchaudio,sopro; print("CPU_TORCH",torch.__version__,"CUDA_BUILD",torch.version.cuda); assert torch.version.cuda is None'])
|
||||
print('PREPARED', flush=True)
|
||||
@@ -0,0 +1,198 @@
|
||||
{
|
||||
"phase": "complete",
|
||||
"precision": "fp32",
|
||||
"runs": [
|
||||
{
|
||||
"label": "A",
|
||||
"case": "story",
|
||||
"repetition": 1,
|
||||
"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.",
|
||||
"file": "sopro-fp32-quality-story-A-1.wav",
|
||||
"generation_seconds": 6.0696186639979715,
|
||||
"write_seconds": 0.004001342997071333,
|
||||
"duration_seconds": 14.453333333333333,
|
||||
"rtf": 0.4199459407747674,
|
||||
"realtime_multiple": 2.381258878595369,
|
||||
"peak": 0.8246169090270996,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175200,
|
||||
"available_gib": 7.061275482177734,
|
||||
"loadavg": [
|
||||
1.177734375,
|
||||
0.58154296875,
|
||||
0.6279296875
|
||||
],
|
||||
"sha256": "58e0580c812ef517214e0d8c72261e9f7d82253ac1c0ce4ffd448554b09a56a1"
|
||||
},
|
||||
{
|
||||
"label": "A",
|
||||
"case": "technical",
|
||||
"repetition": 1,
|
||||
"text": "Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.",
|
||||
"file": "sopro-fp32-quality-technical-A-1.wav",
|
||||
"generation_seconds": 7.250871732001542,
|
||||
"write_seconds": 0.004945872002281249,
|
||||
"duration_seconds": 17.397333333333332,
|
||||
"rtf": 0.4167806406346687,
|
||||
"realtime_multiple": 2.399343689469865,
|
||||
"peak": 0.5728251934051514,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175200,
|
||||
"available_gib": 7.049922943115234,
|
||||
"loadavg": [
|
||||
1.40380859375,
|
||||
0.638671875,
|
||||
0.646484375
|
||||
],
|
||||
"sha256": "57bc450a8fe4a48b99a7596724ae6029c01997ba509c2a350b5d380936102fc9"
|
||||
},
|
||||
{
|
||||
"label": "B",
|
||||
"case": "story",
|
||||
"repetition": 1,
|
||||
"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.",
|
||||
"file": "sopro-fp32-quality-story-B-1.wav",
|
||||
"generation_seconds": 5.980821824006853,
|
||||
"write_seconds": 0.004053712007589638,
|
||||
"duration_seconds": 14.709333333333333,
|
||||
"rtf": 0.40660046845586834,
|
||||
"realtime_multiple": 2.4594167434131675,
|
||||
"peak": 0.7564018368721008,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175200,
|
||||
"available_gib": 7.0920867919921875,
|
||||
"loadavg": [
|
||||
1.61181640625,
|
||||
0.69482421875,
|
||||
0.66455078125
|
||||
],
|
||||
"sha256": "3b50c9ee07199cebcb056088c00075149980040d66a6a027fded12b36a4b06a8"
|
||||
},
|
||||
{
|
||||
"label": "B",
|
||||
"case": "technical",
|
||||
"repetition": 1,
|
||||
"text": "Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.",
|
||||
"file": "sopro-fp32-quality-technical-B-1.wav",
|
||||
"generation_seconds": 7.691495527993538,
|
||||
"write_seconds": 0.004917869999189861,
|
||||
"duration_seconds": 18.805333333333333,
|
||||
"rtf": 0.4090060724613694,
|
||||
"realtime_multiple": 2.444951474637213,
|
||||
"peak": 0.7700371742248535,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175200,
|
||||
"available_gib": 7.057445526123047,
|
||||
"loadavg": [
|
||||
1.9794921875,
|
||||
0.80419921875,
|
||||
0.70068359375
|
||||
],
|
||||
"sha256": "d09003815d3ef87dd4c558acd4f605c5358ed49289db1afd497facd4861dd682"
|
||||
},
|
||||
{
|
||||
"label": "C",
|
||||
"case": "story",
|
||||
"repetition": 1,
|
||||
"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.",
|
||||
"file": "sopro-fp32-quality-story-C-1.wav",
|
||||
"generation_seconds": 6.061690839007497,
|
||||
"write_seconds": 0.004072447001817636,
|
||||
"duration_seconds": 14.656666666666666,
|
||||
"rtf": 0.4135790884016941,
|
||||
"realtime_multiple": 2.4179172207777024,
|
||||
"peak": 0.6975754499435425,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175200,
|
||||
"available_gib": 7.065784454345703,
|
||||
"loadavg": [
|
||||
2.1416015625,
|
||||
0.857421875,
|
||||
0.71875
|
||||
],
|
||||
"sha256": "7a3a54b5ef8d5c505f13c0d10353ca9aef8d9cd5521579cf181b3af654d257c1"
|
||||
},
|
||||
{
|
||||
"label": "C",
|
||||
"case": "technical",
|
||||
"repetition": 1,
|
||||
"text": "Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.",
|
||||
"file": "sopro-fp32-quality-technical-C-1.wav",
|
||||
"generation_seconds": 7.601832650994766,
|
||||
"write_seconds": 0.004688300003181212,
|
||||
"duration_seconds": 18.506666666666668,
|
||||
"rtf": 0.41076185073818977,
|
||||
"realtime_multiple": 2.4345006679731247,
|
||||
"peak": 0.5668801665306091,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175200,
|
||||
"available_gib": 7.059028625488281,
|
||||
"loadavg": [
|
||||
2.427734375,
|
||||
0.96142578125,
|
||||
0.75439453125
|
||||
],
|
||||
"sha256": "5dd6349758d82da058f4ddb3d9ee54b9a2219f42cbbd9c94f8ca45678435a935"
|
||||
}
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"label": "A",
|
||||
"preparation_seconds": 0.08823406198644079,
|
||||
"source_sha256": "695f46d1c438630e685b16b1161b4304965273b1a55d355bb4badee8d4d9b593"
|
||||
},
|
||||
{
|
||||
"label": "B",
|
||||
"preparation_seconds": 0.06948083700262941,
|
||||
"source_sha256": "17429deffc2ca5c66518e3152f0a427ba133b6005fbc7cb9b00c883f2e488c55"
|
||||
},
|
||||
{
|
||||
"label": "C",
|
||||
"preparation_seconds": 0.06257091999577824,
|
||||
"source_sha256": "bcc591b617ea34068cae89f09f5dfb1bb831ae8db7c6b3addda209b430a305cf"
|
||||
}
|
||||
],
|
||||
"protocol": {
|
||||
"device": "cpu",
|
||||
"threads": 4,
|
||||
"interop_threads": 1,
|
||||
"affinity": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11
|
||||
],
|
||||
"seed": 42,
|
||||
"language": "de",
|
||||
"steps": 2,
|
||||
"max_seconds_per_segment": 30,
|
||||
"temperature": 0.8,
|
||||
"top_p": 0.9,
|
||||
"top_k": 25,
|
||||
"api": "offline synthesize",
|
||||
"gate_maximum_rtf": 0.5,
|
||||
"cpu_quota_percent": 400,
|
||||
"memory_max_gib": 4,
|
||||
"private_reference_reused": true
|
||||
},
|
||||
"initial_available_gib": 7.7887420654296875,
|
||||
"initial_loadavg": [
|
||||
0.92529296875,
|
||||
0.51513671875,
|
||||
0.60693359375
|
||||
],
|
||||
"torch": "2.8.0+cpu",
|
||||
"cuda_build": null,
|
||||
"model_load_seconds": 0.6817126569949323,
|
||||
"weighted_rtf": 0.41263454194043864,
|
||||
"speed_gate_passed": true,
|
||||
"production_preservation": {
|
||||
"files_equal": true,
|
||||
"pids_equal": true,
|
||||
"deck_start_equal": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
anyio==4.15.1
|
||||
cffi==2.1.1
|
||||
click==8.5.0
|
||||
filelock==3.32.3
|
||||
fsspec==2026.7.0
|
||||
h11==0.16.0
|
||||
hf-xet==1.7.0
|
||||
httpcore2==2.16.0
|
||||
httpx2==2.16.0
|
||||
huggingface_hub==2.3.0
|
||||
idna==3.20
|
||||
Jinja2==3.1.6
|
||||
MarkupSafe==3.0.3
|
||||
mpmath==1.3.0
|
||||
networkx==3.6.1
|
||||
numpy==2.5.4
|
||||
packaging==26.3
|
||||
pycparser==3.12
|
||||
PyYAML==6.0.3
|
||||
safetensors==0.8.0
|
||||
sentencepiece==0.2.2
|
||||
setuptools==78.1.0
|
||||
sopro @ file:///data/athena-sopro-cpu-20261027/source
|
||||
soundfile==0.14.0
|
||||
sympy==1.14.0
|
||||
torch==2.8.0+cpu
|
||||
torchaudio==2.8.0+cpu
|
||||
tqdm==4.70.1
|
||||
truststore==0.10.5
|
||||
typing_extensions==4.16.0
|
||||
@@ -0,0 +1,36 @@
|
||||
"""Local existing CPU ASR on synthetic Sopro output; no production STT changes."""
|
||||
from pathlib import Path
|
||||
import json
|
||||
import re
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
ROOT=Path('/data/athena-sopro-cpu-20261027')
|
||||
BASE=Path('/opt/athena-deck-dev/runtime/state/parakeet-runtime/v0.6.1')
|
||||
CLI=BASE/'runtime/parakeet-v0.6.1-bin-linux-cpu-x64/parakeet-cli'
|
||||
|
||||
def edits(a,b):
|
||||
prev=list(range(len(b)+1))
|
||||
for i,x in enumerate(a,1):
|
||||
row=[i]
|
||||
for j,y in enumerate(b,1): row.append(min(row[-1]+1,prev[j]+1,prev[j-1]+(x!=y)))
|
||||
prev=row
|
||||
return prev[-1]
|
||||
|
||||
rows=[]
|
||||
for results in sorted(ROOT.glob('quality-*.json')):
|
||||
data=json.loads(results.read_text())
|
||||
assert data['phase']=='complete'
|
||||
for run in data['runs']:
|
||||
start=time.monotonic()
|
||||
p=subprocess.run([str(CLI),'transcribe','--model',str(BASE/'redux-packed.gguf'),
|
||||
'--input',str(ROOT/'outputs'/run['file']),'--lang','de','--threads','2','--json'],
|
||||
capture_output=True,text=True,timeout=90)
|
||||
row=dict(file=run['file'],case=run['case'],label=run['label'],exit_code=p.returncode,seconds=time.monotonic()-start)
|
||||
if p.returncode==0:
|
||||
actual=json.loads(p.stdout)['text'];a=re.findall(r'\w+',run['text'].casefold());b=re.findall(r'\w+',actual.casefold())
|
||||
row.update(expected=run['text'],recognized=actual,reference_words=len(a),word_edits=edits(a,b),exact_word_match=a==b)
|
||||
else: row['error']=p.stderr[-1000:]
|
||||
rows.append(row)
|
||||
(ROOT/'transcriptions.json').write_text(json.dumps(rows,indent=2,ensure_ascii=False))
|
||||
print(json.dumps(row,ensure_ascii=False),flush=True)
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"phase": "complete",
|
||||
"precision": "fp32",
|
||||
"runs": [
|
||||
{
|
||||
"label": "A",
|
||||
"case": "story",
|
||||
"repetition": 1,
|
||||
"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.",
|
||||
"file": "sopro-fp32-speed-story-A-1.wav",
|
||||
"generation_seconds": 5.9743365890026325,
|
||||
"write_seconds": 0.00343553299899213,
|
||||
"duration_seconds": 14.453333333333333,
|
||||
"rtf": 0.41335354628708254,
|
||||
"realtime_multiple": 2.419236532460954,
|
||||
"peak": 0.8235096335411072,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175432,
|
||||
"available_gib": 7.121421813964844,
|
||||
"loadavg": [
|
||||
0.69189453125,
|
||||
0.3466796875,
|
||||
0.56005859375
|
||||
],
|
||||
"sha256": "dd08fb726517b120b9c36673683e123fa5a41a2c2fe697ab00f86b80ff1ec426"
|
||||
},
|
||||
{
|
||||
"label": "A",
|
||||
"case": "story",
|
||||
"repetition": 2,
|
||||
"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.",
|
||||
"file": "sopro-fp32-speed-story-A-2.wav",
|
||||
"generation_seconds": 5.959009122001589,
|
||||
"write_seconds": 0.0036469589977059513,
|
||||
"duration_seconds": 14.453333333333333,
|
||||
"rtf": 0.41229306655915055,
|
||||
"realtime_multiple": 2.4254591723931713,
|
||||
"peak": 0.8235096335411072,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175432,
|
||||
"available_gib": 7.130828857421875,
|
||||
"loadavg": [
|
||||
1.201171875,
|
||||
0.4677734375,
|
||||
0.59716796875
|
||||
],
|
||||
"sha256": "dd08fb726517b120b9c36673683e123fa5a41a2c2fe697ab00f86b80ff1ec426"
|
||||
}
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"label": "A",
|
||||
"preparation_seconds": 0.08916980799403973,
|
||||
"source_sha256": "695f46d1c438630e685b16b1161b4304965273b1a55d355bb4badee8d4d9b593"
|
||||
}
|
||||
],
|
||||
"protocol": {
|
||||
"device": "cpu",
|
||||
"threads": 4,
|
||||
"interop_threads": 1,
|
||||
"affinity": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11
|
||||
],
|
||||
"seed": 42,
|
||||
"language": "de",
|
||||
"steps": 2,
|
||||
"max_seconds_per_segment": 30,
|
||||
"temperature": 0.8,
|
||||
"top_p": 0.9,
|
||||
"top_k": 25,
|
||||
"api": "offline synthesize",
|
||||
"gate_maximum_rtf": 0.5,
|
||||
"cpu_quota_percent": 400,
|
||||
"memory_max_gib": 4,
|
||||
"private_reference_reused": true
|
||||
},
|
||||
"initial_available_gib": 7.808818817138672,
|
||||
"initial_loadavg": [
|
||||
0.40380859375,
|
||||
0.28466796875,
|
||||
0.541015625
|
||||
],
|
||||
"torch": "2.8.0+cpu",
|
||||
"cuda_build": null,
|
||||
"model_load_seconds": 0.68501150701195,
|
||||
"weighted_rtf": 0.41282330642311654,
|
||||
"speed_gate_passed": true,
|
||||
"production_preservation": {
|
||||
"files_equal": true,
|
||||
"pids_equal": true,
|
||||
"deck_start_equal": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"phase": "complete",
|
||||
"precision": "int8-ar",
|
||||
"runs": [
|
||||
{
|
||||
"label": "A",
|
||||
"case": "story",
|
||||
"repetition": 1,
|
||||
"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.",
|
||||
"file": "sopro-int8-ar-speed-story-A-1.wav",
|
||||
"generation_seconds": 5.413257523003267,
|
||||
"write_seconds": 0.0038875500031281263,
|
||||
"duration_seconds": 13.685333333333332,
|
||||
"rtf": 0.39555174807603766,
|
||||
"realtime_multiple": 2.5281142223842936,
|
||||
"peak": 0.8732582330703735,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175244,
|
||||
"available_gib": 7.226314544677734,
|
||||
"loadavg": [
|
||||
1.18017578125,
|
||||
0.50341796875,
|
||||
0.60546875
|
||||
],
|
||||
"sha256": "b7d8668463e941e52bf27616ec516b3a4cb73a514fc481b9d0484731bf2709fb"
|
||||
},
|
||||
{
|
||||
"label": "A",
|
||||
"case": "story",
|
||||
"repetition": 2,
|
||||
"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.",
|
||||
"file": "sopro-int8-ar-speed-story-A-2.wav",
|
||||
"generation_seconds": 5.407929762994172,
|
||||
"write_seconds": 0.003296012000646442,
|
||||
"duration_seconds": 13.685333333333332,
|
||||
"rtf": 0.395162443710603,
|
||||
"realtime_multiple": 2.530604858624544,
|
||||
"peak": 0.8732582330703735,
|
||||
"clipped_fraction": 0.0,
|
||||
"peak_rss_kib": 1175244,
|
||||
"available_gib": 7.239509582519531,
|
||||
"loadavg": [
|
||||
1.40625,
|
||||
0.5615234375,
|
||||
0.6240234375
|
||||
],
|
||||
"sha256": "b7d8668463e941e52bf27616ec516b3a4cb73a514fc481b9d0484731bf2709fb"
|
||||
}
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"label": "A",
|
||||
"preparation_seconds": 0.08708111800660845,
|
||||
"source_sha256": "695f46d1c438630e685b16b1161b4304965273b1a55d355bb4badee8d4d9b593"
|
||||
}
|
||||
],
|
||||
"protocol": {
|
||||
"device": "cpu",
|
||||
"threads": 4,
|
||||
"interop_threads": 1,
|
||||
"affinity": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11
|
||||
],
|
||||
"seed": 42,
|
||||
"language": "de",
|
||||
"steps": 2,
|
||||
"max_seconds_per_segment": 30,
|
||||
"temperature": 0.8,
|
||||
"top_p": 0.9,
|
||||
"top_k": 25,
|
||||
"api": "offline synthesize",
|
||||
"gate_maximum_rtf": 0.5,
|
||||
"cpu_quota_percent": 400,
|
||||
"memory_max_gib": 4,
|
||||
"private_reference_reused": true
|
||||
},
|
||||
"initial_available_gib": 7.812591552734375,
|
||||
"initial_loadavg": [
|
||||
0.9345703125,
|
||||
0.4443359375,
|
||||
0.5869140625
|
||||
],
|
||||
"torch": "2.8.0+cpu",
|
||||
"cuda_build": null,
|
||||
"model_load_seconds": 0.7371503819886129,
|
||||
"weighted_rtf": 0.39535709589332035,
|
||||
"speed_gate_passed": true,
|
||||
"production_preservation": {
|
||||
"files_equal": true,
|
||||
"pids_equal": true,
|
||||
"deck_start_equal": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"speed": {
|
||||
"fp32": {
|
||||
"mean_generation_seconds": 5.966672855502111,
|
||||
"audio_seconds": 14.453333333333333,
|
||||
"weighted_rtf": 0.41282330642311654,
|
||||
"realtime_multiple": 2.4223438561752766,
|
||||
"gate_passed": true,
|
||||
"model_load_seconds": 0.68501150701195,
|
||||
"voice_preparation_seconds": 0.08916980799403973
|
||||
},
|
||||
"int8-ar": {
|
||||
"mean_generation_seconds": 5.41059364299872,
|
||||
"audio_seconds": 13.685333333333332,
|
||||
"weighted_rtf": 0.39535709589332035,
|
||||
"realtime_multiple": 2.529358927377975,
|
||||
"gate_passed": true,
|
||||
"model_load_seconds": 0.7371503819886129,
|
||||
"voice_preparation_seconds": 0.08708111800660845
|
||||
}
|
||||
},
|
||||
"quality_weighted_rtf": 0.41263454194043864,
|
||||
"samples_checked": 6,
|
||||
"asr": {
|
||||
"story": {
|
||||
"n": 3,
|
||||
"exact_matches": 3,
|
||||
"word_edits": 0,
|
||||
"reference_words": 108
|
||||
},
|
||||
"technical": {
|
||||
"n": 3,
|
||||
"exact_matches": 0,
|
||||
"word_edits": 12,
|
||||
"reference_words": 120
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
[
|
||||
{
|
||||
"file": "sopro-fp32-quality-story-A-1.wav",
|
||||
"case": "story",
|
||||
"label": "A",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.0855469009984517,
|
||||
"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 Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.",
|
||||
"reference_words": 36,
|
||||
"word_edits": 0,
|
||||
"exact_word_match": true
|
||||
},
|
||||
{
|
||||
"file": "sopro-fp32-quality-technical-A-1.wav",
|
||||
"case": "technical",
|
||||
"label": "A",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.316637490002904,
|
||||
"expected": "Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.",
|
||||
"recognized": "Home Assistant läuft in Docker of Unrate. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18.30 Zest startet der nächste Scan.",
|
||||
"reference_words": 40,
|
||||
"word_edits": 4,
|
||||
"exact_word_match": false
|
||||
},
|
||||
{
|
||||
"file": "sopro-fp32-quality-story-B-1.wav",
|
||||
"case": "story",
|
||||
"label": "B",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.1019255169958342,
|
||||
"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 Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.",
|
||||
"reference_words": 36,
|
||||
"word_edits": 0,
|
||||
"exact_word_match": true
|
||||
},
|
||||
{
|
||||
"file": "sopro-fp32-quality-technical-B-1.wav",
|
||||
"case": "technical",
|
||||
"label": "B",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.4071440219995566,
|
||||
"expected": "Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.",
|
||||
"recognized": "Home Assistant läuft in Docker auf Unrate. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18 30 Zest startet der nächste Scan.",
|
||||
"reference_words": 40,
|
||||
"word_edits": 3,
|
||||
"exact_word_match": false
|
||||
},
|
||||
{
|
||||
"file": "sopro-fp32-quality-story-C-1.wav",
|
||||
"case": "story",
|
||||
"label": "C",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.0852477799926419,
|
||||
"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 Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.",
|
||||
"reference_words": 36,
|
||||
"word_edits": 0,
|
||||
"exact_word_match": true
|
||||
},
|
||||
{
|
||||
"file": "sopro-fp32-quality-technical-C-1.wav",
|
||||
"case": "technical",
|
||||
"label": "C",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.3891711429896532,
|
||||
"expected": "Home Assistant läuft in Docker auf Unraid. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MiB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18:30 CEST startet der nächste Scan.",
|
||||
"recognized": "Home Assistant läuft in Docker auf Unrate. Die SSD hat 47 Grad Celsius. Das Logfile enthält keinen Fehler. Die Datei ist 512 MB groß und die Verbindung überträgt 100 Mbit pro Sekunde. Um 18 Todare 6-Test startet der nächste Scan.",
|
||||
"reference_words": 40,
|
||||
"word_edits": 5,
|
||||
"exact_word_match": false
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user