aayrapetyan commited on
Commit
18e6e19
·
verified ·
1 Parent(s): d53fe3b

Update README.md

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