erastorgueva-nv commited on
Commit
e7a5543
1 Parent(s): 12dd00d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +206 -0
README.md CHANGED
@@ -1,3 +1,209 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - es
4
+ library_name: nemo
5
+ datasets:
6
+ - Fisher
7
+ - VoxPopuli
8
+ - facebook/multilingual_librispeech
9
+ - mozilla-foundation/common_voice_7_0
10
+ thumbnail: null
11
+ tags:
12
+ - automatic-speech-recognition
13
+ - speech
14
+ - audio
15
+ - CTC
16
+ - Conformer
17
+ - Transformer
18
+ - pytorch
19
+ - NeMo
20
+ - hf-asr-leaderboard
21
+ - Riva
22
  license: cc-by-4.0
23
+ model-index:
24
+ - name: stt_en_conformer_ctc_large
25
+ results:
26
+ - task:
27
+ type: Automatic Speech Recognition
28
+ name: automatic-speech-recognition
29
+ dataset:
30
+ name: Mozilla Common Voice 7.0
31
+ type: mozilla-foundation/common_voice_7_0
32
+ config: es
33
+ split: dev
34
+ args:
35
+ language: es
36
+ metrics:
37
+ - name: Dev WER
38
+ type: wer
39
+ value: 6.3
40
+ - task:
41
+ type: Automatic Speech Recognition
42
+ name: automatic-speech-recognition
43
+ dataset:
44
+ name: Mozilla Common Voice 7.0
45
+ type: mozilla-foundation/common_voice_7_0
46
+ config: es
47
+ split: test
48
+ args:
49
+ language: es
50
+ metrics:
51
+ - name: Test WER
52
+ type: wer
53
+ value: 6.9
54
+
55
+ - task:
56
+ type: Automatic Speech Recognition
57
+ name: automatic-speech-recognition
58
+ dataset:
59
+ name: Multilingual LibriSpeech
60
+ type: facebook/multilingual_librispeech
61
+ config: spanish
62
+ split: dev
63
+ args:
64
+ language: es
65
+ metrics:
66
+ - name: Dev WER
67
+ type: wer
68
+ value: 4.3
69
+
70
+ - task:
71
+ type: Automatic Speech Recognition
72
+ name: automatic-speech-recognition
73
+ dataset:
74
+ name: Multilingual LibriSpeech
75
+ type: facebook/multilingual_librispeech
76
+ config: spanish
77
+ split: test
78
+ args:
79
+ language: es
80
+ metrics:
81
+ - name: Test WER
82
+ type: wer
83
+ value: 4.2
84
+
85
+
86
+
87
+
88
+
89
  ---
