SKostandian commited on
Commit
629f449
1 Parent(s): 08f46db

Update README.md

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