nithinraok commited on
Commit
02338f4
1 Parent(s): 1a4cdde

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +146 -0
README.md CHANGED
@@ -1,3 +1,149 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - kab
4
+ library_name: nemo
5
+ datasets:
6
+ - mozilla-foundation/common_voice_10_0
7
+ thumbnail: null
8
+ tags:
9
+ - automatic-speech-recognition
10
+ - speech
11
+ - audio
12
+ - Transducer
13
+ - Conformer
14
+ - Transformer
15
+ - pytorch
16
+ - NeMo
17
+ - hf-asr-leaderboard
18
  license: cc-by-4.0
19
+ model-index:
20
+ - name: stt_kab_conformer_transducer_large
21
+ results:
22
+ - task:
23
+ name: Automatic Speech Recognition
24
+ type: automatic-speech-recognition
25
+ dataset:
26
+ name: Mozilla Common Voice 10.0
27
+ type: mozilla-foundation/common_voice_10_0
28
+ config: kab
29
+ split: test
30
+ args:
31
+ language: kab
32
+ metrics:
33
+ - name: Test WER
34
+ type: wer
35
+ value: 18.86
36
  ---
37
+
38
+ # NVIDIA Conformer-Transducer Large (Kabyle)
39
+
40
+ <style>
41
+ img {
42
+ display: inline;
43
+ }
44
+ </style>
45
+
46
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-Conformer--Transducer-lightgrey#model-badge)](#model-architecture)
47
+ | [![Model size](https://img.shields.io/badge/Params-120M-lightgrey#model-badge)](#model-architecture)
48
+ | [![Language](https://img.shields.io/badge/Language-kab-lightgrey#model-badge)](#datasets)
49
+
50
+
51
+ This model transcribes speech into lowercase Latin alphabet including space and apostrophe and is trained on around 131 hours of Kabyle speech data.
52
+ It is a non-autoregressive "large" variant of Conformer, with around 120 million parameters.
53
+ 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-transducer) for complete architecture details.
54
+
55
+
56
+ ## Usage
57
+
58
+ 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.
59
+
60
+ To train, fine-tune or play with the model, you need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed the latest PyTorch version.
61
+
62
+ ```
63
+ pip install nemo_toolkit['all']
64
+ ```
65
+
66
+ ### Automatically instantiate the model
67
+
68
+ ```python
69
+ import nemo.collections.asr as nemo_asr
70
+ asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained("nvidia/stt_kab_conformer_transducer_large")
71
+ ```
72
+
73
+ ### Transcribing using Python
74
+ Simply do:
75
+ ```
76
+ asr_model.transcribe(['<your_audio>.wav'])
77
+ ```
78
+
79
+ ### Transcribing many audio files
80
+
81
+ ```shell
82
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
83
+ pretrained_name="nvidia/stt_kab_conformer_transducer_large"
84
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
85
+ ```
86
+
87
+ ### Input
88
+
89
+ This model accepts 16 kHz mono-channel Audio (wav files) as input.
90
+
91
+ ### Output
92
+
93
+ This model provides transcribed speech as a string for a given audio sample.
94
+
95
+ ## Model Architecture
96
+
97
+ Conformer-Transducer model is an autoregressive variant of the Conformer model [1] for Automatic Speech Recognition which uses Transducer loss/decoding. You may find more info on the detail of this model here: [Conformer-Transducer Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html).
98
+
99
+ ## Training
100
+
101
+ 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_transducer/speech_to_text_rnnt_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/conformer/conformer_transducer_bpe.yaml).
102
+
103
+ The vocabulary we use contains 39 characters including space:
104
+ ```python
105
+ ['a', 'b', 'c', 'č', 'd', 'ḍ', 'e', 'ɛ', 'f', 'g', 'ǧ', 'ɣ', 'h', 'ḥ', 'i', 'j', 'k', 'l', 'm', 'n', 'q', 'r', 'ř', 'ṛ', 's', 'ṣ', 't', 'ṭ', 'u', 'w', 'x', 'y', 'z', 'ẓ', ' ', 'o', 'p', 'γ', 'v']
106
+ ```
107
+ Rare symbols with diacritics were replaced during preprocessing.
108
+
109
+ 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).
110
+ For vocabulary of size 128 we restrict the maximum subtoken length to 4 symbols to avoid populating vocabulary with specific frequent words from the dataset. This does not affect the model performance and potentially helps to adapt to other domain without retraining tokenizer.
111
+
112
+ Full config can be found inside the .nemo files.
113
+
114
+ ### Datasets
115
+
116
+ All the models in this collection are trained on the MCV-10.0 Kabyle dataset, which contains around 131 hours of training data, 14.74 hours of development, and 15.67 hours of testing speech audio.
117
+
118
+ ## Performance
119
+
120
+ 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.
121
+
122
+ | Version | Tokenizer | Vocabulary Size | Dev WER| Test WER| Train Dataset |
123
+ |---------|-----------------------|-----------------|--------|---------|-----------------|
124
+ | 1.12.0 | SentencePiece BPE, maxlen=4 | 128 |18.12 | 18.86 | MCV-10.0 Train set|
125
+
126
+
127
+ ## Limitations
128
+
129
+ 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.
130
+
131
+ ## Deployment with NVIDIA Riva
132
+
133
+ [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.
134
+ Additionally, Riva provides:
135
+
136
+ * 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
137
+ * 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
138
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
139
+
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
+
143
+ ## References
144
+
145
+ - [1] [Conformer: Convolution-augmented Transformer for Speech Recognition](https://arxiv.org/abs/2005.08100)
146
+
147
+ - [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
148
+
149
+ - [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)