Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ba
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- automatic-speech-recognition
|
7 |
+
- mozilla-foundation/common_voice_8_0
|
8 |
+
- generated_from_trainer
|
9 |
+
- ba
|
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-bashkir
|
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: ba
|
25 |
+
metrics:
|
26 |
+
- name: Test WER
|
27 |
+
type: wer
|
28 |
+
value:
|
29 |
+
- name: Test CER
|
30 |
+
type: cer
|
31 |
+
value:
|
32 |
+
---
|
33 |
+
# sammy786/wav2vec2-xlsr-bashkir
|
34 |
+
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 - ba dataset.
|
35 |
+
It achieves the following results on evaluation set (which is 10 percent of train data set merged with other and dev datasets):
|
36 |
+
- Loss:
|
37 |
+
- Wer:
|
38 |
+
## Model description
|
39 |
+
"facebook/wav2vec2-xls-r-1b" was finetuned.
|
40 |
+
## Intended uses & limitations
|
41 |
+
More information needed
|
42 |
+
## Training and evaluation data
|
43 |
+
Training data -
|
44 |
+
Common voice Finnish train.tsv, dev.tsv and other.tsv
|
45 |
+
## Training procedure
|
46 |
+
For creating the train dataset, all possible datasets were appended and 90-10 split was used.
|
47 |
+
### Training hyperparameters
|
48 |
+
The following hyperparameters were used during training:
|
49 |
+
- learning_rate: 0.000045637994662983496
|
50 |
+
- train_batch_size: 16
|
51 |
+
- eval_batch_size: 16
|
52 |
+
- seed: 13
|
53 |
+
- gradient_accumulation_steps: 2
|
54 |
+
- total_train_batch_size: 32
|
55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
56 |
+
- lr_scheduler_type: cosine_with_restarts
|
57 |
+
- lr_scheduler_warmup_steps: 500
|
58 |
+
- num_epochs: 30
|
59 |
+
- mixed_precision_training: Native AMP
|
60 |
+
### Training results
|
61 |
+
| Step | Training Loss | Validation Loss | Wer |
|
62 |
+
|:----:|:-------------:|:---------------:|:--------:|
|
63 |
+
| 200 | 5.387100 | 1.982867 | 1.000000 |
|
64 |
+
| 400 | 1.269800 | 0.369958 | 0.545755 |
|
65 |
+
| 600 | 0.903600 | 0.287705 | 0.465594 |
|
66 |
+
| 800 | 0.787300 | 0.235142 | 0.417091 |
|
67 |
+
| 1000 | 0.816300 | 0.206325 | 0.390534 |
|
68 |
+
| 1200 | 0.700500 | 0.197106 | 0.383987 |
|
69 |
+
| 1400 | 0.707100 | 0.179855 | 0.381368 |
|
70 |
+
| 1600 | 0.657800 | 0.181605 | 0.370593 |
|
71 |
+
| 1800 | 0.647800 | 0.168626 | 0.358767 |
|
72 |
+
| 2000 | 0.650700 | 0.164833 | 0.351483 |
|
73 |
+
| 2200 | 0.490900 | 0.168133 | 0.363309 |
|
74 |
+
| 2400 | 0.431000 | 0.161201 | 0.344350 |
|
75 |
+
| 2600 | 0.372100 | 0.160254 | 0.338280 |
|
76 |
+
| 2800 | 0.367500 | 0.150885 | 0.329687 |
|
77 |
+
| 3000 | 0.351300 | 0.154112 | 0.331392 |
|
78 |
+
| 3200 | 0.314800 | 0.147147 | 0.326700 |
|
79 |
+
| 3400 | 0.316800 | 0.142681 | 0.325090 |
|
80 |
+
| 3600 | 0.313000 | 0.138736 | 0.319553 |
|
81 |
+
| 3800 | 0.291800 | 0.138166 | 0.315570 |
|
82 |
+
| 4000 | 0.311300 | 0.135977 | 0.322894 |
|
83 |
+
| 4200 | 0.304900 | 0.128820 | 0.308627 |
|
84 |
+
| 4400 | 0.301600 | 0.129475 | 0.307440 |
|
85 |
+
| 4600 | 0.281800 | 0.131863 | 0.305967 |
|
86 |
+
|
87 |
+
|
88 |
+
### Framework versions
|
89 |
+
- Transformers 4.16.0.dev0
|
90 |
+
- Pytorch 1.10.0+cu102
|
91 |
+
- Datasets 1.17.1.dev0
|
92 |
+
- Tokenizers 0.10.3
|
93 |
+
#### Evaluation Commands
|
94 |
+
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
|
95 |
+
|
96 |
+
```bash
|
97 |
+
python eval.py --model_id sammy786/wav2vec2-xlsr-bashkir --dataset mozilla-foundation/common_voice_8_0 --config ba --split test
|
98 |
+
```
|