Gorgarik commited on
Commit
42745fe
·
1 Parent(s): 8db7a06

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +144 -0
README.md CHANGED
@@ -1,3 +1,147 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+
3
+
4
+
5
+ language:
6
+ - be
7
+ library_name: nemo
8
+ datasets:
9
+ - mozilla-foundation/common_voice_10_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_be_conformer_ctc_large
25
+ results:
26
+ - task:
27
+ name: Automatic Speech Recognition
28
+ type: automatic-speech-recognition
29
+ dataset:
30
+ name: MCV_10_be
31
+ type: mcv_asr
32
+ config: clean
33
+ split: test
34
+ args:
35
+ language: be
36
+ metrics:
37
+ - name: Test WER
38
+ type: wer
39
+ value: 4.8
40
+
41
  ---
42
+
43
+ # NVIDIA Conformer-CTC Large (be)
44
+
45
+ <style>
46
+ img {
47
+ display: inline;
48
+ }
49
+ </style>
50
+
51
+ | [![Model architecture](https://img.shields.io/badge/Model_Arch-Conformer--CTC-lightgrey#model-badge)](#model-architecture)
52
+ | [![Model size](https://img.shields.io/badge/Params-120M-lightgrey#model-badge)](#model-architecture)
53
+ | [![Language](https://img.shields.io/badge/Language-be--Belarusia-lightgrey#model-badge)](#datasets)
54
+ | [![Riva Compatible](https://img.shields.io/badge/NVIDIA%20Riva-compatible-brightgreen#model-badge)](#deployment-with-nvidia-riva) |
55
+
56
+
57
+ This model transcribes speech in lowercase Belarusian alphabet including spaces and apostrophes, and is trained on few hundreds of Belarusian speech data.
58
+ It is a non-autoregressive "large" variant of Conformer, with around 120 million parameters.
59
+ 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.
60
+ It is also compatible with NVIDIA Riva for [production-grade server deployments](#deployment-with-nvidia-riva).
61
+
62
+
63
+ ## Usage
64
+
65
+ 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.
66
+
67
+ 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.
68
+
69
+ ```
70
+ pip install nemo_toolkit['all']
71
+ ```
72
+
73
+ ### Automatically instantiate the model
74
+
75
+ ```python
76
+ import nemo.collections.asr as nemo_asr
77
+ asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained("nvidia/stt_be_conformer_ctc_large")
78
+ ```
79
+
80
+ ### Transcribing using Python
81
+ ```
82
+ Simply do:
83
+ ```
84
+ asr_model.transcribe(['sample.wav'])
85
+ ```
86
+
87
+ ### Transcribing many audio files
88
+
89
+ ```shell
90
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
91
+ pretrained_name="nvidia/stt_en_conformer_ctc_large"
92
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
93
+ ```
94
+
95
+ ### Input
96
+
97
+ This model accepts 16000 Hz Mono-channel Audio (wav files) as input.
98
+
99
+ ### Output
100
+
101
+ This model provides transcribed speech as a string for a given audio sample.
102
+
103
+ ## Model Architecture
104
+
105
+ 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).
106
+
107
+ ## Training
108
+
109
+ 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).
110
+
111
+ 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).
112
+
113
+ The checkpoint of the language model used as the neural rescorer can be found [here](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/stt_be_conformer_ctc_large). 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)
114
+
115
+ ### Datasets
116
+
117
+ All the models in this collection are trained on a composite dataset (NeMo ASRSET) comprising of several hundreds hours of Belarusian speech:
118
+
119
+ - Mozilla Common Voice (v10.0)
120
+
121
+ ## Performance
122
+
123
+ Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding. WER on dev is 4.8%
124
+
125
+ ## Limitations
126
+
127
+ Since all models are trained on just MCV-10 dataset, 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.
128
+
129
+ ## Deployment with NVIDIA Riva
130
+
131
+ 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.
132
+ Additionally, Riva provides:
133
+
134
+ * 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
135
+ * 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
136
+ * Streaming speech recognition, Kubernetes compatible scaling, and Enterprise-grade support
137
+
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)
147
+