90
+ # NVIDIA Conformer-CTC Large (es)
91
+
92
+ <style>
93
+ img {
94
+ display: inline;
95
+ }
96
+ </style>
97
+
98
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-Conformer--CTC-lightgrey#model-badge)](#model-architecture)
99
+ | [![Model size](https://img.shields.io/badge/Params-120M-lightgrey#model-badge)](#model-architecture)
100
+ | [![Language](https://img.shields.io/badge/Language-en--US-lightgrey#model-badge)](#datasets)
101
+ | [![Riva Compatible](https://img.shields.io/badge/NVIDIA%20Riva-compatible-brightgreen#model-badge)](#deployment-with-nvidia-riva) |
102
+
103
+
104
+ This model transcribes speech in lowercase English alphabet including spaces and apostrophes, and is trained on several thousand hours of English speech data.
105
+ It is a non-autoregressive "large" variant of Conformer, with around 120 million parameters.
106
+ See the [model architecture](#model-architecture) section and [NeMo documentation](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#conformer-ctc) for complete architecture details.
107
+ It is also compatible with NVIDIA Riva for [production-grade server deployments](#deployment-with-nvidia-riva).
108
+
109
+
110
+ ## Usage
111
+
112
+ 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.
113
+
114
+ 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.
115
+
116
+ ```
117
+ pip install nemo_toolkit['all']
118
+ ```
119
+
120
+ ### Automatically instantiate the model
121
+
122
+ ```python
123
+ import nemo.collections.asr as nemo_asr
124
+ asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained("nvidia/stt_en_conformer_ctc_large")
125
+ ```
126
+
127
+ ### Transcribing using Python
128
+ First, let's get a sample
129
+ ```
130
+ wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
131
+ ```
132
+ Then simply do:
133
+ ```
134
+ asr_model.transcribe(['2086-149220-0033.wav'])
135
+ ```
136
+
137
+ ### Transcribing many audio files
138
+
139
+ ```shell
140
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
141
+ pretrained_name="nvidia/stt_en_conformer_ctc_large"
142
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
143
+ ```
144
+
145
+ ### Input
146
+
147
+ This model accepts 16000 kHz Mono-channel Audio (wav files) as input.
148
+
149
+ ### Output
150
+
151
+ This model provides transcribed speech as a string for a given audio sample.
152
+
153
+ ## Model Architecture
154
+
155
+ Conformer-CTC model is a non-autoregressive variant of Conformer model [1] for Automatic Speech Recognition which uses CTC loss/decoding instead of Transducer. You may find more info on the detail of this model here: [Conformer-CTC Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#conformer-ctc).
156
+
157
+ ## Training
158
+
159
+ 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_ctc/speech_to_text_ctc_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/conformer/conformer_ctc_bpe.yaml).
160
+
161
+ 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).
162
+
163
+ The checkpoint of the language model used as the neural rescorer can be found [here](https://ngc.nvidia.com/catalog/models/nvidia:nemo:asrlm_en_transformer_large_ls). You may find more info on how to train and use language models for ASR models here: [ASR Language Modeling](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/asr_language_modeling.html)
164
+
165
+ ### Datasets
166
+
167
+ All the models in this collection are trained on a composite dataset (NeMo ASRSET) comprising of several thousand hours of English speech:
168
+
169
+ - Librispeech 960 hours of English speech
170
+ - Fisher Corpus
171
+ - Switchboard-1 Dataset
172
+ - WSJ-0 and WSJ-1
173
+ - National Speech Corpus (Part 1, Part 6)
174
+ - VCTK
175
+ - VoxPopuli (EN)
176
+ - Europarl-ASR (EN)
177
+ - Multilingual Librispeech (MLS EN) - 2,000 hours subset
178
+ - Mozilla Common Voice (v7.0)
179
+
180
+ Note: older versions of the model may have trained on smaller set of datasets.
181
+
182
+ ## Performance
183
+
184
+ The list of the available models in this collection is shown in the following table. Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding.
185
+
186
+ | Version | Tokenizer | Vocabulary Size | LS test-other | LS test-clean | WSJ Eval92 | WSJ Dev93 | NSC Part 1 | MLS Test | MLS Dev | MCV Test 6.1 |Train Dataset |
187
+ |---------|-----------------------|-----------------|---------------|---------------|------------|-----------|-------|------|-----|-------|---------|
188
+ | 1.6.0 | SentencePiece Unigram | 128 | 4.3 | 2.2 | 2.0 | 2.9 | 7.0 | 7.2 | 6.5 | 8.0 | NeMo ASRSET 2.0 |
189
+
190
+ While deploying with [NVIDIA Riva](https://developer.nvidia.com/riva), you can combine this model with external language models to further improve WER. The WER(%) of the latest model with different language modeling techniques are reported in the following table.
191
+
192
+ | Language Modeling | Training Dataset | LS test-other | LS test-clean | Comment |
193
+ |-------------------------------------|-------------------------|---------------|---------------|---------------------------------------------------------|
194
+ |N-gram LM | LS Train + LS LM Corpus | 3.5 | 1.8 | N=10, beam_width=128, n_gram_alpha=1.0, n_gram_beta=1.0 |
195
+ |Neural Rescorer(Transformer) | LS Train + LS LM Corpus | 3.4 | 1.7 | N=10, beam_width=128 |
196
+ |N-gram + Neural Rescorer(Transformer)| LS Train + LS LM Corpus | 3.2 | 1.8 | N=10, beam_width=128, n_gram_alpha=1.0, n_gram_beta=1.0 |
197
+ ## Limitations
198
+ 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. The model might also perform worse for accented speech.
199
+ ## Deployment with NVIDIA Riva
200
+ For the best real-time accuracy, latency, and throughput, deploy the model with [NVIDIA Riva](https://developer.nvidia.com/riva), an accelerated speech AI SDK deployable on-prem, in all clouds, multi-cloud, hybrid, at the edge, and embedded.
201
+ Additionally, Riva provides:
202
+ * 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
203
+ * 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
204
+ * Streaming speech recognition, Kubernetes compatible scaling, and Enterprise-grade support
205
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
206
+ ## References
207
+ - [1] [Conformer: Convolution-augmented Transformer for Speech Recognition](https://arxiv.org/abs/2005.08100)
208
+ - [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
209
+ - [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)