SKostandian commited on
Commit
b8d5eab
1 Parent(s): 6fb61db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +342 -3
README.md CHANGED
@@ -1,3 +1,342 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ datasets:
4
+ - mozilla-foundation/common_voice_11_0
5
+ - openslr/librispeech_asr
6
+ - Europarl-ASR-EN
7
+ - fisher_corpus
8
+ - VoxPopuli-EN
9
+ - National-Singapore-Corpus-Part-1
10
+ - kensho/spgispeech-1000hours
11
+ - Multilingual-LibriSpeech-2000hours
12
+ - MLCommons/peoples_speech
13
+ language:
14
+ - en
15
+ pipeline_tag: automatic-speech-recognition
16
+ library_name: NeMo
17
+ metrics:
18
+ - WER
19
+ - CER
20
+ tags:
21
+ - speech-recognition
22
+ - ASR
23
+ - English
24
+ - Conformer
25
+ - Transducer
26
+ - CTC
27
+ - NeMo
28
+ - speech
29
+ - audio
30
+ model-index:
31
+ - name: stt_en_fastconformer_hybrid_medium_streaming_80ms
32
+ results:
33
+ - task:
34
+ name: Automatic Speech Recognition
35
+ type: automatic-speech-recognition
36
+ dataset:
37
+ name: VoxPopuli
38
+ split: test
39
+ type: VoxPopuli
40
+ args:
41
+ language: en
42
+ metrics:
43
+ - name: Test WER
44
+ type: wer
45
+ value: 9.16
46
+ - task:
47
+ name: Automatic Speech Recognition
48
+ type: automatic-speech-recognition
49
+ dataset:
50
+ name: librispeech
51
+ type: openslr/librispeech_asr
52
+ split: test
53
+ args:
54
+ language: en
55
+ metrics:
56
+ - name: Test WER
57
+ type: wer
58
+ value: 4.59
59
+ - task:
60
+ type: Automatic Speech Recognition
61
+ name: automatic-speech-recognition
62
+ dataset:
63
+ name: MLS
64
+ type: Multilingual-LibriSpeech-2000hours
65
+ split: test
66
+ args:
67
+ language: en
68
+ metrics:
69
+ - name: Test WER
70
+ type: wer
71
+ value: 11.42
72
+ ---
73
+
74
+ # NVIDIA FastConformer-Hybrid medium streaming (en)
75
+ <style>
76
+ img {
77
+ display: inline-table;
78
+ vertical-align: small;
79
+ margin: 0;
80
+ padding: 0;
81
+ }
82
+ </style>
83
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-FastConformer--Transducer_CTC-lightgrey#model-badge)](#model-architecture)
84
+ | [![Model size](https://img.shields.io/badge/Params-32M-lightgrey#model-badge)](#model-architecture)
85
+ | [![Language](https://img.shields.io/badge/Language-en-lightgrey#model-badge)](#datasets)|
86
+
87
+ This collection contains medium size versions of cache-aware FastConformer-Hybrid (around 32M parameters) trained on a English speech. The model is trained for streaming ASR with look-ahead of 80ms which be used for very low-latency streaming applications and has two losses: Transducer (default) and CTC.
88
+ See the section [Model Architecture](#Model-Architecture) and [NeMo documentation](https://docs.nvidia.com/nemo-framework/user-guide/latest/nemotoolkit/asr/models.html#fast-conformer) for complete architecture details.
89
+
90
+
91
+ This model is ready for commercial and non-commercial use.
92
+
93
+ ## License
94
+
95
+ 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.
96
+
97
+ ## References
98
+
99
+ [1] [Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition](https://arxiv.org/abs/2305.05084)
100
+
101
+ [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
102
+
103
+ [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
104
+
105
+ [4] [HuggingFace ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)
106
+
107
+ <!-- ## NVIDIA NeMo: Training
108
+
109
+ To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo).
110
+ We recommend you install it after you've installed latest Pytorch version.
111
+ ```
112
+ pip install nemo_toolkit['all']
113
+ ```
114
+ -->
115
+ ## Model Architecture
116
+
117
+
118
+ The model is cache-aware versions of Hybrid FastConfomer which are trained for streaming ASR. You may find more info on cache-aware models here: [Cache-aware Streaming Conformer](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#cache-aware-streaming-conformer) [5].
119
+ FastConformer [1] is an optimized version of the Conformer model with 8x depthwise-separable convolutional downsampling.
120
+ The model is trained in a multitask setup with hybrid Transducer decoder (RNNT) and Connectionist Temporal Classification (CTC) loss.
121
+ 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).
122
+
123
+ Model utilizes a [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece) [2] tokenizer with a vocabulary size of 1024.
124
+
125
+ ### Input
126
+ - **Input Type:** Audio
127
+ - **Input Format(s):** .wav files
128
+ - **Other Properties Related to Input:** 16000 Hz Mono-channel Audio, Pre-Processing Not Needed
129
+
130
+ ### Output
131
+
132
+ This model provides transcribed speech as a string for a given audio sample.
133
+ - **Output Type**: Text
134
+ - **Output Format:** String
135
+ - **Output Parameters:** One Dimensional (1D)
136
+ - **Other Properties Related to Output:** May Need Inverse Text Normalization; Does Not Handle Special Characters; Outputs text in English with punctuation and capitalization.
137
+
138
+ ## Limitations
139
+
140
+ The model is streaming and can output the speech as a string without punctuation and capitalization.
141
+ Since this model was trained on publicly available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on.
142
+
143
+ ## How to Use this Model
144
+
145
+ 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.
146
+
147
+ ### Automatically instantiate the model
148
+
149
+ ```python
150
+ import nemo.collections.asr as nemo_asr
151
+ asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms")
152
+ ```
153
+ ### Transcribing using Python
154
+ First, let's get a sample
155
+ ```
156
+ wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
157
+ ```
158
+ Then simply do:
159
+ ```
160
+ asr_model.transcribe(['2086-149220-0033.wav'])
161
+ ```
162
+
163
+ ### Transcribing many audio files
164
+
165
+ Using Transducer mode inference:
166
+ ```shell
167
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
168
+ pretrained_name="nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms"
169
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
170
+ ```
171
+
172
+ Using CTC mode inference:
173
+ ```shell
174
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
175
+ pretrained_name="nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms"
176
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
177
+ decoder_type="ctc"
178
+ ```
179
+
180
+ ## Training
181
+
182
+ The [NVIDIA NeMo Toolkit] [3] was used for training the model for two hundred epochs.
183
+ Model is trained with this [example script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/asr_hybrid_transducer_ctc/speech_to_text_hybrid_rnnt_ctc_bpe.py).
184
+
185
+ The tokenizer for these model was 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).
186
+
187
+ ## Training, Testing, and Evaluation Datasets
188
+ ### Training Datasets
189
+ The model is trained on composite dataset comprising of around 8500 hours of English speech:
190
+
191
+ - [Librispeech](https://www.openslr.org/12)
192
+ - Data Collection Method: by Human
193
+ - Labeling Method: by Human
194
+ - [Mozilla Common Voice 11.0 English](https://commonvoice.mozilla.org/en/datasets)
195
+ - Data Collection Method: by Human
196
+ - Labeling Method: by Human
197
+ - [Europarl](https://www.statmt.org/europarl/)
198
+ - Data Collection Method: by Human
199
+ - Labeling Method: by Human
200
+ - [Fisher](https://catalog.ldc.upenn.edu/LDC2004S13)
201
+ - Data Collection Method: by Human
202
+ - Labeling Method: by Human
203
+ - [MLS](https://www.openslr.org/94/)
204
+ - Data Collection Method: by Human
205
+ - Labeling Method: by Human
206
+ - [Voxpopuli](https://github.com/facebookresearch/voxpopuli)
207
+ - Data Collection Method: by Human
208
+ - Labeling Method: by Human
209
+ - [SPGI-1000hours](https://datasets.kensho.com/datasets/spgispeech)
210
+ - Data Collection Method: Automated
211
+ - Labeling Method: by Human
212
+ - [People speech](https://huggingface.co/datasets/MLCommons/peoples_speech)
213
+ - Data Collection Method: Automated
214
+ - Labeling Method: by Human
215
+ ### Evaluation Datasets
216
+ - [Librispeech](https://www.openslr.org/12)
217
+ - Data Collection Method: by Human
218
+ - Labeling Method: by Human
219
+ - [Mozilla Common Voice 11.0 English](https://commonvoice.mozilla.org/en/datasets)
220
+ - Data Collection Method: by Human
221
+ - Labeling Method: by Human
222
+ - [Europarl](https://www.statmt.org/europarl/)
223
+ - Data Collection Method: by Human
224
+ - Labeling Method: by Human
225
+ - [Fisher](https://catalog.ldc.upenn.edu/LDC2004S13)
226
+ - Data Collection Method: by Human
227
+ - Labeling Method: by Human
228
+ - [MLS](https://www.openslr.org/94/)
229
+ - Data Collection Method: by Human
230
+ - Labeling Method: by Human
231
+ - [Voxpopuli](https://github.com/facebookresearch/voxpopuli)
232
+ - Data Collection Method: by Human
233
+ - Labeling Method: by Human
234
+ - [SPGI-1000hours](https://datasets.kensho.com/datasets/spgispeech)
235
+ - Data Collection Method: by Human
236
+ - Labeling Method: by Human
237
+ ### Test Datasets
238
+ - [Europarl](https://www.statmt.org/europarl/)
239
+ - Data Collection Method: by Human
240
+ - Labeling Method: by Human
241
+ - [MLS](https://www.openslr.org/94/)
242
+ - Data Collection Method: by Human
243
+ - Labeling Method: by Human
244
+ - [Voxpopuli](https://github.com/facebookresearch/voxpopuli)
245
+ - Data Collection Method: by Human
246
+ - Labeling Method: by Human
247
+ - [Librispeech](https://www.openslr.org/12)
248
+ - Data Collection Method: by Human
249
+ - Labeling Method: by Human
250
+ ## Software Integration
251
+
252
+ ### Supported Hardware Microarchitecture Compatibility:
253
+ - NVIDIA Ampere
254
+ - NVIDIA Blackwell
255
+ - NVIDIA Jetson
256
+ - NVIDIA Hopper
257
+ - NVIDIA Lovelace
258
+ - NVIDIA Pascal
259
+ - NVIDIA Turing
260
+ - NVIDIA Volta
261
+
262
+ ### Runtime Engine
263
+ - Nemo 2.0.0
264
+
265
+ ### Preferred Operating System
266
+ - Linux
267
+
268
+ ## Ethical Considerations
269
+ NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications.
270
+ When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
271
+
272
+ <!-- For more detailed information on ethical considerations for this model, please see the [Model Card++](https://docs.google.com/document/d/1cFbfEnlbBG_I5hTRiYuZAI1PgdPYRfsmXpE5-zJDdXU/edit?tab=t.0#heading=h.7jylogfmrbiw) Explainability, Bias, Safety & Security, and Privacy Subcards. -->
273
+
274
+ Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
275
+
276
+ ## Explainability
277
+
278
+ - High-Level Application and Domain: Automatic Speech Recognition
279
+ - - Describe how this model works: The model transcribes audio input into text for the English language
280
+ - Verified to have met prescribed quality standards: Yes
281
+ - Performance Metrics: Word Error Rate (WER), Character Error Rate (CER), Real-Time Factor
282
+ - Potential Known Risks: Transcripts may not be 100% accurate. Accuracy varies based on the characteristics of input audio (Domain, Use Case, Accent, Noise, Speech Type, Context of speech, etcetera).
283
+
284
+ ### Performance
285
+
286
+ **Test Hardware:** A100 GPU
287
+
288
+ The performance of Automatic Speech Recognition models is measured using Word Error Rate (WER) and Char Error Rate (CER).
289
+ Since this dataset is trained on multiple domains, it will generally perform well at transcribing audio in general.
290
+
291
+ The following tables summarize the performance of the available models in this collection with the Transducer decoder.
292
+ Performances of the ASR models are reported in terms of Word Error Rate (WER%) and Inverse Real-Time Factor (RTFx) with greedy decoding on test sets.
293
+
294
+ - Transducer
295
+ |**Version**|**Tokenizer**|**Vocabulary Size**|**Librispeech Test WER**|**Librispeech Test RTFx**|**Europarl test WER**|**Europarl test RTFx**|**Voxpopuli test WER**|**Voxpopuli test RTFx**|**MLS test WER**|**MLS test RTFx**
296
+ |----------|-------------|-------------------|----------------|----------------|----------------|----------------|----------------|----------------|----------------|----------------|
297
+ | 2.0.0 | SentencePiece Unigram | 1024 | 4.59 | ~1600 | 12.7| ~1000 | 8.1 | 1700 | 11.2 | ~1900 |
298
+
299
+
300
+
301
+ This model is trained without punctuation and capitalization and evaluated without punctuation and capitalization
302
+ ## Bias
303
+ - Was the model trained with a specific accent? No
304
+ - Have any special measures been taken to mitigate unwanted bias? No
305
+ - Participation considerations from adversely impacted groups [protected classes]
306
+ (https://www.senate.ca.gov/content/protected-classes) in model design and testing: No
307
+
308
+ ## Privacy
309
+ - Generatable or reverse engineerable personal data? No
310
+ - If applicable, was a notice provided to the individuals prior to the collection of any personal data used? Not applicable
311
+ - If personal data was collected for the development of the model, was it collected directly by NVIDIA? Not applicable
312
+ - Is there dataset provenance? Yes
313
+ - If data is labeled, was it reviewed to comply with privacy laws? Yes
314
+ - Is data compliant with data subject requests for data correction or removal, if such a request was made? No, not possible with externally-sourced data
315
+ - Is a mechanism in place to honor data subject rights of access or deletion of personal data? No
316
+ - How often is the training dataset reviewed?: Before Release
317
+
318
+ ## Safety & Security
319
+ ### Use Case Restrictions:
320
+
321
+ - Streaming ASR model
322
+ - Model outputs text in English
323
+ - Output text requires Inverse Text Normalization
324
+ - Model is noise-sensitive
325
+
326
+
327
+ Model is not applicable for life-critical applications.
328
+
329
+ ### Access Reactions:
330
+ The Principle of Least Privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training and dataset license constraints adhered to.
331
+
332
+ ## NVIDIA Riva: Deployment
333
+
334
+ [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.
335
+ Additionally, Riva provides:
336
+
337
+ * 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
338
+ * 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
339
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
340
+
341
+ Although this model isn’t supported yet by Riva, the [list of supported models is here](https://huggingface.co/models?other=Riva).
342
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).