CollectionStudio nithinraok commited on
Commit
0a3e54e
·
0 Parent(s):

Duplicate from nvidia/parakeet-rnnt-1.1b

Browse files

Co-authored-by: Nithin Rao Koluguri <nithinraok@users.noreply.huggingface.co>

.eval_results/open_asr_leaderboard.yaml ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ - dataset:
2
+ id: hf-audio/open-asr-leaderboard
3
+ task_id: mean_wer
4
+ value: 7.12375
5
+ date: '2023-12-27'
6
+ source:
7
+ url: https://huggingface.co/hf-audio
8
+ name: open-asr-leaderboard
9
+ user: hf-audio
10
+
11
+ - dataset:
12
+ id: hf-audio/open-asr-leaderboard
13
+ task_id: rtfx
14
+ value: 2053.14697
15
+ date: '2023-12-27'
16
+ source:
17
+ url: https://huggingface.co/hf-audio
18
+ name: open-asr-leaderboard
19
+ user: hf-audio
20
+
21
+ - dataset:
22
+ id: hf-audio/open-asr-leaderboard
23
+ task_id: ami_wer
24
+ value: 17.01
25
+ date: '2023-12-27'
26
+ source:
27
+ url: https://huggingface.co/hf-audio
28
+ name: open-asr-leaderboard
29
+ user: hf-audio
30
+
31
+ - dataset:
32
+ id: hf-audio/open-asr-leaderboard
33
+ task_id: earnings22_wer
34
+ value: 13.94
35
+ date: '2023-12-27'
36
+ source:
37
+ url: https://huggingface.co/hf-audio
38
+ name: open-asr-leaderboard
39
+ user: hf-audio
40
+
41
+ - dataset:
42
+ id: hf-audio/open-asr-leaderboard
43
+ task_id: gigaspeech_wer
44
+ value: 9.89
45
+ date: '2023-12-27'
46
+ source:
47
+ url: https://huggingface.co/hf-audio
48
+ name: open-asr-leaderboard
49
+ user: hf-audio
50
+
51
+ - dataset:
52
+ id: hf-audio/open-asr-leaderboard
53
+ task_id: librispeech_clean_wer
54
+ value: 1.45
55
+ date: '2023-12-27'
56
+ source:
57
+ url: https://huggingface.co/hf-audio
58
+ name: open-asr-leaderboard
59
+ user: hf-audio
60
+
61
+ - dataset:
62
+ id: hf-audio/open-asr-leaderboard
63
+ task_id: librispeech_other_wer
64
+ value: 2.5
65
+ date: '2023-12-27'
66
+ source:
67
+ url: https://huggingface.co/hf-audio
68
+ name: open-asr-leaderboard
69
+ user: hf-audio
70
+
71
+ - dataset:
72
+ id: hf-audio/open-asr-leaderboard
73
+ task_id: spgispeech_wer
74
+ value: 2.93
75
+ date: '2023-12-27'
76
+ source:
77
+ url: https://huggingface.co/hf-audio
78
+ name: open-asr-leaderboard
79
+ user: hf-audio
80
+
81
+ - dataset:
82
+ id: hf-audio/open-asr-leaderboard
83
+ task_id: tedlium_wer
84
+ value: 3.83
85
+ date: '2023-12-27'
86
+ source:
87
+ url: https://huggingface.co/hf-audio
88
+ name: open-asr-leaderboard
89
+ user: hf-audio
90
+
91
+ - dataset:
92
+ id: hf-audio/open-asr-leaderboard
93
+ task_id: voxpopuli_wer
94
+ value: 5.44
95
+ date: '2023-12-27'
96
+ source:
97
+ url: https://huggingface.co/hf-audio
98
+ name: open-asr-leaderboard
99
+ user: hf-audio
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ parakeet-rnnt-1.1b.nemo filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: nemo
5
+ datasets:
6
+ - librispeech_asr
7
+ - fisher_corpus
8
+ - Switchboard-1
9
+ - WSJ-0
10
+ - WSJ-1
11
+ - National-Singapore-Corpus-Part-1
12
+ - National-Singapore-Corpus-Part-6
13
+ - vctk
14
+ - voxpopuli
15
+ - europarl
16
+ - multilingual_librispeech
17
+ - mozilla-foundation/common_voice_8_0
18
+ - MLCommons/peoples_speech
19
+ thumbnail: null
20
+ tags:
21
+ - automatic-speech-recognition
22
+ - speech
23
+ - audio
24
+ - Transducer
25
+ - FastConformer
26
+ - Conformer
27
+ - pytorch
28
+ - NeMo
29
+ - hf-asr-leaderboard
30
+ - transformers
31
+ license: cc-by-4.0
32
+ widget:
33
+ - example_title: Librispeech sample 1
34
+ src: https://cdn-media.huggingface.co/speech_samples/sample1.flac
35
+ - example_title: Librispeech sample 2
36
+ src: https://cdn-media.huggingface.co/speech_samples/sample2.flac
37
+ model-index:
38
+ - name: parakeet_rnnt_1.1b
39
+ results:
40
+ - task:
41
+ name: Automatic Speech Recognition
42
+ type: automatic-speech-recognition
43
+ dataset:
44
+ name: AMI (Meetings test)
45
+ type: edinburghcstr/ami
46
+ config: ihm
47
+ split: test
48
+ args:
49
+ language: en
50
+ metrics:
51
+ - name: Test WER
52
+ type: wer
53
+ value: 17.10
54
+ - task:
55
+ name: Automatic Speech Recognition
56
+ type: automatic-speech-recognition
57
+ dataset:
58
+ name: Earnings-22
59
+ type: revdotcom/earnings22
60
+ split: test
61
+ args:
62
+ language: en
63
+ metrics:
64
+ - name: Test WER
65
+ type: wer
66
+ value: 14.11
67
+ - task:
68
+ name: Automatic Speech Recognition
69
+ type: automatic-speech-recognition
70
+ dataset:
71
+ name: GigaSpeech
72
+ type: speechcolab/gigaspeech
73
+ split: test
74
+ args:
75
+ language: en
76
+ metrics:
77
+ - name: Test WER
78
+ type: wer
79
+ value: 9.96
80
+ - task:
81
+ name: Automatic Speech Recognition
82
+ type: automatic-speech-recognition
83
+ dataset:
84
+ name: LibriSpeech (clean)
85
+ type: librispeech_asr
86
+ config: other
87
+ split: test
88
+ args:
89
+ language: en
90
+ metrics:
91
+ - name: Test WER
92
+ type: wer
93
+ value: 1.46
94
+ - task:
95
+ name: Automatic Speech Recognition
96
+ type: automatic-speech-recognition
97
+ dataset:
98
+ name: LibriSpeech (other)
99
+ type: librispeech_asr
100
+ config: other
101
+ split: test
102
+ args:
103
+ language: en
104
+ metrics:
105
+ - name: Test WER
106
+ type: wer
107
+ value: 2.47
108
+ - task:
109
+ type: Automatic Speech Recognition
110
+ name: automatic-speech-recognition
111
+ dataset:
112
+ name: SPGI Speech
113
+ type: kensho/spgispeech
114
+ config: test
115
+ split: test
116
+ args:
117
+ language: en
118
+ metrics:
119
+ - name: Test WER
120
+ type: wer
121
+ value: 3.11
122
+ - task:
123
+ type: Automatic Speech Recognition
124
+ name: automatic-speech-recognition
125
+ dataset:
126
+ name: tedlium-v3
127
+ type: LIUM/tedlium
128
+ config: release1
129
+ split: test
130
+ args:
131
+ language: en
132
+ metrics:
133
+ - name: Test WER
134
+ type: wer
135
+ value: 3.92
136
+ - task:
137
+ name: Automatic Speech Recognition
138
+ type: automatic-speech-recognition
139
+ dataset:
140
+ name: Vox Populi
141
+ type: facebook/voxpopuli
142
+ config: en
143
+ split: test
144
+ args:
145
+ language: en
146
+ metrics:
147
+ - name: Test WER
148
+ type: wer
149
+ value: 5.39
150
+ - task:
151
+ type: Automatic Speech Recognition
152
+ name: automatic-speech-recognition
153
+ dataset:
154
+ name: Mozilla Common Voice 9.0
155
+ type: mozilla-foundation/common_voice_9_0
156
+ config: en
157
+ split: test
158
+ args:
159
+ language: en
160
+ metrics:
161
+ - name: Test WER
162
+ type: wer
163
+ value: 5.79
164
+
165
+ metrics:
166
+ - wer
167
+ pipeline_tag: automatic-speech-recognition
168
+ ---
169
+
170
+ # Parakeet RNNT 1.1B (en)
171
+
172
+ <style>
173
+ img {
174
+ display: inline;
175
+ }
176
+ </style>
177
+
178
+ [![Model architecture](https://img.shields.io/badge/Model_Arch-FastConformer--Transducer-lightgrey#model-badge)](#model-architecture)
179
+ | [![Model size](https://img.shields.io/badge/Params-1.1B-lightgrey#model-badge)](#model-architecture)
180
+ | [![Language](https://img.shields.io/badge/Language-en-lightgrey#model-badge)](#datasets)
181
+
182
+
183
+ `parakeet-rnnt-1.1b` is an ASR model that transcribes speech in lower case English alphabet. This model is jointly developed by [NVIDIA NeMo](https://github.com/NVIDIA/NeMo) and [Suno.ai](https://www.suno.ai/) teams.
184
+ It is an XXL version of FastConformer Transducer [1] (around 1.1B parameters) model.
185
+ See the [model architecture](#model-architecture) section and [NeMo documentation](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#fast-conformer) for complete architecture details.
186
+
187
+ ## Licence/Terms Of Use
188
+
189
+ License to use this model is covered by the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/). By downloading the public and release version of the model, you accept the terms and conditions of the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) license.
190
+
191
+ ## Discover more from NVIDIA:
192
+ For documentation, deployment guides, enterprise-ready APIs, and the latest open models—including Nemotron and other cutting-edge speech, translation, and generative AI—visit the NVIDIA Developer Portal at [developer.nvidia.com](developer.nvidia.com).
193
+ Join the community to access tools, support, and resources to accelerate your development with NVIDIA’s NeMo, Riva, NIM, and foundation models.<br>
194
+
195
+ ### Explore more from NVIDIA: <br>
196
+ What is [Nemotron](https://www.nvidia.com/en-us/ai-data-science/foundation-models/nemotron/)?<br>
197
+ NVIDIA Developer [Nemotron](https://developer.nvidia.com/nemotron)<br>
198
+ [NVIDIA Riva Speech](https://developer.nvidia.com/riva?sortBy=developer_learning_library%2Fsort%2Ffeatured_in.riva%3Adesc%2Ctitle%3Aasc#demos)<br>
199
+ [NeMo Documentation](https://docs.nvidia.com/nemo-framework/user-guide/latest/nemotoolkit/asr/models.html)<br>
200
+
201
+ ## How to Use this Model
202
+
203
+ The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
204
+
205
+ You can also run Parakeet RNNT with [Transformers](https://github.com/huggingface/transformers) 🤗 (more below).
206
+
207
+ ### 1) NeMo usage
208
+
209
+ To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest PyTorch version.
210
+ ```
211
+ pip install nemo_toolkit['all']
212
+ ```
213
+
214
+ #### Automatically instantiate the model
215
+
216
+ ```python
217
+ import nemo.collections.asr as nemo_asr
218
+ asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(model_name="nvidia/parakeet-rnnt-1.1b")
219
+ ```
220
+
221
+ #### Transcribing using Python
222
+ First, let's get a sample
223
+ ```
224
+ wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
225
+ ```
226
+ Then simply do:
227
+ ```
228
+ output = asr_model.transcribe(['2086-149220-0033.wav'])
229
+ print(output[0].text)
230
+ ```
231
+
232
+ #### Transcribing many audio files
233
+
234
+ ```shell
235
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
236
+ pretrained_name="nvidia/parakeet-rnnt-1.1b"
237
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
238
+ ```
239
+
240
+ ### 2) [Transformers](https://github.com/huggingface/transformers) 🤗 usage
241
+
242
+
243
+ Parakeet RNNT is available in 🤗 Transformers starting from v5.13.0.
244
+
245
+ ```bash
246
+ pip install "transformers>=5.13.0"
247
+ ```
248
+
249
+ <details>
250
+ <summary>➡️ Pipeline usage</summary>
251
+
252
+ ```python
253
+ from transformers import pipeline
254
+
255
+ pipe = pipeline("automatic-speech-recognition", model="nvidia/parakeet-rnnt-1.1b")
256
+ out = pipe("https://huggingface.co/datasets/hf-internal-testing/dummy-audio-samples/resolve/main/bcn_weather.mp3")
257
+ print(out)
258
+ ```
259
+ </details>
260
+
261
+ <details>
262
+ <summary>➡️ AutoModel</summary>
263
+
264
+ ```python
265
+ from transformers import AutoModelForRNNT, AutoProcessor
266
+ from datasets import load_dataset, Audio
267
+
268
+ num_samples = 3
269
+
270
+ model_id = "nvidia/parakeet-rnnt-1.1b"
271
+ processor = AutoProcessor.from_pretrained(model_id)
272
+ model = AutoModelForRNNT.from_pretrained(model_id, dtype="auto", device_map="auto")
273
+
274
+ ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
275
+ ds = ds.cast_column("audio", Audio(sampling_rate=processor.feature_extractor.sampling_rate))
276
+ speech_samples = [el["array"] for el in ds["audio"][:num_samples]]
277
+
278
+ inputs = processor(speech_samples, sampling_rate=processor.feature_extractor.sampling_rate)
279
+ inputs.to(model.device, dtype=model.dtype)
280
+ output = model.generate(**inputs, return_dict_in_generate=True)
281
+ print(processor.decode(output.sequences, skip_special_tokens=True))
282
+ ```
283
+ </details>
284
+
285
+
286
+ <details>
287
+ <summary>➡️ Timestamping</summary>
288
+
289
+ ```python
290
+ from datasets import Audio, load_dataset
291
+ from transformers import AutoModelForRNNT, AutoProcessor
292
+
293
+ num_samples = 3
294
+
295
+ model_id = "nvidia/parakeet-rnnt-1.1b"
296
+ processor = AutoProcessor.from_pretrained(model_id)
297
+ model = AutoModelForRNNT.from_pretrained(model_id, dtype="auto", device_map="auto")
298
+
299
+ ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
300
+ ds = ds.cast_column("audio", Audio(sampling_rate=processor.feature_extractor.sampling_rate))
301
+ speech_samples = [el["array"] for el in ds["audio"][:num_samples]]
302
+
303
+ inputs = processor(speech_samples, sampling_rate=processor.feature_extractor.sampling_rate)
304
+ inputs.to(model.device, dtype=model.dtype)
305
+ output = model.generate(**inputs, return_dict_in_generate=True)
306
+ decoded_output, decoded_timestamps = processor.decode(
307
+ output.sequences,
308
+ durations=output.durations,
309
+ skip_special_tokens=True,
310
+ )
311
+ print("Transcription:", decoded_output)
312
+ print("Timestamped tokens:", decoded_timestamps)
313
+ ```
314
+ </details>
315
+
316
+ <details>
317
+ <summary>➡️ Training</summary>
318
+
319
+ ```python
320
+ from transformers import AutoModelForRNNT, AutoProcessor
321
+ from datasets import load_dataset, Audio
322
+ import torch
323
+
324
+ model_id = "nvidia/parakeet-rnnt-1.1b"
325
+ NUM_SAMPLES = 4
326
+
327
+ processor = AutoProcessor.from_pretrained(model_id)
328
+ model = AutoModelForRNNT.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
329
+ model.train()
330
+
331
+ ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
332
+ ds = ds.cast_column("audio", Audio(sampling_rate=processor.feature_extractor.sampling_rate))
333
+ speech_samples = [el["array"] for el in ds["audio"][:NUM_SAMPLES]]
334
+ text_samples = ds["text"][:NUM_SAMPLES]
335
+
336
+ # passing `text` to the processor will prepare inputs' `labels` key
337
+ inputs = processor(audio=speech_samples, text=text_samples, sampling_rate=processor.feature_extractor.sampling_rate)
338
+ inputs.to(device=model.device, dtype=model.dtype)
339
+
340
+ outputs = model(**inputs)
341
+ print("Loss:", outputs.loss.item())
342
+ outputs.loss.backward()
343
+ ```
344
+ </details>
345
+
346
+ For more details about usage, please refer to the [Transformers' documentation](https://huggingface.co/docs/transformers/en/model_doc/parakeet).
347
+
348
+ ### Input
349
+
350
+ This model accepts 16000 Hz mono-channel audio (wav files) as input.
351
+
352
+ ### Output
353
+
354
+ This model provides transcribed speech as a string for a given audio sample.
355
+
356
+ ## Model Architecture
357
+
358
+ FastConformer [1] is an optimized version of the Conformer model with 8x depthwise-separable convolutional downsampling. The model is trained in a multitask setup with a Transducer decoder (RNNT) loss. You may find more information on the details of FastConformer here: [Fast-Conformer Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#fast-conformer).
359
+
360
+ ## Training
361
+
362
+ The NeMo toolkit [3] was used for training the models for over several hundred epochs. These model are trained with this [example script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/asr_transducer/speech_to_text_rnnt_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/fastconformer/fast-conformer_transducer_bpe.yaml).
363
+
364
+ The tokenizers for these models were built using the text transcripts of the train set with this [script](https://github.com/NVIDIA/NeMo/blob/main/scripts/tokenizers/process_asr_text_tokenizer.py).
365
+
366
+ ### Datasets
367
+
368
+ The model was trained on 64K hours of English speech collected and prepared by NVIDIA NeMo and Suno teams.
369
+
370
+ The training dataset consists of private subset with 40K hours of English speech plus 24K hours from the following public datasets:
371
+
372
+ - Librispeech 960 hours of English speech
373
+ - Fisher Corpus
374
+ - Switchboard-1 Dataset
375
+ - WSJ-0 and WSJ-1
376
+ - National Speech Corpus (Part 1, Part 6)
377
+ - VCTK
378
+ - VoxPopuli (EN)
379
+ - Europarl-ASR (EN)
380
+ - Multilingual Librispeech (MLS EN) - 2,000 hour subset
381
+ - Mozilla Common Voice (v7.0)
382
+ - People's Speech - 12,000 hour subset
383
+
384
+ ## Performance
385
+
386
+ The performance of Automatic Speech Recognition models is measuring using Word Error Rate. Since this dataset is trained on multiple domains and a much larger corpus, it will generally perform better at transcribing audio in general.
387
+
388
+ The following tables summarizes the performance of the available models in this collection with the Transducer decoder. Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding.
389
+
390
+ |**Version**|**Tokenizer**|**Vocabulary Size**|**AMI**|**Earnings-22**|**Giga Speech**|**LS test-clean**|**SPGI Speech**|**TEDLIUM-v3**|**Vox Populi**|**Common Voice**|
391
+ |---------|-----------------------|-----------------|---------------|---------------|------------|-----------|-----|-------|------|------|
392
+ | 1.22.0 | SentencePiece Unigram | 1024 | 17.10 | 14.11 | 9.96 | 1.46 | 2.47 | 3.11 | 3.92 | 5.39 | 5.79 |
393
+
394
+ These are greedy WER numbers without external LM. More details on evaluation can be found at [HuggingFace ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)
395
+
396
+ ## NVIDIA Riva: Deployment
397
+
398
+ [NVIDIA Riva](https://developer.nvidia.com/riva), is an accelerated speech AI SDK deployable on-prem, in all clouds, multi-cloud, hybrid, on edge, and embedded.
399
+ Additionally, Riva provides:
400
+
401
+ * World-class out-of-the-box accuracy for the most common languages with model checkpoints trained on proprietary data with hundreds of thousands of GPU-compute hours
402
+ * Best in class accuracy with run-time word boosting (e.g., brand and product names) and customization of acoustic model, language model, and inverse text normalization
403
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
404
+
405
+ Although this model isn’t supported yet by Riva, the [list of supported models is here](https://huggingface.co/models?other=Riva).
406
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
407
+
408
+ ## References
409
+ [1] [Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition](https://arxiv.org/abs/2305.05084)
410
+
411
+ [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
412
+
413
+ [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
414
+
415
+ [4] [Suno.ai](https://suno.ai/)
416
+
417
+ [5] [HuggingFace ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)
418
+
419
+
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ParakeetForRNNT"
4
+ ],
5
+ "blank_token_id": 1024,
6
+ "decoder_hidden_size": 640,
7
+ "dtype": "float32",
8
+ "encoder_config": {
9
+ "activation_dropout": 0.1,
10
+ "attention_bias": true,
11
+ "attention_dropout": 0.1,
12
+ "conv_kernel_size": 9,
13
+ "convolution_bias": true,
14
+ "dropout": 0.1,
15
+ "dropout_positions": 0.0,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 1024,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 4096,
20
+ "layerdrop": 0.1,
21
+ "max_position_embeddings": 5000,
22
+ "model_type": "parakeet_encoder",
23
+ "num_attention_heads": 8,
24
+ "num_hidden_layers": 42,
25
+ "num_key_value_heads": 8,
26
+ "num_mel_bins": 80,
27
+ "scale_input": true,
28
+ "subsampling_conv_channels": 256,
29
+ "subsampling_conv_kernel_size": 3,
30
+ "subsampling_conv_stride": 2,
31
+ "subsampling_factor": 8
32
+ },
33
+ "hidden_act": "relu",
34
+ "initializer_range": 0.02,
35
+ "is_encoder_decoder": true,
36
+ "max_symbols_per_step": 10,
37
+ "model_type": "parakeet_rnnt",
38
+ "num_decoder_layers": 2,
39
+ "pad_token_id": 0,
40
+ "transformers_version": "5.13.0.dev0",
41
+ "vocab_size": 1025
42
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 1024,
4
+ "output_attentions": false,
5
+ "output_hidden_states": false,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "5.13.0.dev0"
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09ae8537c649f096be2ffc6ec466e4e813c5e319da7430bdb0304bc5817ff7ac
3
+ size 4282269868
parakeet-rnnt-1.1b.nemo ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:535896f014953d945b287ac533560e20da8103c6781b152de4645528e2b60738
3
+ size 4283105280
processor_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "blank_token": "<blank>",
3
+ "decoder_type": "rnnt",
4
+ "feature_extractor": {
5
+ "feature_extractor_type": "ParakeetFeatureExtractor",
6
+ "feature_size": 80,
7
+ "hop_length": 160,
8
+ "n_fft": 512,
9
+ "padding_side": "right",
10
+ "padding_value": 0.0,
11
+ "preemphasis": 0.97,
12
+ "return_attention_mask": true,
13
+ "sampling_rate": 16000,
14
+ "win_length": 400
15
+ },
16
+ "processor_class": "ParakeetProcessor"
17
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": false,
4
+ "model_max_length": 1000000000000000019884624838656,
5
+ "pad_token": "<blank>",
6
+ "processor_class": "ParakeetProcessor",
7
+ "tokenizer_class": "ParakeetTokenizer",
8
+ "unk_token": "<unk>"
9
+ }