killameep commited on
Commit
ab9de61
·
verified ·
1 Parent(s): 5719bc9

Parley speech models: standard (fp32) and compact (int8)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ compact/diarization/mel_filters_128x257.f32 filter=lfs diff=lfs merge=lfs -text
37
+ standard/asr/encoder.data filter=lfs diff=lfs merge=lfs -text
38
+ standard/diarization/mel_filters_128x257.f32 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: openmdw-1.1
4
+ license_link: https://openmdw.ai/license/1-1/
5
+ library_name: onnxruntime
6
+ pipeline_tag: automatic-speech-recognition
7
+ tags:
8
+ - onnx
9
+ - directml
10
+ - speaker-diarization
11
+ - streaming-asr
12
+ - multilingual
13
+ base_model:
14
+ - nvidia/Nemotron-3-Diarization
15
+ - nvidia/nemotron-3.5-asr-streaming-0.6b
16
+ ---
17
+
18
+ # Parley speech models
19
+
20
+ ONNX models used by **Parley**, a desktop app for live speaker-aware transcription and
21
+ translation. Parley downloads one variant on first run and runs it natively with ONNX Runtime
22
+ (DirectML on any DirectX 12 GPU, CPU fallback).
23
+
24
+ | Variant | Size | Precision | Best for |
25
+ |---|---|---|---|
26
+ | `standard/` | 2.99 GB | fp32 | GPUs (DirectML) |
27
+ | `compact/` | 0.79 GB | int8 (dynamic, per-channel) | CPU-only machines |
28
+
29
+ Each variant folder has a `manifest.json` with the size and SHA-256 of every file.
30
+
31
+ ## Contents
32
+
33
+ ### `diarization/` — NVIDIA Nemotron-3-Diarization (streaming Sortformer, up to 8 speakers)
34
+
35
+ Exported from the 🤗 Transformers implementation of
36
+ [nvidia/Nemotron-3-Diarization](https://huggingface.co/nvidia/Nemotron-3-Diarization):
37
+
38
+ - `diar_embed.onnx` — feature stacking: log-mel `(1, T, 128)`, `T % 8 == 0` → embeddings `(1, T/8, 512)`
39
+ - `diar_step.onnx` — encoder + head: embeddings `(1, L, 512)` and padding mask `(1, L)` →
40
+ speaker probabilities `(1, L, 8)` pooled to 80 ms frames. Right padding is exact (masked
41
+ attention, zeroed before the upsampling conv), so callers can use fixed shapes on DirectML.
42
+ - `silence_embeds.f32` — learned silence embedding for the speaker cache
43
+ - `diarization.json` — Arrival-Order Speaker Cache / FIFO parameters and streaming modes
44
+ - `mel_filters_128x257.f32` — slaney mel filter bank (shared with the ASR front end)
45
+
46
+ The streaming state (speaker cache + FIFO, with its score-based compression) is not part of the
47
+ graphs; Parley implements it in Rust, ported from `Nemotron3DiarizationSpeakerCache`.
48
+ Streaming output matches the Transformers reference exactly on the fp32 variant (100% frame
49
+ agreement on the model card's example); the int8 variant agrees on 99.5% of frames.
50
+
51
+ ### `asr/` — NVIDIA Nemotron 3.5 ASR (cache-aware FastConformer RNN-T, 40 locales, 560 ms chunks)
52
+
53
+ NeMo cache-aware streaming export of
54
+ [nvidia/nemotron-3.5-asr-streaming-0.6b](https://huggingface.co/nvidia/nemotron-3.5-asr-streaming-0.6b)
55
+ by the [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) project
56
+ (`csukuangfj2/sherpa-onnx-nemotron-3.5-asr-streaming-0.6b-560ms[-int8]-2026-06-11`):
57
+ `encoder.onnx` (+ `encoder.data`), `decoder.onnx`, `joiner.onnx`, `tokens.txt`. Chunk geometry,
58
+ cache shapes and the language-prompt dictionary are in the encoder's metadata.
59
+
60
+ ## Front end
61
+
62
+ Both models consume the same features: 16 kHz mono, pre-emphasis 0.97, 512-point FFT, 400-sample
63
+ symmetric Hann window, hop 160, power spectrum, 128 slaney mel bins, `ln(x + 2^-24)`, no
64
+ normalization.
65
+
66
+ ## License and attribution
67
+
68
+ The model weights are NVIDIA's, released under the
69
+ [OpenMDW License Agreement 1.1](https://openmdw.ai/license/1-1/); these are format conversions
70
+ and quantizations of those weights, redistributed under the same terms.
71
+
72
+ - Nemotron-3-Diarization and Nemotron 3.5 ASR © NVIDIA Corporation.
73
+ - ASR ONNX export by the sherpa-onnx project (Apache-2.0 tooling).
74
+ - Diarization export and quantization by Parley.
compact/asr/decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19f9c98fc6d0a2c33a65a43b36fdb2e914c26c0aa9764be3aebc502a1e982fb0
3
+ size 14978075
compact/asr/encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:012e9321373af99021415e0b0eb3ec827b4be3153be6f30d9b448fe65e896e68
3
+ size 657601403
compact/asr/joiner.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4101c7c679a0bc30483794b27a059e34e79232aa2068d78d51231a22c8b0d7ce
3
+ size 9504438
compact/asr/tokens.txt ADDED
The diff for this file is too large to render. See raw diff
 
compact/diarization/diar_embed.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11712eaf7b478f9c630c49272e56b98bb51d7f52c854cc684ebcf340a0a684df
3
+ size 2103637
compact/diarization/diar_step.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c07b1af8344dd969875785ac71ee109c090cfbf86921881459e339489fcebf93
3
+ size 101373191
compact/diarization/diarization.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "num_speakers": 8,
3
+ "subsampling_factor": 8,
4
+ "speaker_cache_length": 264,
5
+ "fifo_length": 264,
6
+ "speaker_cache_update_period": 222,
7
+ "silence_frames_per_speaker": 1,
8
+ "prediction_score_threshold": 0.25,
9
+ "latest_frames_score_boost": 0.05,
10
+ "min_positive_scores_rate": 0.5,
11
+ "strong_boost_rate": 0.75,
12
+ "weak_boost_rate": 1.5,
13
+ "hidden_size": 512,
14
+ "streaming_modes": {
15
+ "low_latency": [
16
+ 9,
17
+ 4
18
+ ],
19
+ "very_low_latency": [
20
+ 6,
21
+ 2
22
+ ],
23
+ "ultra_low_latency": [
24
+ 3,
25
+ 1
26
+ ]
27
+ }
28
+ }
compact/diarization/mel_filters_128x257.f32 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5608e00763a20a191022fbb00a43346db5f1ec06828a97a6f4157f7d02b76c8
3
+ size 131584
compact/diarization/silence_embeds.f32 ADDED
Binary file (2.05 kB). View file
 
compact/manifest.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "variant": "compact",
3
+ "files": [
4
+ {
5
+ "path": "asr/decoder.onnx",
6
+ "size": 14978075,
7
+ "sha256": "19f9c98fc6d0a2c33a65a43b36fdb2e914c26c0aa9764be3aebc502a1e982fb0"
8
+ },
9
+ {
10
+ "path": "asr/encoder.onnx",
11
+ "size": 657601403,
12
+ "sha256": "012e9321373af99021415e0b0eb3ec827b4be3153be6f30d9b448fe65e896e68"
13
+ },
14
+ {
15
+ "path": "asr/joiner.onnx",
16
+ "size": 9504438,
17
+ "sha256": "4101c7c679a0bc30483794b27a059e34e79232aa2068d78d51231a22c8b0d7ce"
18
+ },
19
+ {
20
+ "path": "asr/tokens.txt",
21
+ "size": 131440,
22
+ "sha256": "729cc103155bafa785f9cd45746cd41cabe97eab7182fc04d594129587958f8a"
23
+ },
24
+ {
25
+ "path": "diarization/diar_embed.onnx",
26
+ "size": 2103637,
27
+ "sha256": "11712eaf7b478f9c630c49272e56b98bb51d7f52c854cc684ebcf340a0a684df"
28
+ },
29
+ {
30
+ "path": "diarization/diar_step.onnx",
31
+ "size": 101373191,
32
+ "sha256": "c07b1af8344dd969875785ac71ee109c090cfbf86921881459e339489fcebf93"
33
+ },
34
+ {
35
+ "path": "diarization/diarization.json",
36
+ "size": 563,
37
+ "sha256": "e191770b8264f145fc3c0359385ffd7e4fd3047ad87aabb9031c0e203dad744e"
38
+ },
39
+ {
40
+ "path": "diarization/mel_filters_128x257.f32",
41
+ "size": 131584,
42
+ "sha256": "f5608e00763a20a191022fbb00a43346db5f1ec06828a97a6f4157f7d02b76c8"
43
+ },
44
+ {
45
+ "path": "diarization/silence_embeds.f32",
46
+ "size": 2048,
47
+ "sha256": "d4417b3c0eabdf7c47032fac2b5b5a7ee83d819a6ddda8fd8eaf74e2b5cc4ac7"
48
+ }
49
+ ]
50
+ }
standard/asr/decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9c59ee6fa130bc2ba349dbcbba7c74a4a960a98d4196295ba4e8e5d6bde6b68
3
+ size 59764944
standard/asr/encoder.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7584f85df76bc9ae6fbdfa53aa8d97b07a842525d1c501d536d77fd9e4f57ac7
3
+ size 2454405120
standard/asr/encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1e540e03cb2cc57f5c0f6416b893768cfda23e756bfc0a2c4d502a1350325af
3
+ size 42247484
standard/asr/joiner.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6bd74c0a31cbde0da0368c1e29d171752108c7ad1231630e079a7d97ceee6f0
3
+ size 37824291
standard/asr/tokens.txt ADDED
The diff for this file is too large to render. See raw diff
 
standard/diarization/diar_embed.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11712eaf7b478f9c630c49272e56b98bb51d7f52c854cc684ebcf340a0a684df
3
+ size 2103637
standard/diarization/diar_step.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9e8403251f71d7307134e36f0d9b62cdc8a310def5ae650d19f142da5d232a6
3
+ size 395677177
standard/diarization/diarization.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "num_speakers": 8,
3
+ "subsampling_factor": 8,
4
+ "speaker_cache_length": 264,
5
+ "fifo_length": 264,
6
+ "speaker_cache_update_period": 222,
7
+ "silence_frames_per_speaker": 1,
8
+ "prediction_score_threshold": 0.25,
9
+ "latest_frames_score_boost": 0.05,
10
+ "min_positive_scores_rate": 0.5,
11
+ "strong_boost_rate": 0.75,
12
+ "weak_boost_rate": 1.5,
13
+ "hidden_size": 512,
14
+ "streaming_modes": {
15
+ "low_latency": [
16
+ 9,
17
+ 4
18
+ ],
19
+ "very_low_latency": [
20
+ 6,
21
+ 2
22
+ ],
23
+ "ultra_low_latency": [
24
+ 3,
25
+ 1
26
+ ]
27
+ }
28
+ }
standard/diarization/mel_filters_128x257.f32 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5608e00763a20a191022fbb00a43346db5f1ec06828a97a6f4157f7d02b76c8
3
+ size 131584
standard/diarization/silence_embeds.f32 ADDED
Binary file (2.05 kB). View file
 
standard/manifest.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "variant": "standard",
3
+ "files": [
4
+ {
5
+ "path": "asr/decoder.onnx",
6
+ "size": 59764944,
7
+ "sha256": "f9c59ee6fa130bc2ba349dbcbba7c74a4a960a98d4196295ba4e8e5d6bde6b68"
8
+ },
9
+ {
10
+ "path": "asr/encoder.data",
11
+ "size": 2454405120,
12
+ "sha256": "7584f85df76bc9ae6fbdfa53aa8d97b07a842525d1c501d536d77fd9e4f57ac7"
13
+ },
14
+ {
15
+ "path": "asr/encoder.onnx",
16
+ "size": 42247484,
17
+ "sha256": "f1e540e03cb2cc57f5c0f6416b893768cfda23e756bfc0a2c4d502a1350325af"
18
+ },
19
+ {
20
+ "path": "asr/joiner.onnx",
21
+ "size": 37824291,
22
+ "sha256": "a6bd74c0a31cbde0da0368c1e29d171752108c7ad1231630e079a7d97ceee6f0"
23
+ },
24
+ {
25
+ "path": "asr/tokens.txt",
26
+ "size": 131440,
27
+ "sha256": "729cc103155bafa785f9cd45746cd41cabe97eab7182fc04d594129587958f8a"
28
+ },
29
+ {
30
+ "path": "diarization/diar_embed.onnx",
31
+ "size": 2103637,
32
+ "sha256": "11712eaf7b478f9c630c49272e56b98bb51d7f52c854cc684ebcf340a0a684df"
33
+ },
34
+ {
35
+ "path": "diarization/diar_step.onnx",
36
+ "size": 395677177,
37
+ "sha256": "d9e8403251f71d7307134e36f0d9b62cdc8a310def5ae650d19f142da5d232a6"
38
+ },
39
+ {
40
+ "path": "diarization/diarization.json",
41
+ "size": 563,
42
+ "sha256": "e191770b8264f145fc3c0359385ffd7e4fd3047ad87aabb9031c0e203dad744e"
43
+ },
44
+ {
45
+ "path": "diarization/mel_filters_128x257.f32",
46
+ "size": 131584,
47
+ "sha256": "f5608e00763a20a191022fbb00a43346db5f1ec06828a97a6f4157f7d02b76c8"
48
+ },
49
+ {
50
+ "path": "diarization/silence_embeds.f32",
51
+ "size": 2048,
52
+ "sha256": "d4417b3c0eabdf7c47032fac2b5b5a7ee83d819a6ddda8fd8eaf74e2b5cc4ac7"
53
+ }
54
+ ]
55
+ }