Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ia
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- automatic-speech-recognition
|
7 |
+
- mozilla-foundation/common_voice_8_0
|
8 |
+
- generated_from_trainer
|
9 |
+
- ia
|
10 |
+
- robust-speech-event
|
11 |
+
- model_for_talk
|
12 |
+
datasets:
|
13 |
+
- mozilla-foundation/common_voice_8_0
|
14 |
+
|
15 |
+
model-index:
|
16 |
+
- name: sammy786/wav2vec2-xlsr-interlingua
|
17 |
+
results:
|
18 |
+
- task:
|
19 |
+
name: Automatic Speech Recognition
|
20 |
+
type: automatic-speech-recognition
|
21 |
+
dataset:
|
22 |
+
name: Common Voice 8
|
23 |
+
type: mozilla-foundation/common_voice_8_0
|
24 |
+
args: ia
|
25 |
+
metrics:
|
26 |
+
- name: Test WER
|
27 |
+
type: wer
|
28 |
+
value: 16.81
|
29 |
+
- name: Test CER
|
30 |
+
type: cer
|
31 |
+
value: 4.76
|
32 |
+
---
|
33 |
+
# sammy786/wav2vec2-xlsr-interlingua
|
34 |
+
|
35 |
+
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-1b](https://huggingface.co/facebook/wav2vec2-xls-r-1b) on the MOZILLA-FOUNDATION/COMMON_VOICE_8_0 - ia dataset.
|
36 |
+
It achieves the following results on evaluation set (which is 10 percent of train data set merged with other and dev datasets):
|
37 |
+
- Loss: 5.44
|
38 |
+
- Wer: 19.78
|
39 |
+
|
40 |
+
## Model description
|
41 |
+
"facebook/wav2vec2-xls-r-1b" was finetuned.
|
42 |
+
|
43 |
+
## Intended uses & limitations
|
44 |
+
More information needed
|
45 |
+
## Training and evaluation data
|
46 |
+
Training data -
|
47 |
+
Common voice Finnish train.tsv, dev.tsv and other.tsv
|
48 |
+
|
49 |
+
## Training procedure
|
50 |
+
For creating the train dataset, all possible datasets were appended and 90-10 split was used.
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
|
56 |
+
- learning_rate: 0.000045637994662983496
|
57 |
+
- train_batch_size: 16
|
58 |
+
- eval_batch_size: 16
|
59 |
+
- seed: 13
|
60 |
+
- gradient_accumulation_steps: 2
|
61 |
+
- total_train_batch_size: 32
|
62 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
63 |
+
- lr_scheduler_type: cosine_with_restarts
|
64 |
+
- lr_scheduler_warmup_steps: 500
|
65 |
+
- num_epochs: 30
|
66 |
+
- mixed_precision_training: Native AMP
|
67 |
+
|
68 |
+
|
69 |
+
### Training results
|
70 |
+
|
71 |
+
|
72 |
+
| Step | Training Loss | Validation Loss | Wer |
|
73 |
+
|------|---------------|-----------------|----------|
|
74 |
+
| 200 | 4.649200 | 0.483339 | 0.511322 |
|
75 |
+
| 400 | 0.764700 | 0.133428 | 0.251288 |
|
76 |
+
| 600 | 0.563700 | 0.099292 | 0.227745 |
|
77 |
+
| 800 | 0.438800 | 0.087545 | 0.217445 |
|
78 |
+
| 1000 | 0.406800 | 0.072313 | 0.213848 |
|
79 |
+
| 1200 | 0.237500 | 0.066965 | 0.213766 |
|
80 |
+
| 1400 | 0.177800 | 0.064419 | 0.208126 |
|
81 |
+
| 1600 | 0.157100 | 0.065962 | 0.214011 |
|
82 |
+
| 1800 | 0.146600 | 0.059477 | 0.202076 |
|
83 |
+
| 2000 | 0.132800 | 0.055015 | 0.201831 |
|
84 |
+
| 2200 | 0.122000 | 0.055421 | 0.201749 |
|
85 |
+
| 2400 | 0.115700 | 0.054462 | 0.197826 |
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
### Framework versions
|
90 |
+
- Transformers 4.16.0.dev0
|
91 |
+
- Pytorch 1.10.0+cu102
|
92 |
+
- Datasets 1.17.1.dev0
|
93 |
+
- Tokenizers 0.10.3
|
94 |
+
|
95 |
+
#### Evaluation Commands
|
96 |
+
|
97 |
+
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
|
98 |
+
|
99 |
+
```bash
|
100 |
+
python eval.py --model_id sammy786/wav2vec2-xlsr-interlingua --dataset mozilla-foundation/common_voice_8_0 --config ia --split test
|
101 |
+
```
|