French / German / Spanish / Italian offline ASR for the Cabin Offline app: NVIDIA nemotron-labs-unified-asr-0.6b
fine-tuned with the EU r1 recipe (R13x-labelled YouTube speech + FLEURS replay, same training manifest as
doanhlt/cabin-asr-eu-parakeet-tdt-offline-r1),
exported to sherpa-onnx (offline nemo_transducer, greedy) with the int8 recipe of EU r1.
thinkprompt/cabin-offline-asr (private), branch feat/mobile-local-kit, mobile-local/train/nemu2/
(train_u.py, eval_fair.py, report_fair.py, gate_u.py, this upload: hub_eu.py), export train/nemu/export_onnx.py.LICENSE.md + NOTICE.md must travel with the files).The base model concatenates a one-hot language prompt to every encoder frame before the RNNT joint. sherpa-onnx has no
prompt input, so the prompt is folded into the joiner: joiner-<lang>.int8.onnx = prompt kernel for that language + joint
(same I/O as a NeMo RNNT joint). The encoder (655 MB) and decoder are shared; a joiner is 7.9 MB.
| path | what |
|---|---|
package/encoder.int8.onnx, decoder.int8.onnx, tokens.txt |
shared by every language |
package/joiner-{fr,de,es,it}.int8.onnx |
the gated languages |
package/joiner-en.int8.onnx |
English (passes EN_COVER2 vs Parakeet v2, but see "English") |
extra_joiners/joiner-{auto,pt,nl,pl,ru}.int8.onnx |
not gated: U-distill is significantly worse than EU r1 on pt+nl+pl+ru |
export/ |
package.json (precision of every file), int8 exclusion list, export scripts |
eval/ |
per-utterance decodes (public test sets only; private interview audio is not published), FAIR_REPORT, gate, bench, release check |
nemo/best.pt |
fp32 state_dict of the fine-tune (load into the base .nemo with strict=False) |
attribution/yodas2_video_ids.txt |
YouTube ids of every YODAS2 training clip (CC BY 3.0) |
An app loads encoder + decoder + tokens + joiner-<lang> of the routed language (one recognizer per language;
a two-way session with one EU language needs one recognizer). The wrong joiner = a wrong language prompt.
Unbiased pool = FLEURS-100 + CV17 test + VoxPopuli test + MLS test + interviews (R13x reference). "YT agree" is biased
toward R13x (both r1 and this model learn R13x labels). Full report: eval/FAIR_REPORT.md.
| system | unbiased pooled | FLEURS | CV17 | VoxPopuli | MLS | Interviews | YT agree (biased) | YT caption |
|---|---|---|---|---|---|---|---|---|
| App shipped (v2 en / v3) | 9.81 | 5.38 | 7.89 | 10.59 | 10.77 | 34.12 | 11.21 | 34.08 |
| P3 base int8-xpd | 8.31 | 4.45 | 4.56 | 10.08 | 8.93 | 49.32 | 12.40 | 35.46 |
| P3 base fp32 | 8.12 | 3.79 | 4.12 | 10.13 | 8.77 | 47.97 | 11.65 | 34.58 |
| r1 int8-xpd | 7.72 | 3.57 | 4.69 | 10.46 | 7.71 | 26.01 | 5.81 | 30.44 |
| r1 fp32 | 7.64 | 3.57 | 4.13 | 10.42 | 7.71 | 25.68 | 5.63 | 30.37 |
| U base int8-xpd | 7.92 | 3.96 | 4.57 | 10.61 | 7.93 | 34.12 | 11.88 | 34.30 |
| U base fp32 | 7.88 | 3.99 | 4.51 | 10.65 | 7.82 | 35.47 | 10.89 | 33.44 |
| U-distill int8-xpd | 7.49 | 3.70 | 4.49 | 10.35 | 7.27 | 28.72 | 5.98 | 30.52 |
| U-distill fp32 | 7.32 | 3.60 | 4.36 | 10.19 | 7.07 | 27.03 | 5.90 | 30.41 |
| comparison | A | B | languages | norm | unbiased pooled | YT caption | YT agree (biased) |
|---|---|---|---|---|---|---|---|
| DISTILLED vs DISTILLED (pilot B, gate) | r1 int8-xpd | U-distill int8-xpd | fr+de+es+it | v2 | -0.23 [-0.41, -0.06] * (n 4417) | +0.08 [-0.21, +0.36] | +0.16 [-0.12, +0.47] |
| DISTILLED vs DISTILLED (pilot B, gate) | r1 int8-xpd | U-distill int8-xpd | fr+de+es+it | v1 | -0.20 [-0.37, -0.03] * (n 4417) | +0.04 [-0.24, +0.33] | +0.11 [-0.20, +0.42] |
| DISTILLED vs DISTILLED (pilot B, gate) | r1 int8-xpd | U-distill int8-xpd | fr+de+it (no es) | v2 | -0.17 [-0.37, +0.03] (n 3307) | +0.08 [-0.23, +0.36] | +0.21 [-0.08, +0.49] |
| DISTILLED vs DISTILLED (pilot B, gate) | r1 int8-xpd | U-distill int8-xpd | en | v2 | -0.33 [-0.82, +0.15] (n 1203) | -0.70 [-1.37, -0.10] * | -0.26 [-0.84, +0.27] |
| DISTILLED vs DISTILLED (pilot B, gate) | r1 int8-xpd | U-distill int8-xpd | pt+nl+pl+ru | v2 | +0.48 [+0.26, +0.69] * (n 2900) | – | – |
| DISTILLED vs DISTILLED (NeMo fp32) | r1 fp32 | U-distill fp32 | fr+de+es+it | v2 | -0.32 [-0.47, -0.17] * (n 4417) | +0.04 [-0.29, +0.34] | +0.27 [-0.01, +0.57] |
| DISTILLED vs DISTILLED (NeMo fp32) | r1 fp32 | U-distill fp32 | fr+de+es+it | v1 | -0.29 [-0.44, -0.14] * (n 4417) | +0.01 [-0.31, +0.33] | +0.29 [+0.00, +0.59] |
| DISTILLED vs DISTILLED (NeMo fp32) | r1 fp32 | U-distill fp32 | fr+de+it (no es) | v2 | -0.30 [-0.49, -0.11] * (n 3307) | +0.10 [-0.26, +0.46] | +0.26 [-0.01, +0.53] |
| DISTILLED vs DISTILLED (NeMo fp32) | r1 fp32 | U-distill fp32 | en | v2 | -0.30 [-0.71, +0.09] (n 1103) | – | – |
| DISTILLED vs DISTILLED (NeMo fp32) | r1 fp32 | U-distill fp32 | pt+nl+pl+ru | v2 | +0.56 [+0.36, +0.76] * (n 2900) | – | – |
| int8 loss U-distill | U-distill fp32 | U-distill int8-xpd | fr+de+es+it | v2 | +0.17 [+0.07, +0.28] * (n 4417) | +0.11 [-0.05, +0.29] | +0.08 [-0.08, +0.22] |
| int8 loss U-distill | U-distill fp32 | U-distill int8-xpd | fr+de+es+it | v1 | +0.18 [+0.07, +0.29] * (n 4417) | +0.10 [-0.07, +0.28] | +0.07 [-0.08, +0.22] |
| int8 loss U-distill | U-distill fp32 | U-distill int8-xpd | fr+de+it (no es) | v2 | +0.18 [+0.06, +0.32] * (n 3307) | +0.09 [-0.12, +0.29] | +0.09 [-0.08, +0.25] |
| int8 loss U-distill | U-distill fp32 | U-distill int8-xpd | en | v2 | +0.31 [+0.07, +0.57] * (n 1203) | +0.01 [-0.21, +0.23] | +0.05 [-0.18, +0.28] |
| int8 loss U-distill | U-distill fp32 | U-distill int8-xpd | pt+nl+pl+ru | v2 | +0.30 [+0.17, +0.43] * (n 2900) | – | – |
| B − A | en | fr | de | es | it | pt | nl | pl | ru |
|---|---|---|---|---|---|---|---|---|---|
| U base int8-xpd − P3 base int8-xpd | +0.03 [-0.40, +0.51] | +0.11 [-0.26, +0.51] | -0.28 [-0.79, +0.24] | -1.17 [-1.74, -0.72] * | -0.23 [-0.72, +0.35] | +0.37 [+0.02, +0.77] * | -0.12 [-0.53, +0.30] | +0.42 [+0.03, +0.81] * | +0.58 [-0.37, +1.67] |
| U base fp32 − P3 base fp32 | -0.35 [-0.73, +0.06] | +0.06 [-0.28, +0.39] | -0.27 [-0.72, +0.18] | -0.76 [-1.26, -0.35] * | +0.00 [-0.51, +0.54] | +0.54 [+0.21, +0.86] * | +0.12 [-0.28, +0.53] | +0.58 [+0.20, +0.96] * | +0.93 [+0.00, +1.90] |
| U base int8-xpd − App shipped (v2 en / v3) | -0.47 [-1.03, +0.09] | -1.66 [-2.48, -0.94] * | -2.75 [-3.41, -2.08] * | -1.58 [-1.93, -1.25] * | -1.72 [-2.29, -1.13] * | -1.93 [-2.40, -1.49] * | -1.62 [-2.10, -1.15] * | -1.83 [-2.29, -1.35] * | -3.36 [-4.59, -2.14] * |
| U base int8-xpd − r1 int8-xpd | -0.36 [-0.88, +0.20] | +0.50 [+0.07, +0.98] * | +0.88 [+0.34, +1.57] * | -0.27 [-0.60, +0.04] | -0.23 [-0.74, +0.34] | +0.43 [+0.10, +0.78] * | +0.19 [-0.25, +0.60] | +0.69 [+0.37, +1.00] * | +0.69 [-0.21, +1.67] |
| U-distill int8-xpd − r1 int8-xpd | -0.33 [-0.82, +0.15] | -0.23 [-0.46, +0.01] | +0.19 [-0.26, +0.74] | -0.42 [-0.75, -0.13] * | -0.40 [-0.75, -0.06] * | +0.41 [+0.02, +0.81] * | +0.20 [-0.18, +0.60] | +0.75 [+0.43, +1.07] * | +1.22 [+0.35, +2.08] * |
| U-distill fp32 − r1 fp32 | -0.30 [-0.71, +0.09] | -0.31 [-0.55, -0.05] * | -0.01 [-0.40, +0.39] | -0.37 [-0.58, -0.17] * | -0.52 [-0.87, -0.16] * | +0.58 [+0.23, +0.95] * | +0.31 [-0.05, +0.69] | +0.74 [+0.43, +1.05] * | +1.19 [+0.30, +2.12] * |
Pre-registered gate (DECISIONS 2026-10-30 15:05): PASS - G1 unbiased fr+de+es+it vs r1 -0.23 [-0.41, -0.06] *; G2 YT caption not worse +0.08 [-0.21, +0.36]; G3 int8 - fp32 +0.17 (<= 0.30); G4 size and RTF within 10 % of r1.
CPU speed (sherpa-onnx 1.13.8, AMD EPYC 7313, 30 FLEURS fr clips, same session):
| package | threads | RTF | load s | size MB (encoder + one joiner) | peak RSS MB |
|---|---|---|---|---|---|
models/qfix/v3d-xpd |
4 | 0.0499 | 1.7 | 640.5 | 1043 |
models/nemu2_ud_int8xpd |
4 | 0.0532 | 1.6 | 641.1 | 1070 |
App runtime (sherpa-onnx 1.12.35, the version in the app, same package and joiners, same host as a 1.13.8 re-decode):
| FLEURS-100 | WER sherpa-onnx 1.12.35 | WER 1.13.8 | Δ |
|---|---|---|---|
| fr+de+es+it | 3.70 | 3.70 | +0.00 |
| en | 14.60 | 5.83 | +8.77 |
fr / de / es / it decode the same WER with the app's runtime. English: sherpa-onnx 1.12.35 returns empty text for 6
of 100 FLEURS en clips with joiner-en (1.13.8: none), so the en joiner must not be used with the app's current runtime.
U-distill passes EN_COVER2 against the shipped Parakeet v2 (eval/EU_DECISION.md), so one EU+en package is possible
later, but only after (1) an app runtime that decodes en correctly (>= 1.13.x, see above) and (2) an app en A/B.
Until then the app keeps Parakeet v2 for English.
Full fine-tune of nvidia/nemotron-labs-unified-asr-0.6b (NeMo, EncDecRNNTBPEModelWithPrompt, offline attention,
AdamW LR 2e-5, 2 epochs = 2516 steps of 200 s batches, clips <= 20 s, forced language prompt per row), picked on dev only
(FLEURS dev + YODAS2 dev, mean WER 5.448 at step 1887; base 7.66).
| part | labels | licence |
|---|---|---|
YODAS2 fr / de / es / it clips (espnet/yodas2), video-split train / dev / held-out |
R13x (Apache-2.0 teacher), kept where it agrees with the YouTube caption | CC BY 3.0 |
| FLEURS train fr / de / es / it replay | human | CC BY 4.0 |
62.9 h, 21,327 clips. No Gemini, Soniox or OpenAI output was used; no user audio.
# pip install sherpa-onnx soundfile huggingface_hub
import sherpa_onnx, soundfile as sf
from huggingface_hub import snapshot_download
lang = "fr"
d = snapshot_download("doanhlt/cabin-asr-eu-nemotron-unified-offline-r1", allow_patterns=["package/*"]) + "/package"
rec = sherpa_onnx.OfflineRecognizer.from_transducer(
encoder=f"{d}/encoder.int8.onnx", decoder=f"{d}/decoder.int8.onnx", joiner=f"{d}/joiner-{lang}.int8.onnx",
tokens=f"{d}/tokens.txt", num_threads=4, decoding_method="greedy_search", model_type="nemo_transducer")
audio, sr = sf.read("clip.wav", dtype="float32") # mono
s = rec.create_stream(); s.accept_waveform(sr, audio); rec.decode_stream(s)
print(s.result.text)
Have the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo doanhlt/cabin-asr-eu-nemotron-unified-offline-r1 ./model-foldernemo/best.pt 2.5 GBpackage/encoder.int8.onnx 655 MBpackage/decoder.int8.onnx 9 MBextra_joiners/joiner-auto.int8.onnx 8 MBextra_joiners/joiner-nl.int8.onnx 8 MBextra_joiners/joiner-pl.int8.onnx 8 MBextra_joiners/joiner-pt.int8.onnx 8 MBextra_joiners/joiner-ru.int8.onnx 8 MBpackage/joiner-it.int8.onnx 8 MBpackage/joiner-de.int8.onnx 8 MBpackage/joiner-en.int8.onnx 8 MBpackage/joiner-es.int8.onnx 8 MBpackage/joiner-fr.int8.onnx 8 MBnvidia/nemotron-labs-unified-asr-0.6b