Update README.md
Browse files
README.md
CHANGED
@@ -6,6 +6,8 @@ language:
|
|
6 |
- nn
|
7 |
datasets:
|
8 |
- NbAiLab/ncc_speech
|
|
|
|
|
9 |
metrics:
|
10 |
- wer
|
11 |
- cer
|
@@ -14,64 +16,66 @@ pipeline_tag: automatic-speech-recognition
|
|
14 |
---
|
15 |
# NB-Whisper small (beta)
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
|
20 |
|
21 |
## Model Details
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
-
|
26 |
|
|
|
27 |
|
|
|
28 |
|
29 |
-
- **Developed by:**
|
30 |
-
- **Shared by
|
31 |
-
- **Model type:**
|
32 |
-
- **Language(s) (NLP):**
|
33 |
-
- **License:** [
|
34 |
-
- **Finetuned from model
|
35 |
|
36 |
-
### Model Sources
|
37 |
|
38 |
<!-- Provide the basic links for the model. -->
|
39 |
|
40 |
-
- **Repository:**
|
41 |
-
- **Paper
|
42 |
-
- **Demo
|
43 |
|
44 |
## Uses
|
45 |
|
46 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
47 |
-
|
48 |
### Direct Use
|
49 |
|
50 |
-
|
51 |
|
52 |
-
[More Information Needed]
|
53 |
|
54 |
### Downstream Use [optional]
|
55 |
|
56 |
-
|
57 |
|
58 |
-
|
59 |
|
60 |
### Out-of-Scope Use
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
[More Information Needed]
|
65 |
|
66 |
## Bias, Risks, and Limitations
|
67 |
|
68 |
-
|
69 |
|
70 |
-
[More Information Needed]
|
71 |
|
72 |
### Recommendations
|
73 |
|
74 |
-
|
75 |
|
76 |
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
77 |
|
@@ -100,7 +104,7 @@ Use the code below to get started with the model.
|
|
100 |
|
101 |
#### Training Hyperparameters
|
102 |
|
103 |
-
- **Training regime:**
|
104 |
|
105 |
#### Speeds, Sizes, Times [optional]
|
106 |
|
@@ -150,13 +154,13 @@ Use the code below to get started with the model.
|
|
150 |
|
151 |
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
152 |
|
153 |
-
Carbon emissions
|
154 |
|
155 |
-
- **Hardware Type:**
|
156 |
-
- **Hours used:**
|
157 |
-
- **Cloud Provider:**
|
158 |
-
- **Compute Region:**
|
159 |
-
- **Carbon Emitted:**
|
160 |
|
161 |
## Technical Specifications [optional]
|
162 |
|
@@ -176,34 +180,18 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
176 |
|
177 |
[More Information Needed]
|
178 |
|
179 |
-
## Citation
|
180 |
|
181 |
-
|
182 |
|
183 |
-
**BibTeX:**
|
184 |
|
185 |
[More Information Needed]
|
186 |
|
187 |
**APA:**
|
188 |
|
189 |
-
[More Information Needed]
|
190 |
-
|
191 |
-
## Glossary [optional]
|
192 |
-
|
193 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
194 |
-
|
195 |
-
[More Information Needed]
|
196 |
-
|
197 |
-
## More Information [optional]
|
198 |
-
|
199 |
-
[More Information Needed]
|
200 |
-
|
201 |
-
## Model Card Authors [optional]
|
202 |
-
|
203 |
-
[More Information Needed]
|
204 |
-
|
205 |
-
## Model Card Contact
|
206 |
-
|
207 |
-
[More Information Needed]
|
208 |
|
|
|
209 |
|
|
|
|
6 |
- nn
|
7 |
datasets:
|
8 |
- NbAiLab/ncc_speech
|
9 |
+
- NbAiLab/NST
|
10 |
+
- NbAiLab/NPSC
|
11 |
metrics:
|
12 |
- wer
|
13 |
- cer
|
|
|
16 |
---
|
17 |
# NB-Whisper small (beta)
|
18 |
|
19 |
+
This is a **_public beta_** of the Norwegian NB-Whisper. NB-Whisper is an series of models for automatic speech recognition (ASR) and speech translation, building upon the foundation laid by [OpenAI's Whisper](https://arxiv.org/abs/2212.04356). All models are trained on 20,000 hours of labeled data.
|
|
|
|
|
20 |
|
21 |
## Model Details
|
22 |
|
23 |
+
NB-Whisper models are available in five different sizes (the table has links to the other sizes with semi-identical model cards):
|
24 |
+
|
25 |
+
| Model Size | Parameters | Availability |
|
26 |
+
|------------|------------|--------------|
|
27 |
+
| tiny | 39M | Will be released in public beta later this summer |
|
28 |
+
| base | 74M | Will be released in public beta later this summer |
|
29 |
+
| small | 244M | Available in public beta |
|
30 |
+
| medium | 769M | Will be released in public beta later this summer |
|
31 |
+
| large | 1550M | Will be released in public beta later this summer |
|
32 |
|
33 |
+
An official release of NB-Whisper models is planned for the Fall 2023.
|
34 |
|
35 |
+
Please refer to the OpenAI Whisper model card for more details about the backbone model.
|
36 |
|
37 |
+
### Model Description
|
38 |
|
39 |
+
- **Developed by:** NB AI-Lab
|
40 |
+
- **Shared by:** NB AI-Lab
|
41 |
+
- **Model type:** `whisper`
|
42 |
+
- **Language(s) (NLP):** Norwegian, Norwegian Bokmål, Norwegian Nynorsk, English
|
43 |
+
- **License:** [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)
|
44 |
+
- **Finetuned from model:** [openai/whisper-small](https://huggingface.co/openai/whisper-small)
|
45 |
|
46 |
+
### Model Sources
|
47 |
|
48 |
<!-- Provide the basic links for the model. -->
|
49 |
|
50 |
+
- **Repository:** https://github.com/NbAiLab/nb-whisper/
|
51 |
+
- **Paper:** _Coming_
|
52 |
+
- **Demo:** _Coming_
|
53 |
|
54 |
## Uses
|
55 |
|
|
|
|
|
56 |
### Direct Use
|
57 |
|
58 |
+
This is a Beta release. The models published in this repository are intended for a generalist purpose and are available to third parties.
|
59 |
|
|
|
60 |
|
61 |
### Downstream Use [optional]
|
62 |
|
63 |
+
We are confident that NB-Whisper will give better results than the multilingual OpenAI Whisper if the target is Norwegian. However, it is still known to show some hallucinations, as well as a tendency to drop part of the transcript from time to time. Please also note that the transcripts are typically not word by word. Spoken language and written language are often very different, and the model aims to "translate" spoken utterances into grammatically correct written sentences. We strongly believe that the best way to understand these models is to try them yourself.
|
64 |
|
65 |
+
A significant part of the training material comes from TV subtitles. Subtitles often shorten sentences to make them more readable. Typically, non-essential parts of the utterance can be also dropped. In some cases, this is a desired ability, in other cases, this is undesired. The final release of these model will provida a mechanism to control for this beaviour.
|
66 |
|
67 |
### Out-of-Scope Use
|
68 |
|
69 |
+
Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.
|
|
|
|
|
70 |
|
71 |
## Bias, Risks, and Limitations
|
72 |
|
73 |
+
These models may have bias and/or any other undesirable distortions. When third parties, deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of artificial intelligence. In no event shall the owner of the models (The National Library of Norway) be liable for any results arising from the use made by third parties of these models.
|
74 |
|
|
|
75 |
|
76 |
### Recommendations
|
77 |
|
78 |
+
We recommend users of NB-Whisper models to consider finetuning them for the specific set of tasks of interest, and for guardrails and appropriate precautions to be taken for any production use.
|
79 |
|
80 |
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
81 |
|
|
|
104 |
|
105 |
#### Training Hyperparameters
|
106 |
|
107 |
+
- **Training regime:** bf16 mixed precision
|
108 |
|
109 |
#### Speeds, Sizes, Times [optional]
|
110 |
|
|
|
154 |
|
155 |
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
156 |
|
157 |
+
Carbon emissions estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
158 |
|
159 |
+
- **Hardware Type:** TPUv4
|
160 |
+
- **Hours used:** 1,536
|
161 |
+
- **Cloud Provider:** Google Cloud
|
162 |
+
- **Compute Region:** `us-central1`
|
163 |
+
- **Carbon Emitted:** Total emissions are estimated to be 247.77 kgCO$_2$eq of which 100 percents were directly offset by the cloud provider.
|
164 |
|
165 |
## Technical Specifications [optional]
|
166 |
|
|
|
180 |
|
181 |
[More Information Needed]
|
182 |
|
183 |
+
## Citation
|
184 |
|
185 |
+
_A paper is coming soon!_
|
186 |
|
187 |
+
<!-- **BibTeX:**
|
188 |
|
189 |
[More Information Needed]
|
190 |
|
191 |
**APA:**
|
192 |
|
193 |
+
[More Information Needed] -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
|
195 |
+
## Contact
|
196 |
|
197 |
+
<a rel="noopener nofollow" href="mailto:[email protected]">[email protected]</a>
|