Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- sw
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- automatic-speech-recognition
|
7 |
+
- mozilla-foundation/common_voice_8_0
|
8 |
+
- generated_from_trainer
|
9 |
+
- sw
|
10 |
+
- robust-speech-event
|
11 |
+
- model_for_talk
|
12 |
+
datasets:
|
13 |
+
- mozilla-foundation/common_voice_8_0
|
14 |
+
|
15 |
+
model-index:
|
16 |
+
- name: Akashpb13/Swahili_xlsr
|
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: sw
|
25 |
+
metrics:
|
26 |
+
- name: Test WER
|
27 |
+
type: wer
|
28 |
+
value: 0.11763625454589981
|
29 |
+
- name: Test CER
|
30 |
+
type: cer
|
31 |
+
value: 0.02884228669922436
|
32 |
+
- task:
|
33 |
+
name: Automatic Speech Recognition
|
34 |
+
type: automatic-speech-recognition
|
35 |
+
dataset:
|
36 |
+
name: Robust Speech Event - Dev Data
|
37 |
+
type: speech-recognition-community-v2/dev_data
|
38 |
+
args: kmr
|
39 |
+
metrics:
|
40 |
+
- name: Test WER
|
41 |
+
type: wer
|
42 |
+
value: 0.11763625454589981
|
43 |
+
- name: Test CER
|
44 |
+
type: cer
|
45 |
+
value: 0.02884228669922436
|
46 |
+
---
|
47 |
+
|
48 |
+
# Akashpb13/xlsr_hungarian_new
|
49 |
+
|
50 |
+
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_7_0 - hu dataset.
|
51 |
+
It achieves the following results on the evaluation set (which is 10 percent of train data set merged with dev datasets):
|
52 |
+
- Loss: 0.159032
|
53 |
+
- Wer: 0.187934
|
54 |
+
## Model description
|
55 |
+
"facebook/wav2vec2-xls-r-300m" was finetuned.
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
More information needed
|
59 |
+
## Training and evaluation data
|
60 |
+
Training data -
|
61 |
+
Common voice Hausa train.tsv and dev.tsv
|
62 |
+
Only those points were considered where upvotes were greater than downvotes and duplicates were removed after concatenation of all the datasets given in common voice 7.0
|
63 |
+
|
64 |
+
## Training procedure
|
65 |
+
For creating the training dataset, all possible datasets were appended and 90-10 split was used.
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
|
71 |
+
- learning_rate: 0.000096
|
72 |
+
- train_batch_size: 16
|
73 |
+
- eval_batch_size: 16
|
74 |
+
- seed: 13
|
75 |
+
- gradient_accumulation_steps: 2
|
76 |
+
- lr_scheduler_type: cosine_with_restarts
|
77 |
+
- lr_scheduler_warmup_steps: 500
|
78 |
+
- num_epochs: 80
|
79 |
+
- mixed_precision_training: Native AMP
|
80 |
+
|
81 |
+
|
82 |
+
### Training results
|
83 |
+
|
84 |
+
| Step | Training Loss | Validation Loss | Wer |
|
85 |
+
|------|---------------|-----------------|----------|
|
86 |
+
| 500 | 4.810000 | 2.168847 | 0.995747 |
|
87 |
+
| 1000 | 0.564200 | 0.209411 | 0.303485 |
|
88 |
+
| 1500 | 0.217700 | 0.153959 | 0.239534 |
|
89 |
+
| 2000 | 0.150700 | 0.139901 | 0.216327 |
|
90 |
+
| 2500 | 0.119400 | 0.137543 | 0.208828 |
|
91 |
+
| 3000 | 0.099500 | 0.140921 | 0.203045 |
|
92 |
+
| 3500 | 0.087100 | 0.138835 | 0.199649 |
|
93 |
+
| 4000 | 0.074600 | 0.141297 | 0.195844 |
|
94 |
+
| 4500 | 0.066600 | 0.148560 | 0.194127 |
|
95 |
+
| 5000 | 0.060400 | 0.151214 | 0.194388 |
|
96 |
+
| 5500 | 0.054400 | 0.156072 | 0.192187 |
|
97 |
+
| 6000 | 0.051100 | 0.154726 | 0.190322 |
|
98 |
+
| 6500 | 0.048200 | 0.159847 | 0.189538 |
|
99 |
+
| 7000 | 0.046400 | 0.158727 | 0.188307 |
|
100 |
+
| 7500 | 0.046500 | 0.159032 | 0.187934 |
|
101 |
+
|
102 |
+
|
103 |
+
### Framework versions
|
104 |
+
- Transformers 4.16.0.dev0
|
105 |
+
- Pytorch 1.10.0+cu102
|
106 |
+
- Datasets 1.17.1.dev0
|
107 |
+
- Tokenizers 0.10.3
|
108 |
+
|
109 |
+
#### Evaluation Commands
|
110 |
+
|
111 |
+
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
|
112 |
+
|
113 |
+
```bash
|
114 |
+
python eval.py --model_id Akashpb13/Swahili_xlsr --dataset mozilla-foundation/common_voice_8_0 --config sw --split test
|
115 |
+
```
|
116 |
+
|