steveheh commited on
Commit
2a22350
1 Parent(s): 9209562

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +255 -3
README.md CHANGED
@@ -1,3 +1,255 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ library_name: NeMo
6
+ tags:
7
+ - Self-supervised Learning
8
+ - Conformer
9
+ - NeMo
10
+ - speech
11
+ - audio
12
+ ---
13
+
14
+ # NVIDIA NEST XLarge En
15
+
16
+ The NEST framework is designed for speech self-supervised learning, which can be used as a frozen speech feature extractor or as weight initialization for downstream speech processing tasks. The NEST-XL model has about 600M parameters and is trained on an English dataset of roughly 100K hours. <br>
17
+ This model is ready for commercial/non-commercial use. <br>
18
+
19
+ ### License
20
+ 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.
21
+
22
+ ## Reference
23
+ [1] [NEST: Self-supervised Fast Conformer as All-purpose Seasoning to Speech Processing Tasks](https://arxiv.org/abs/2408.13106) <br>
24
+ [2] [NVIDIA NeMo Framework](https://github.com/NVIDIA/NeMo) <br>
25
+ [3] [Stateful Conformer with Cache-based Inference for Streaming Automatic Speech Recognition](https://arxiv.org/abs/2312.17279) <br>
26
+ [4] [Less is More: Accurate Speech Recognition & Translation without Web-Scale Data](https://arxiv.org/abs/2406.19674) <br>
27
+ [5] [Sortformer: Seamless Integration of Speaker Diarization and ASR by Bridging Timestamps and Tokens](https://arxiv.org/abs/2409.06656) <br>
28
+ [6] [Leveraging Pretrained ASR Encoders for Effective and Efficient End-to-End Speech Intent Classification and Slot Filling](https://arxiv.org/abs/2307.07057)<br>
29
+
30
+ ## Model Architecture
31
+
32
+ **Architecture Type:** NEST [1] <br>
33
+
34
+ **Network Architecture:**
35
+ - Encoder: FastConformer (24 layers)
36
+ - Decoder: Linear classifier
37
+ - Masking: Random block masking
38
+ - Augmentor: Speaker/noise augmentation
39
+ - Loss: Cross-entropy on masked positions <br>
40
+
41
+ ### Input
42
+ **Input Type(s):** Audio <br>
43
+ **Input Format(s):** wav files <br>
44
+ **Input Parameters:** One-Dimensional (1D) <br>
45
+ **Other Properties Related to Input:** 16000 Hz Mono-channel Audio <br>
46
+
47
+ ### Output:
48
+ **Output Type(s):** Audio features <br>
49
+ **Output Format:** Audio embeddings <br>
50
+ **Output Parameters:** Feature sequence (2D) <br>
51
+ **Other Properties Related to Output:** Audio feature sequence of shape [D,T] <br>
52
+
53
+
54
+ ## Model Version(s)
55
+ `ssl_en_nest_xlarge_v1.0` <br>
56
+
57
+
58
+ ## How to Use the Model
59
+ The model is available for use in the NVIDIA NeMo Framework [2], and can be used as weight initialization for downstream tasks or as a frozen feature extractor.
60
+
61
+ ### Automatically Instantiate the Model
62
+ ```python
63
+ from nemo.collections.asr.models import EncDecDenoiseMaskedTokenPredModel
64
+ nest_model = EncDecDenoiseMaskedTokenPredModel.from_pretrained(model_name="nvidia/ssl_en_nest_xlarge_v1.0")
65
+ ```
66
+ ### Using NEST as Weight Initialization for Downstream Tasks
67
+ ```bash
68
+ # use ASR as example:
69
+ python <NeMo Root>/examples/asr/asr_ctc/speech_to_text_ctc_bpe.py \
70
+ # (Optional: --config-path=<path to dir of configs> --config-name=<name of config without .yaml>) \
71
+ ++init_from_pretrained.name="nvidia/ssl_en_nest_xlarge_v1.0" \
72
+ ++init_from_pretrained.include=["encoder"] \
73
+ model.train_ds.manifest_filepath=<path to train manifest> \
74
+ model.validation_ds.manifest_filepath=<path to val/test manifest> \
75
+ model.tokenizer.dir=<path to directory of tokenizer (not full path to the vocab file!)> \
76
+ model.tokenizer.type=<either bpe or wpe> \
77
+ trainer.devices=-1 \
78
+ trainer.accelerator="gpu" \
79
+ trainer.strategy="ddp" \
80
+ trainer.max_epochs=100 \
81
+ model.optim.name="adamw" \
82
+ model.optim.lr=0.001 \
83
+ model.optim.betas=[0.9,0.999] \
84
+ model.optim.weight_decay=0.0001 \
85
+ model.optim.sched.warmup_steps=2000
86
+ exp_manager.create_wandb_logger=True \
87
+ exp_manager.wandb_logger_kwargs.name="<Name of experiment>" \
88
+ exp_manager.wandb_logger_kwargs.project="<Name of project>"
89
+ ```
90
+ More details can be found at [maybe_init_from_pretrained_checkpoint()](https://github.com/NVIDIA/NeMo/blob/main/nemo/core/classes/modelPT.py#L1236).
91
+
92
+ ### Using NEST as Frozen Feature Extractor
93
+ NEST can also be used as a frozen feature extractor for downstream tasks. For example, in the case of speaker verification, embeddings can be extracted from different layers of the NEST model, and a learned weighted combination of those embeddings can be used as input to the speaker verification model.
94
+ Please refer to this example [script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/speech_pretraining/downstream/speech_classification_mfa_train.py) and [config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/ssl/nest/multi_layer_feat/nest_titanet_small.yaml) for details.
95
+
96
+ ### Extracting and Saving Audio Features from NEST
97
+
98
+ NEST supports extracting audio features from multiple layers of its encoder:
99
+ ```bash
100
+ python <NeMo Root>/scripts/ssl/extract_features.py \
101
+ --model_path="nvidia/ssl_en_nest_xlarge_v1.0" \
102
+ --input=<path to input manifest, or a dir containing audios, or path to audio> \
103
+ --output=<output directory to store features and manifest> \
104
+ --layers="all" \
105
+ --batch_size=8 \
106
+ --workers=8
107
+ ```
108
+
109
+ ## Training
110
+ The [NVIDIA NeMo Framework](https://github.com/NVIDIA/NeMo) [2] was used for training the model. Model is trained with this example [script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/speech_pretraining/masked_token_pred_pretrain.py) and [config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/ssl/nest/nest_fast-conformer.yaml).
111
+ ## Training Datasets
112
+ - [LibriLight](https://github.com/facebookresearch/libri-light)
113
+ - Data Collection Method: Human
114
+ - Labeling Method: Human
115
+ - [Voxpopuli](https://github.com/facebookresearch/voxpopuli)
116
+ - Data Collection Method: Human
117
+ - Labeling Method: Human
118
+ - NeMo ASR Set 3.0
119
+ - Data Collection Method: Hybrid: Automated, Human
120
+ - Labeling Method: Hybrid: Automated, Human
121
+ <br>
122
+
123
+
124
+ ## Inference
125
+ **Engine:** NVIDIA NeMo <br>
126
+ **Test Hardware:** <br>
127
+ * A6000 <br>
128
+ * A100 <br>
129
+
130
+ ## Performance
131
+
132
+ For performance on more tasks, please refer to the NEST paper [1].
133
+
134
+ ### Multi-lingual Speech Recognition (ASR) with Punctuation and Capitalization
135
+
136
+ We finetuned the NEST model on 14k hours of multilingual (En, De, Es, FR) ASR data using the hybrid-CTC-RNNT loss [3] and evaluate the model's **word error rate (WER) with punctuation and capitalization** on the MCV16.1 test set. Please refer to the NEST paper [1] for more results and details on the model and training setup.
137
+
138
+ Model | En-MCV16.1-test | De-MCV16.1-test | Es-MCV16.1-test | Fr-MCV16.1-test
139
+ :----:|:---------------:|:---------------:|:---------------:|:---------------:
140
+ ssl_en_nest_xlarge_v1.0 | 14.43 | 8.07 | 8.70 | 16.18
141
+
142
+
143
+ ### Speech-to-text Translation (AST)
144
+
145
+ We use the `stt_en_nest_xlarge` model to initialize the Canary [4] model for speech-to-text translation. We evaluate the model's **BLEU score** on FLEURS test sets. Please refer to the NEST paper [1] for more results and details on the model and training setup.
146
+
147
+ Model | En->De | En->Es | En->Fr
148
+ :----:|:-----:|:-----:|:-----:
149
+ ssl_en_nest_xlarge_v1.0| 29.50 | 22.61 | 39.27
150
+
151
+
152
+ ### Speaker Diarization (SD)
153
+
154
+ We use the `ssl_en_nest_large_v1.0` model to initialize the Sortformer [5] model for speaker diarization. We evaluate the model's **diarization error rate (DER)** on the DIHARD and CALLHOME-part2 test sets. Please refer to the Sortformer paper [5] for more results and details on the model and training setup.
155
+
156
+ Model | DIHARD | CALLHOME-part2 | CALLHOME-part2 | CALLHOME-part2
157
+ :----:|:-----:|:-----:|:-----:|:-----:
158
+ [speakers] | <= 4 | 2 | 3 | 4
159
+ [collar] | collar=0.0 | collar=0.25 | collar=0.25 | collar=0.25
160
+ Sortformer w/ NEST | 14.60 | 6.08 | 9.57 | 15.40
161
+
162
+
163
+ ### Speech Intent Classification and Slot Filling (SLU)
164
+
165
+ We use the `ssl_en_nest_large` model to initialize the SLU model for speech intent classification and slot filling. We evaluate the model's **intent classification accuracy** and **SLURP F1 score** on the SLURP test set. Please refer to the NEST paper [1] for more results and details on the model and training setup.
166
+
167
+ Model | Intent Acc | SLURP F1
168
+ :----:|:---------:|:-------:
169
+ ssl_en_nest_large_v1.0 | 89.79 | 79.61
170
+ ssl_en_nest_xlarge_v1.0 | 89.04 | 80.31
171
+
172
+
173
+ ## Software Integration
174
+
175
+ **Runtime Engine(s):**
176
+ * [NeMo-2.0] <br>
177
+
178
+ **Supported Hardware Microarchitecture Compatibility:** <br>
179
+ * [NVIDIA Ampere] <br>
180
+ * [NVIDIA Blackwell] <br>
181
+ * [NVIDIA Jetson] <br>
182
+ * [NVIDIA Hopper] <br>
183
+ * [NVIDIA Lovelace] <br>
184
+ * [NVIDIA Pascal] <br>
185
+ * [NVIDIA Turing] <br>
186
+ * [NVIDIA Volta] <br>
187
+
188
+ **Supported Operating System(s):** <br>
189
+ * [Linux] <br>
190
+ * [Windows] <br>
191
+
192
+
193
+ ## Ethical Considerations
194
+ NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
195
+
196
+ For more detailed information on ethical considerations for this model, please see the Model Card++ Explainability, Bias, Safety & Security, and Privacy Subcards [Insert Link to Model Card++ here].
197
+
198
+ Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
199
+
200
+
201
+
202
+
203
+
204
+ ## Bias
205
+
206
+ Field | Response
207
+ :---------------------------------------------------------------------------------------------------|:---------------
208
+ Participation considerations from adversely impacted groups [protected classes](https://www.senate.ca.gov/content/protected-classes) in model design and testing: | None
209
+ Measures taken to mitigate against unwanted bias: | None
210
+
211
+
212
+ ## Explainability
213
+
214
+ Field | Response
215
+ :------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------
216
+ Intended Application & Domain: | Model initialization or feature extractor for downstream speech processing tasks
217
+ Model Type: | Transformer
218
+ Intended Users: | Researchers and Developers in speech processing
219
+ Output: | Audio embeddings
220
+ Describe how the model works: | Speech signal is processed by the model to produce audio embeddings
221
+ Name the adversely impacted groups this has been tested to deliver comparable outcomes regardless of: | Not Applicable
222
+ Technical Limitations: | This model was trained on English speech data and may not generalize well to other languages. Although the model was trained with various audio lengths from 1 second to 64 seconds, it may not perform well in streaming situations.
223
+ Verified to have met prescribed NVIDIA quality standards: | Yes
224
+ Performance Metrics: | Accuracy, F1, WER, DER
225
+ Potential Known Risks: | Speech features might not be effective for unseen languages and non-speech signals
226
+ Licensing: | [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/)
227
+
228
+ ## Privacy
229
+
230
+ Field | Response
231
+ :----------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------
232
+ Generatable or reverse engineerable personal data? | None
233
+ Personal data used to create this model? | None
234
+ Was consent obtained for any personal data used? | Not Applicable
235
+ How often is dataset reviewed? | Before Release
236
+ Is a mechanism in place to honor data subject right of access or deletion of personal data? | Not Applicable
237
+ If personal data was collected for the development of the model, was it collected directly by NVIDIA? | Not Applicable
238
+ If personal data was collected for the development of the model by NVIDIA, do you maintain or have access to disclosures made to data subjects? | Not Applicable
239
+ If personal data was collected for the development of this AI model, was it minimized to only what was required? | Not Applicable
240
+ Is there provenance for all datasets used in training? | Yes
241
+ Does data labeling (annotation, metadata) comply with privacy laws? | Yes
242
+ Is data compliant with data subject requests for data correction or removal, if such a request was made? | No, not possible with externally-sourced data.
243
+
244
+
245
+ ## Safety
246
+
247
+ Field | Response
248
+ :---------------------------------------------------|:----------------------------------
249
+ Model Application(s): | Model initialization or feature extractor for downstream speech processing tasks
250
+ Describe the life critical impact (if present). | Not Applicable
251
+ Use Case Restrictions: | Abide by [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/)
252
+ Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to.
253
+
254
+
255
+