aandrusenko commited on
Commit
7c9e774
1 Parent(s): 3440649

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +143 -0
README.md CHANGED
@@ -1,3 +1,146 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - eo
4
+ library_name: nemo
5
+ datasets:
6
+ - mozilla-foundation/common_voice_11_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_eo_conformer_transducer_large
21
+ results:
22
+ - task:
23
+ name: Automatic Speech Recognition
24
+ type: automatic-speech-recognition
25
+ dataset:
26
+ name: Mozilla Common Voice 11.0
27
+ type: mozilla-foundation/common_voice_11_0
28
+ config: eo
29
+ split: test
30
+ args:
31
+ language: eo
32
+ metrics:
33
+ - name: Dev WER
34
+ type: wer
35
+ value: 2.4
36
+ - name: Test WER
37
+ type: wer
38
+ value: 4.0
39
  ---
40
+ # NVIDIA Conformer-Transducer Large (Kinyarwanda)
41
+
42
+ <style>
43
+ img {
44
+ display: inline;
45
+ }
46
+ </style>
47
+
48
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-Conformer--Transducer-lightgrey#model-badge)](#model-architecture)
49
+ | [![Model size](https://img.shields.io/badge/Params-120M-lightgrey#model-badge)](#model-architecture)
50
+ | [![Language](https://img.shields.io/badge/Language-eo-lightgrey#model-badge)](#datasets)
51
+
52
+
53
+ This model transcribes speech into lowercase Esperanto alphabet including spaces and apostroph. The model was obtained by finetuning from English SSL-pretrained model on Mozilla Common Voice Esperanto 11.0 dataset. It is a non-autoregressive "large" variant of Conformer [1], with around 120 million parameters. 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 finetuning on another dataset.
59
+
60
+ To train, finetune 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.
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_eo_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_eo_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 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 finetuning from English SSL model for three hundred epochs. The model is finetuning 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). As pretrained English SSL model we use [ssl_en_conformer_large](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/ssl_en_conformer_large) which was trained using LibriLight corpus (~56k hrs of unlabeled English speech).
102
+
103
+ The tokenizer (BPE vocab size 128) for the 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).
104
+
105
+ Full config can be found inside the .nemo files.
106
+
107
+ ### Datasets
108
+
109
+ All the models were trained on a Mozilla Common Voice Esperanto 11.0 dataset comprising of about 1400 validated hours of Esperanto speech. However, training set consists of a much smaller amount of data, because when forming the train.tsv, dev.tsv and test.tsv, repetitions of texts in train were removed by Mozilla developers.
110
+
111
+ - Train set: ~250 hours.
112
+ - Dev set: ~25 hours.
113
+ - Test: ~25 hours.
114
+
115
+ ## Performance
116
+
117
+ 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.
118
+
119
+ | Version | Tokenizer | Vocabulary Size | Dev WER| Test WER| Train Dataset |
120
+ |---------|-----------------------|-----------------|--------|---------|-----------------|
121
+ | 1.14.0 | SentencePiece BPE | 128 | 2.4 | 4.0 | MCV-11.0 Train set |
122
+
123
+
124
+ ## Limitations
125
+
126
+ 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.
127
+
128
+ ## Deployment with NVIDIA Riva
129
+
130
+ [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.
131
+ Additionally, Riva provides:
132
+
133
+ * 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
134
+ * 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
135
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
136
+
137
+ Although this model isn’t supported yet by Riva, the [list of supported models is here](https://huggingface.co/models?other=Riva).
138
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
139
+
140
+ ## References
141
+
142
+ - [1] [Conformer: Convolution-augmented Transformer for Speech Recognition](https://arxiv.org/abs/2005.08100)
143
+
144
+ - [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
145
+
146
+ - [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)