SKostandian commited on
Commit
9a909c3
1 Parent(s): a74ebf7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +150 -3
README.md CHANGED
@@ -1,3 +1,150 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ka
4
+ library_name: nemo
5
+ datasets:
6
+ - mozilla-foundation/common_voice_17_0
7
+ - google/fleurs
8
+ metrics:
9
+ - wer
10
+ - cer
11
+ tags:
12
+ - 'automatic_speech_recognition '
13
+ - speech
14
+ - audio
15
+ - CTC
16
+ - FastConformer
17
+ - Transformer
18
+ - NeMo
19
+ - Georgian language
20
+ - pytorch
21
+ - hybrid
22
+ license: cc-by-4.0
23
+ model-index:
24
+ - name: stt_ka_fastconformer_hybrid_large_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: 5.73
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: 13.44
54
+ ---
55
+
56
+ # NVIDIA FastConformer-Hybrid Large (ka)
57
+
58
+ This model transcribes speech in Georgian alphabet along with spaces, periods, commas, and question marks.
59
+ It is a "large" version of FastConformer Transducer-CTC (around 115M parameters) model. This is a hybrid model trained on two losses: Transducer (default) and CTC.
60
+ See the [model architecture](#model-architecture) section and [NeMo documentation](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#fast-conformer) for complete architecture details.
61
+
62
+ ## NVIDIA NeMo: Training
63
+ 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.
64
+ ```
65
+ pip install nemo_toolkit['all']
66
+ ```
67
+
68
+ ## How to Use this Model
69
+ 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.
70
+
71
+ ### Automatically instantiate the model
72
+ ```python
73
+ import nemo.collections.asr as nemo_asr
74
+ asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_ka_fastconformer_hybrid_large_pc")
75
+ ```
76
+
77
+ ### Transcribing using Python
78
+ Simply do:
79
+ ```
80
+ asr_model.transcribe(['common_voice_ka_36843775.wav'])
81
+ ```
82
+ ### Transcribing many audio files
83
+
84
+ Using Transducer mode inference:
85
+ ```shell
86
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
87
+ pretrained_name="nvidia/stt_ka_fastconformer_hybrid_large_pc"
88
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
89
+ ```
90
+ Using CTC mode inference:
91
+ ```shell
92
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
93
+ pretrained_name="nvidia/stt_ka_fastconformer_hybrid_large_pc"
94
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
95
+ decoder_type="ctc"
96
+ ```
97
+
98
+ ### Input
99
+
100
+ This model accepts 16000 Hz Mono-channel Audio (wav files) as input.
101
+
102
+ ### Output
103
+
104
+ This model provides transcribed speech as a string for a given audio sample.
105
+
106
+ ## Model Architecture
107
+
108
+ FastConformer [1] is an optimized version of the Conformer model with 8x depthwise-separable convolutional downsampling. The model is trained in a multitask setup with a Transducer decoder loss. 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).
109
+
110
+ ## Training
111
+
112
+ 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/fastconformer/fast-conformer_ctc_bpe.yaml).
113
+ 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).
114
+
115
+ ### Datasets
116
+
117
+ The model in this collection is trained on two datasets comprising approxinately 163 hours of Georgian speech:
118
+
119
+ - Mozilla Common Voice (v17.0) - 96 hours of validated data, 63 hours of unvalidated data
120
+ - Google Fleurs - 4 hours
121
+
122
+ ## Performance
123
+
124
+ The performance of Automatic Speech Recognition models is measuring using Word Error Rate.
125
+ 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.
126
+ |**Tokenizer**|**Vocabulary Size**|**MCV-test**|**Fleurs test**| Train Dataset |
127
+ |-----------------------|-----------------|---------------|---------------|------------|
128
+ | SentencePiece Unigram | 1024 | 5.73 | 13.44 | MCV(Train,Dev,Other),Fleurs(Train,Dev)|
129
+
130
+ ## Limitations
131
+
132
+ 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.
133
+
134
+ ## NVIDIA Riva: Deployment
135
+ [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.
136
+ Additionally, Riva provides:
137
+ * 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
138
+ * 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
139
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
140
+ Although this model isn’t supported yet by Riva, the [list of supported models is here](https://huggingface.co/models?other=Riva).
141
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
142
+ ## References
143
+
144
+ [1] [Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition](https://arxiv.org/abs/2305.05084)
145
+
146
+ [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
147
+
148
+ [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
149
+ ## Licence
150
+ 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.