Evaluation scripts for the Open TTS Leaderboard: https://huggingface.co/spaces/hf-audio/open_tts_leaderboard
Python
Add Paradee 1.3 (8 voices in English, Hindi, French and Spanish) (#48)
Sahil Mahendrakar6d6f58d81279
diff --git a/README.md b/README.mdindex 025b037..b5b2f04 100644--- a/README.md+++ b/README.md@@ -235,7 +235,7 @@ Seamless is fast and batched, so most of each of its generation jobs (~1 min per1. **Create the environment image.** Create a **public** [Docker Space](https://huggingface.co/new-space?sdk=docker) (HF Jobs can't pull private ones), e.g. `YOUR_USERNAME/evals-<backend>`, whose `Dockerfile` installs the model's dependencies. It only needs the Dockerfile; the eval scripts are injected at runtime. See the existing Spaces [here](https://huggingface.co/collections/bezzam/tts-eval). Models that run with `transformers` can instead be added to the [transformers/](transformers/) backend.- **No Space needed for light dependencies.** If an existing public image on a Docker registry (e.g. `pytorch/pytorch` on Docker Hub) already has the heavy dependencies, skip the Space: pass that image to `hf jobs run` and `pip install` the remaining packages at the start of the job command. [indic-tiny-tts/submit_jobs.sh](indic-tiny-tts/submit_jobs.sh) is an example (`GEN_IMAGE` + `GEN_PIP_DEPS`). Use a Space when the install is slow or fragile (compiled extensions, system packages, pinned forks), so every job doesn't redo it.+ **No Space needed for light dependencies.** If an existing public image on a Docker registry (e.g. `pytorch/pytorch` on Docker Hub) already has the heavy dependencies, skip the Space: pass that image to `hf jobs run` and `pip install` the remaining packages at the start of the job command. [indic-tiny-tts/submit_jobs.sh](indic-tiny-tts/submit_jobs.sh) is an example (`GEN_IMAGE` + `GEN_PIP_DEPS`). To also run the [TTFA probe](#time-to-first-audio-streaming-evaluation) without a Space, put the image and the install in `<backend>/job_image.sh` (`GEN_IMAGE` + `gen_setup <device>`), source it from `submit_jobs.sh`, and leave the Space field of the `TTFA_TARGETS` entry empty: see [paradee-v1.3/job_image.sh](paradee-v1.3/job_image.sh). Use a Space when the install is slow or fragile (compiled extensions, system packages, pinned forks), so every job doesn't redo it.2. **Write `<backend>/run_eval.py`**, which evaluates one dataset split. The shared helpers in [scripts/run_eval_utils.py](scripts/run_eval_utils.py) handle the parts common to every backend, so the script mostly contains the model-specific code. It should:- synthesize the `text` column, cloning from `prompt_audio` / `prompt_text` when `--voice_clone` is set (off by default)- time generation only, after `--warmup_steps` untimed warm-up batches (default 2), so RTFx is fairdiff --git a/paradee-v1.3/job_image.sh b/paradee-v1.3/job_image.shnew file mode 100644index 0000000..54c663c--- /dev/null+++ b/paradee-v1.3/job_image.sh@@ -0,0 +1,23 @@+# Stage-1 environment for the Paradee 1.3 backend, sourced by paradee-v1.3/submit_jobs.sh (eval) and+# submit_ttfa_jobs.sh (TTFA probe), so both measure the same install. Defines GEN_IMAGE and gen_setup.+#+# No Docker Space needed. The job runs on the public PyTorch image below (Python 3.11, CUDA 12.8,+# cuDNN 9; torch itself is unused) and pip-installs the paradee package pinned to the v1.3 release+# commit, its spaCy English model, and the eval-loop deps at job start. On a GPU, the CPU onnxruntime+# that paradee pulls in is then swapped for onnxruntime-gpu 1.23 (CUDA 12.x builds; 1.24+ needs CUDA 13),+# whose preload_dlls() (called in run_eval.py) loads cuDNN from the nvidia-cudnn-cu12 wheel. That wheel+# must be UPGRADED (-U): the image's own cuDNN 9.7 fails in onnxruntime-gpu 1.23's cuDNN frontend on some convs.+GEN_IMAGE="${GEN_IMAGE:-pytorch/pytorch:2.7.1-cuda12.8-cudnn9-runtime}"+PARADEE_COMMIT="af5ca1a17daad860d1aea60510d93d8dbd1d7b6f" # tag v1.3 of github.com/sahilmahendrakar/paradee+GEN_PIP_DEPS="${GEN_PIP_DEPS:-'paradee @ https://github.com/sahilmahendrakar/paradee/archive/${PARADEE_COMMIT}.zip' \+datasets soundfile tqdm onnx \+'en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl'}"+GEN_GPU_DEPS="${GEN_GPU_DEPS:-onnxruntime-gpu==1.23.0 nvidia-cudnn-cu12}"++# gen_setup <device> → `... &&` install snippet for the job body. A cpu device keeps the package's own+# CPU onnxruntime (no GPU swap), so a CPU run benchmarks the model as shipped.+gen_setup() {+ local setup="pip install --no-cache-dir -q ${GEN_PIP_DEPS} &&"+ [[ "$1" == cpu ]] || setup="${setup} pip uninstall -y -q onnxruntime && pip install --no-cache-dir -q -U ${GEN_GPU_DEPS} &&"+ echo "${setup}"+}diff --git a/paradee-v1.3/run_eval.py b/paradee-v1.3/run_eval.pynew file mode 100644index 0000000..7406744--- /dev/null+++ b/paradee-v1.3/run_eval.py@@ -0,0 +1,237 @@+"""+TTS synthesis for the Open TTS Leaderboard (Paradee 1.3 backend, stage 1).++Paradee-8M (https://github.com/sahilmahendrakar/paradee) is an 8M-parameter distillation of Kokoro-82M.+v1.0-v1.2 speak English only (v1.0/v1.1: af_heart; v1.2: four English voices). v1.3+(sahilmahendrakar/Paradee-8M-v1.3) has eight of Kokoro's voices in one model: af_heart, am_puck+(American English), bf_isabella, bm_fable (British English), hf_alpha, hm_omega (Hindi), ff_siwis+(French) and em_alex (Spanish). As in Kokoro, a voice's first letter is its language.+The `paradee` package runs Kokoro's own G2P (misaki for English, eSpeak through misaki for Hindi,+French and Spanish) and then one ONNX graph (phoneme ids + voice -> 24 kHz audio) in ONNX Runtime.+This script loads it once, synthesizes each target text with a fixed voice, times generation for+RTFx, saves wavs, and writes a manifest with `text`, `duration`, and generation `time` (empty+`pred_text`). The package version is derived from --model_id, so every release stays reproducible+with the same (current) package.++`Paradee.__call__` splits the text into sentences and runs the graph once per sentence, then+concatenates. The graph takes a single `[1, T]` sequence, so there is no batched API: rows are+processed serially, as in the Kokoro backend.+"""++import argparse+import os+import time++import numpy as np+import onnxruntime as ort+import soundfile as sf+from tqdm import tqdm++from paradee import SAMPLE_RATE, Paradee+# DURATIONS / _with_output: the package adds the per-token durations as a second graph output when it+# builds its session; the CUDA session below must be built from the same graph (see _use_cuda_session).+from paradee.tts import DURATIONS, LANGUAGES, REPOS, VOICES, _with_output++from run_eval_utils import (+ add_common_args, load_done_entries, load_tts_dataset, manifest_entry, open_manifest, output_paths,+ pending_batches, print_next_steps, set_seed, warm_up, wav_rel_path, write_entry,+)++ONNX_FILES = {True: "onnx/paradee_int8.onnx", False: "onnx/paradee.onnx"}+++VERSIONS = {repo: version for version, repo in REPOS.items()} # "sahilmahendrakar/Paradee-8M-v1.3" -> "1.3"+++def _version(model_id):+ if model_id not in VERSIONS:+ raise ValueError(f"unknown Paradee model {model_id!r}; the package knows {', '.join(VERSIONS)}")+ return VERSIONS[model_id]+++def _onnx_path(model_id, quantized):+ from huggingface_hub import hf_hub_download++ return hf_hub_download(model_id, ONNX_FILES[quantized], revision=f"v{_version(model_id)}")+++def _check_voice(version, voice, split):+ """Refuse a voice the model doesn't have, or one whose language isn't the split's (e.g. ff_siwis on `en`)."""+ if voice not in VOICES[version]:+ raise ValueError(f"Paradee {version} has no voice {voice!r}; its voices are {', '.join(VOICES[version])}")+ if LANGUAGES[voice[0]].split("-")[0] != split.split("-")[0]:+ raise ValueError(f"voice {voice!r} speaks {LANGUAGES[voice[0]]}, not the split's language {split!r}")+++def _use_cuda_session(tts, onnx_path, device, threads, conv_algo_search):+ """Replace the package's CPU session with a CUDA EP one on the same graph (same SessionOptions).++ The package builds its session from the ONNX bytes with the token durations added as a second+ output (`_with_output`), and `Paradee._run` unpacks both, so the CUDA session is built the same way.+ """+ device_id = int(device.split(":")[1]) if ":" in device else 0+ # Load pip-installed CUDA/cuDNN (nvidia-* wheels) when they are not on LD_LIBRARY_PATH.+ if hasattr(ort, "preload_dlls"):+ ort.preload_dlls()+ so = ort.SessionOptions()+ so.intra_op_num_threads = threads+ so.inter_op_num_threads = 1+ with open(onnx_path, "rb") as f:+ model = _with_output(f.read(), DURATIONS)+ tts.session = ort.InferenceSession(+ model, so, providers=[("CUDAExecutionProvider", {"device_id": device_id, "cudnn_conv_algo_search": conv_algo_search}),+ "CPUExecutionProvider"]+ )+ # The CUDA EP silently falls back to CPU (e.g. missing cuDNN); refuse rather than mislabel.+ if "CUDAExecutionProvider" not in tts.session.get_providers():+ raise RuntimeError(f"--device={device} but the CUDA EP did not load: {tts.session.get_providers()}")+ # ONNX Runtime also falls back to a CPU-only session when a run fails on the CUDA EP (e.g. a cuDNN+ # error on a new input shape) and keeps going on CPU. Fail instead, so no row is timed on CPU.+ tts.session.disable_fallback()+++def _print_model_size(onnx_path):+ """Sum the ONNX initializer element counts (int8 weights count once; scales/zero points are tiny)."""+ try:+ import onnx++ model = onnx.load(onnx_path, load_external_data=False)+ n_params = sum(int(np.prod(init.dims)) for init in model.graph.initializer)+ print(f"TTS model size: {n_params / 1e9:.3f}B parameters (sum of ONNX initializers)")+ except Exception as e:+ print(f"Could not compute ONNX parameter count ({e}); model card reports 8.07M parameters.")+++def main(args):+ set_seed(args.seed)++ version = _version(args.model_id)+ voice = args.voice or VOICES[version][0]+ _check_voice(version, voice, args.split)+ onnx_path = _onnx_path(args.model_id, args.quantized)+ tts = Paradee(version=version, quantized=args.quantized, model_path=onnx_path, threads=args.threads)+ if args.device.startswith("cuda"):+ _use_cuda_session(tts, onnx_path, args.device, args.threads, args.cudnn_conv_algo_search)+ print(+ f"Loaded Paradee ({args.model_id}@v{version}, {ONNX_FILES[args.quantized]}, voice={voice}, "+ f"providers={tts.session.get_providers()}, threads={args.threads})"+ )+ _print_model_size(onnx_path)++ def synth_one(text):+ """Synthesize one text with the package's own sentence loop. Return (audio_1d_numpy, elapsed_s)."""+ start = time.perf_counter()+ audio = tts(text, speed=args.speed, voice=voice)+ elapsed = time.perf_counter() - start+ if audio.size == 0:+ audio = np.zeros(1, dtype=np.float32)+ return audio, elapsed++ def synth_one_streaming(text, early_stop=False):+ """TTFA probe only: the same sentence loop as Paradee.__call__, timestamping the first chunk.++ Returns (audio_1d_numpy, first_chunk_ts, n_chunks). A one-sentence prompt has nothing to+ stream (n_chunks == 1): first audio is last audio.+ """+ first, parts = None, []+ for ps in tts._chunks(text, voice):+ parts.append(tts.generate_from_phonemes(ps, args.speed, voice))+ if first is None:+ first = time.perf_counter()+ if early_stop:+ break+ if not parts:+ return np.zeros(1, dtype=np.float32), None, 0+ return np.concatenate(parts), first, len(parts)++ # Layout: results/<model_safe>/{MODEL_<safe>_DATASET_<dsid>.jsonl, <dsid>/output_<id>.wav}.+ # Manifest paths are relative to model_dir so later stages resolve them wherever it is copied.+ paths = output_paths(args)+ model_dir, dataset_dir_name, manifest_path = paths.model_dir, paths.dataset_dir_name, paths.manifest_path++ dataset = load_tts_dataset(args)++ # ── TTFA probe: latency only, writing nothing but a JSON sidecar ─────────+ # Timestamps the first sentence's audio (see synth_one_streaming).+ # 0 = off; N > 0 = N evenly spaced samples; N < 0 = the whole split (see scripts/ttfa_probe.py).+ if args.ttfa_probe != 0:+ # Imported here: ttfa_probe.py is injected only by submit_ttfa_jobs.sh.+ from ttfa_probe import run_probe, sample_indices+ chunk_counts = []++ def _ttfa_gen(job, early_stop):+ audio, first, n_chunks = synth_one_streaming(job["text"], early_stop)+ chunk_counts.append(n_chunks)+ return audio, SAMPLE_RATE, first++ run_probe(+ _ttfa_gen,+ [{"text": dataset[i][args.text_column]} for i in sample_indices(args.ttfa_probe, len(dataset))],+ model_id=args.model_id, dataset_path=args.dataset_path,+ dataset_config=args.dataset, split=args.split,+ out_dir=model_dir, n=args.ttfa_probe,+ # segments_per_utterance == 1 means one sentence in, nothing to stream.+ extra={"device": args.device, "providers": tts.session.get_providers(), "threads": args.threads,+ "quantized": args.quantized, "voice": voice, "segments_per_utterance": chunk_counts},+ )+ return++ done_entries = load_done_entries(manifest_path, args.resume)+ manifest_file = open_manifest(manifest_path, done_entries)++ # Serial synthesis: one sample per "batch"; warm-up runs untimed on the first pending samples.+ starts = pending_batches(dataset, 1, done_entries, dataset_dir_name)+ warm_up(lambda batch: [synth_one(t) for t in batch[args.text_column]], dataset, starts, 1, args.warmup_steps)+ set_seed(args.seed)++ # ── Main loop: synthesize one sample at a time → write JSONL ─────────────+ for i in tqdm(starts, desc="Generating"):+ sample_id = dataset[i]["id"]+ text = dataset[i][args.text_column]++ # Store the path relative to model_dir (the manifest's dir); write to the full path.+ rel_path = wav_rel_path(dataset_dir_name, sample_id)+ path = os.path.join(model_dir, rel_path)++ audio, elapsed = synth_one(text)+ sf.write(path, audio, SAMPLE_RATE)++ write_entry(manifest_file, manifest_entry(rel_path, len(audio) / SAMPLE_RATE, elapsed, text))+ manifest_file.flush()++ manifest_file.close()+ print("Results saved at path:", os.path.abspath(manifest_path))+ print_next_steps(voice_clone=False)+++if __name__ == "__main__":+ parser = argparse.ArgumentParser()++ parser.add_argument("--model_id", type=str, default=REPOS["1.3"],+ help="HF model id, one of the package's releases (sahilmahendrakar/Paradee-8M-v1.0 ... "+ "-v1.3). Picks the package version and the pinned revision (tag v<version>).")+ parser.add_argument("--voice", type=str, default=None,+ help="Built-in voice; its first letter is its language (a/b English, h Hindi, f French, "+ "e Spanish) and must match --split. Default: the model's first voice (af_heart).")+ parser.add_argument("--quantized", action=argparse.BooleanOptionalAction, default=True,+ help="int8 graph (the package default, 'use this one' per the model card); "+ "--no-quantized for the fp32 graph.")+ parser.add_argument("--threads", type=int, default=1,+ help="ONNX Runtime intra-op threads. Default 1 = the package default, so the "+ "model is benchmarked as shipped.")+ parser.add_argument("--speed", type=float, default=1.0, help="Speech speed multiplier.")+ parser.add_argument("--cudnn_conv_algo_search", type=str, default="HEURISTIC",+ choices=["EXHAUSTIVE", "HEURISTIC", "DEFAULT"],+ help="CUDA EP conv algorithm search. Every new input length is a new conv shape, and "+ "EXHAUSTIVE (the ONNX Runtime default) benchmarks every algorithm for each one, inside "+ "the timed loop. On 60 MiniMax en sentences on the h200: EXHAUSTIVE RTFx 10.1, "+ "HEURISTIC 51.5 (1-thread CPU: 33.3).")+ add_common_args(parser)++ args = parser.parse_args()++ print("*" * 100)+ print(f"Generating TTS with {args.model_id} on {args.dataset_path} / {args.dataset} / {args.split}")+ print("*" * 100)++ main(args)diff --git a/paradee-v1.3/submit_all_jobs.sh b/paradee-v1.3/submit_all_jobs.shnew file mode 100755index 0000000..054541d--- /dev/null+++ b/paradee-v1.3/submit_all_jobs.sh@@ -0,0 +1,4 @@+#!/bin/bash+bash paradee-v1.3/submit_jobs.sh # full eval+bash submit_ttfa_jobs.sh paradee-v1.3 # TTFA on GPU (a100-large)+TTFA_DEVICE=cpu bash submit_ttfa_jobs.sh paradee-v1.3 # TTFA on CPU (cpu-upgrade)diff --git a/paradee-v1.3/submit_jobs.sh b/paradee-v1.3/submit_jobs.shnew file mode 100755index 0000000..78fe090--- /dev/null+++ b/paradee-v1.3/submit_jobs.sh@@ -0,0 +1,90 @@+#!/bin/bash+# HF Jobs TTS eval — Paradee 1.3 backend (fixed voice per language → 2 stages: generate → transcribe → score).+# Runs locally; submits HF Jobs. Usage: HF_TOKEN=hf_... bash submit_jobs.sh ["sahilmahendrakar/Paradee-8M-v1.3" ...]+# Shared orchestration (stages 2/3, injection, logging, scoring) lives in scripts/tts_jobs_common.sh.+source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/scripts/tts_jobs_common.sh"++# ── Backend config ───────────────────────────────────────────────────────────+# Separate from paradee/ (v1.0, image bezzam/evals-paradee, which pins the 1.0 package): the 1.3 package+# changed its API (eight voices, a voice argument, no REPO/REVISION constants), so 1.3 gets its own folder.+# Stage-1 environment: no Docker Space needed. GEN_IMAGE (a public PyTorch image) and gen_setup (the+# pip install at job start) live in job_image.sh, shared with submit_ttfa_jobs.sh so the TTFA probe+# runs the same install.+source "${BACKEND_DIR}/job_image.sh"+GEN_TIMEOUT="${GEN_TIMEOUT:-2h}" # an 8M model on the largest split takes minutes; a hang must not burn H200 hours+# gen FLAVOR (h200) is set centrally in tts_jobs_common.sh for RTFx comparability — don't override.+DEFAULT_STAGES="generate transcribe utmos" # no SIM (fixed voice)+RUN_EVAL_INJECT="$(inject_run_eval)"++# ── Device / threads ─────────────────────────────────────────────────────────+# The package ships a 1-thread CPU session; run_eval.py swaps in the CUDA EP, which is ~1.5x faster on the+# h200 with HEURISTIC conv search (see paradee-v1.3/run_eval.py). PARADEE_DEVICE=cpu benchmarks the package's own CPU session instead.+PARADEE_DEVICE="${PARADEE_DEVICE:-cuda:0}"+PARADEE_THREADS="${PARADEE_THREADS:-1}"+# cuDNN conv algorithm search: HEURISTIC, not ONNX Runtime's default EXHAUSTIVE, which re-benchmarks every+# conv for each new input length inside the timed loop (see --cudnn_conv_algo_search in run_eval.py).+PARADEE_CONV_ALGO_SEARCH="${PARADEE_CONV_ALGO_SEARCH:-HEURISTIC}"++# ── Language → voice ─────────────────────────────────────────────────────────+# v1.3 speaks English, Hindi, French and Spanish (eight of Kokoro's voices in one model; a voice's+# first letter is its language). One voice per language, one leaderboard row per model, as in the+# Kokoro backend: the same voices as kokoro/submit_jobs.sh where Paradee has them, so the two rows+# compare directly. Kokoro uses ef_dora for Spanish; Paradee's Spanish voice is em_alex.+# Paradee's other voices: am_puck (en), bf_isabella and bm_fable (en, British), hm_omega (hi).+# A case, not an associative array, so it runs on macOS bash 3.2.+paradee_voice() {+ case "$1" in+ en) echo af_heart ;;+ hi) echo hf_alpha ;;+ fr) echo ff_siwis ;;+ es) echo em_alex ;;+ esac+}+supports_language() { [[ -n "$(paradee_voice "$1")" ]]; }+# Setting PARADEE_VOICE forces one voice for every combo; only for a single-language run (e.g.+# ONLY_LANGS=en PARADEE_VOICE=bf_isabella). run_eval.py refuses a voice of another language.+# The results land in the same model folder, so use a separate RESULTS_BUCKET for such runs.+PARADEE_VOICE="${PARADEE_VOICE:-}"++# ── Stage 1: TTS generation (no batched API — one sample at a time) ──+generate_stage() {+ local VOICE="${PARADEE_VOICE:-$(paradee_voice "${ASR_LANG}")}"+ hf jobs run \+ --flavor "${FLAVOR}" --timeout "${GEN_TIMEOUT}" --secrets HF_TOKEN ${NAMESPACE_ARG} \+ --volume "hf://buckets/${RESULTS_BUCKET}:/results" "${GEN_IMAGE}" \+ bash -c "+ ${RUN_EVAL_INJECT}+ $(gen_setup "${PARADEE_DEVICE}")+ cd /app/paradee-v1.3 && python run_eval.py \+ --model_id=${MODEL_ID} \+ --voice=${VOICE} \+ --dataset_path=${DATASET_PATH} \+ --dataset=${DATASET} \+ --split=${SPLIT} \+ --device=${PARADEE_DEVICE} \+ --threads=${PARADEE_THREADS} \+ --cudnn_conv_algo_search=${PARADEE_CONV_ALGO_SEARCH} \+ --max_eval_samples=${MAX_EVAL_SAMPLES} &&+ mkdir -p /results &&+ cp -r results/${MODEL_SAFE} /results/+ "+}++# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──+DATASET_CONFIGS=(+ "tts en en"+ "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"+ "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"+ "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"+ # MiniMax multilingual (100 sentences/language): the languages the model supports. No `uk`: Qwen3-ASR has no Ukrainian.+ "tts en en ${MINIMAX_EVAL_PATH}"+ "tts fr fr ${MINIMAX_EVAL_PATH}"+ "tts es es ${MINIMAX_EVAL_PATH}"+ "tts hi hi ${MINIMAX_EVAL_PATH}"+)++# ── Models: "model_id" (CLI args override) ───────────────────────────────────+MODEL_CONFIGS=("sahilmahendrakar/Paradee-8M-v1.3")+[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")++run_pipelinediff --git a/paradee/submit_jobs.sh b/paradee/submit_jobs.shindex f964e1d..18440e4 100755--- a/paradee/submit_jobs.sh+++ b/paradee/submit_jobs.sh@@ -42,7 +42,7 @@ generate_stage() {# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──DATASET_CONFIGS=("tts en en"- "zero_shot en en ${CV3_EVAL_PATH:-bezzam/cv3_eval}"+ "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"# MiniMax multilingual (100 sentences/language): the languages the model supports. No `uk`: Qwen3-ASR has no Ukrainian."tts en en ${MINIMAX_EVAL_PATH}")diff --git a/submit_ttfa_jobs.sh b/submit_ttfa_jobs.shindex 5d9eb4b..a6203e5 100755--- a/submit_ttfa_jobs.sh+++ b/submit_ttfa_jobs.sh@@ -119,6 +119,10 @@ TTFA_INJECT="$(inject_cmd_gz "${REPO_ROOT}/scripts/ttfa_probe.py" /app/scripts/t# client); selecting by model id runs every engine for it.# Extra flags mirror the default MODEL_CONFIGS entry of the backend's own submit_jobs.sh. Batch# sizes are absent: the probe forces batch 1.+#+# `space` (field 3) EMPTY = a backend with no Docker Space: <backend_dir>/job_image.sh (also sourced+# by its submit_jobs.sh) gives the public registry image (GEN_IMAGE) and the pip install run at job+# start (gen_setup <device>), so the probe measures the same install as the eval.TTFA_TARGETS=("breeze-tts|breeze-tts|bezzam/evals-breeze|BreezeBlue/Breeze-TTS-2|--language=${TTFA_LANG} --fast_all""chatterbox|chatterbox|bezzam/evals-chatterbox|ResembleAI/chatterbox|--language=${TTFA_LANG}"@@ -154,6 +158,8 @@ TTFA_TARGETS=("omnivoice|omnivoice|bezzam/evals-omnivoice|k2-fsa/OmniVoice|--language=${TTFA_LANG}"# ONNX Runtime: the CUDA EP on the GPU flavor; TTFA_DEVICE=cpu runs the package's own 1-thread CPU session."paradee|paradee|bezzam/evals-paradee|sahilmahendrakar/Paradee-8M-v1.0|"+ # No Space: public PyTorch image + pip install from paradee-v1.3/job_image.sh. English voice as in its eval.+ "paradee-v1.3|paradee-v1.3||sahilmahendrakar/Paradee-8M-v1.3|--voice=af_heart""pocket-tts|pocket-tts|bezzam/evals-pocket|kyutai/pocket-tts|--language=${TTFA_LANG}""qwen3tts|qwen3tts|bezzam/evals-qwentts|Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice|--speaker=Aiden --mode=custom_voice --language=${TTFA_LANG}"# The same checkpoint under andimarafioti/faster-qwen3-tts (CUDA graphs, incremental audio).@@ -231,7 +237,7 @@ if ${PHONON_SELECTED}; thenfi# Backends whose run_eval.py has no --voice_clone flag at all; passing one would be an error.-NO_CLONE_FLAG="inflect-nano inflect-v2 kokoro lfm2-audio lfm3-audio magpie-tts paradee phonon photon pivo qwen3tts qwen3tts-fast supertonic vibevoice_realtime voxtral-tts woof"+NO_CLONE_FLAG="inflect-nano inflect-v2 kokoro lfm2-audio lfm3-audio magpie-tts paradee paradee-v1.3 phonon photon pivo qwen3tts qwen3tts-fast supertonic vibevoice_realtime voxtral-tts woof"# run_eval.py writes to its own output roots (outside Git, mode 0700) and names the sidecar itself,# so Phonon skips the generic run/rename/copy below; `preamble` is submit_one's CPU thread cap.@@ -281,7 +287,18 @@ submit_one() {# Sidecar suffix: engine first (when the target names one), then always the flavor.local sidecar_suffix="${engine:+__${engine}}__${FLAVOR}"local image="hf.co/spaces/${space}"- local inject preamble postamble clone_flag=""+ local inject preamble postamble clone_flag="" setup=""+ # No Space: the backend's job_image.sh gives the registry image and the job-start pip install+ # (submit_one runs in its own subshell, so the sourced variables do not leak to other targets).+ if [[ -z "${space}" ]]; then+ if [[ ! -f "${REPO_ROOT}/${backend}/job_image.sh" ]]; then+ echo "ERROR: target for ${model_id} has no Space and ${backend}/job_image.sh does not exist." >&2+ return 1+ fi+ source "${REPO_ROOT}/${backend}/job_image.sh"+ image="${GEN_IMAGE}"+ setup="$(gen_setup "${TTFA_DEVICE}")"+ fiinject="$(inject_cmd_gz "${REPO_ROOT}/${backend}/run_eval.py" "/app/${backend}/run_eval.py")"@@ -384,6 +401,7 @@ submit_one() {${inject}${TTFA_INJECT}${preamble}+ ${setup}cd /app/${backend} && python run_eval.py \--model_id=${model_id} \--dataset_path=${TTFA_DATASET_PATH} \