SKostandian commited on
Commit
3c8a4d0
·
verified ·
1 Parent(s): f1a24b8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +169 -3
README.md CHANGED
@@ -1,3 +1,169 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ datasets:
4
+ - mozilla-foundation/common_voice_17_0
5
+ - google/fleurs
6
+ language:
7
+ - ka
8
+ metrics:
9
+ - wer
10
+ - cer
11
+ library_name: nemo
12
+ tags:
13
+ - 'automatic_speech_recognition '
14
+ - speech
15
+ - audio
16
+ - CTC
17
+ - FastConformer
18
+ - Transformer
19
+ - NeMo
20
+ - Georgian language
21
+ - pytorch
22
+ - hybrid
23
+ model-index:
24
+ - name: stt_ka_fastconformer_hybrid_transducer_ctc_large_streaming_80ms_pc
25
+ results:
26
+ - task:
27
+ name: Automatic Speech Recognition
28
+ type: automatic-speech-recognition
29
+ dataset:
30
+ name: common-voice-17-0
31
+ type: mozilla-foundation/common_voice_17_0
32
+ config: ka
33
+ split: test
34
+ args:
35
+ language: ka
36
+ metrics:
37
+ - name: Test WER
38
+ type: wer
39
+ value: 7.44
40
+ - task:
41
+ type: Automatic Speech Recognition
42
+ name: automatic-speech-recognition
43
+ dataset:
44
+ name: Fleurs
45
+ type: google/fleurs
46
+ config: ka
47
+ split: test
48
+ args:
49
+ language: ka
50
+ metrics:
51
+ - name: Test WER
52
+ type: wer
53
+ value: 16
54
+ ---
55
+
56
+ # NVIDIA FastConformer-Hybrid Large (ka)
57
+
58
+ This collection contains large size versions of cache-aware FastConformer-Hybrid (around 115M parameters) trained on a Georgian speech with .
59
+ These models are trained for streaming ASR with look-ahead of 80ms which be used for very low-latency streaming applications.
60
+ All models are hybrid with both Transducer and CTC decoders.
61
+
62
+
63
+ ## Model Architecture
64
+
65
+ These models are 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].
66
+ The models are trained with multiple look-aheads which makes the model to be able to support different latencies.
67
+ To learn on how to switch between different look-ahead, you may read the documentation on the cache-aware models.
68
+
69
+ FastConformer [4] is an optimized version of the Conformer model [1], and
70
+ 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).
71
+
72
+ The model is trained in a multitask setup with joint Transducer and CTC decoder loss [5]. You can find more about Hybrid Transducer-CTC training here: [Hybrid Transducer-CTC](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#hybrid-transducer-ctc).
73
+ You may also find more on how to switch between the Transducer and CTC decoders in the documentation.
74
+
75
+
76
+ ## NVIDIA NeMo: Training
77
+ 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_hybrid_transducer_ctc/speech_to_text_hybrid_rnnt_ctc_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/fastconformer/hybrid_cache_aware_streaming/fastconformer_hybrid_transducer_ctc_bpe_streaming.yaml). The SentencePiece tokenizers [2] 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).
78
+
79
+
80
+ ### Datasets
81
+
82
+ The model in this collection is trained on two datasets comprising approxinately 163 hours of Georgian speech:
83
+
84
+ - Mozilla Common Voice (v17.0) - 96 hours of validated data, 63 hours of unvalidated data
85
+ - Google Fleurs - 4 hours
86
+
87
+
88
+ ## Performance
89
+
90
+ The performance of Automatic Speech Recognition models is measuring using Word Error Rate.
91
+ 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.
92
+ |**Tokenizer**|**Vocabulary Size**|**MCV-test**|**Fleurs test**| Train Dataset |
93
+ |-----------------------|-----------------|---------------|---------------|------------|
94
+ | SentencePiece Unigram | 1024 | 7.44 | 16 | MCV(Train,Dev,Other),Fleurs(Train,Dev)|
95
+
96
+
97
+ ## How to Use this Model
98
+
99
+ The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for streaming or for fine-tuning on another dataset.
100
+ You will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest Pytorch version.
101
+
102
+ ```
103
+ pip install nemo_toolkit['all']
104
+ ```
105
+
106
+ ### Automatically instantiate the model
107
+ ```python
108
+ import nemo.collections.asr as nemo_asr
109
+ asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_ka_fastconformer_hybrid_transducer_ctc_large_streaming_80ms_pc")
110
+ ```
111
+
112
+ ### Transcribing using Python
113
+ Simply do:
114
+ ```
115
+ asr_model.transcribe(['common_voice_ka_36843775.wav'])
116
+ ```
117
+ ### Transcribing many audio files
118
+
119
+ Using Transducer mode inference:
120
+ ```shell
121
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
122
+ pretrained_name="nvidia/stt_ka_fastconformer_hybrid_transducer_ctc_large_streaming_80ms_pc"
123
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
124
+ ```
125
+ Using CTC mode inference:
126
+ ```shell
127
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
128
+ pretrained_name="nvidia/stt_ka_fastconformer_hybrid_transducer_ctc_large_streaming_80ms_pc"
129
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
130
+ decoder_type="ctc"
131
+ ```
132
+
133
+ ### Input
134
+
135
+ This model accepts 16000 Hz Mono-channel Audio (wav files) as input.
136
+
137
+ ### Output
138
+
139
+ This model provides transcribed speech as a string for a given audio sample.
140
+
141
+
142
+ ## Limitations
143
+
144
+ Since this model was trained on publically 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.
145
+
146
+ ## NVIDIA Riva: Deployment
147
+ [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.
148
+ Additionally, Riva provides:
149
+ * 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
150
+ * 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
151
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
152
+ Although this model isn’t supported yet by Riva, the [list of supported models is here](https://huggingface.co/models?other=Riva).
153
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
154
+ ## References
155
+
156
+
157
+ [1] [Conformer: Convolution-augmented Transformer for Speech Recognition](https://arxiv.org/abs/2005.08100)
158
+
159
+ [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
160
+
161
+ [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
162
+
163
+ [4] [Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition](https://arxiv.org/abs/2305.05084)
164
+
165
+ [5] [Stateful Conformer with Cache-based Inference for Streaming Automatic Speech Recognition
166
+ ](https://arxiv.org/abs/2312.17279)
167
+
168
+ ## Licence
169
+ 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.