Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ha
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- automatic-speech-recognition
|
| 7 |
+
- mozilla-foundation/common_voice_8_0
|
| 8 |
+
- generated_from_trainer
|
| 9 |
+
- ha
|
| 10 |
+
- robust-speech-event
|
| 11 |
+
- model_for_talk
|
| 12 |
+
datasets:
|
| 13 |
+
- mozilla-foundation/common_voice_8_0
|
| 14 |
+
|
| 15 |
+
model-index:
|
| 16 |
+
- name: Akashpb13/Hausa_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: kmr
|
| 25 |
+
metrics:
|
| 26 |
+
- name: Test WER
|
| 27 |
+
type: wer
|
| 28 |
+
value: 0.21177149451817656
|
| 29 |
+
- name: Test CER
|
| 30 |
+
type: cer
|
| 31 |
+
value: 0.04472733528298641
|
| 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.21177149451817656
|
| 43 |
+
- name: Test CER
|
| 44 |
+
type: cer
|
| 45 |
+
value: 0.04472733528298641
|
| 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 invalidated data, reported, other, and dev datasets):
|
| 52 |
+
- Loss: 0.275118
|
| 53 |
+
- Wer: 0.329955
|
| 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, dev.tsv, invalidated.tsv, reported.tsv, other.tsv and validated.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: 50
|
| 79 |
+
- mixed_precision_training: Native AMP
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### Training results
|
| 83 |
+
|
| 84 |
+
| Step | Training Loss | Validation Loss | Wer |
|
| 85 |
+
|------|---------------|-----------------|----------|
|
| 86 |
+
| 500 | 5.176500 | 2.776366 | 1.000000 |
|
| 87 |
+
| 1000 | 1.166500 | 0.329668 | 0.482262 |
|
| 88 |
+
| 1500 | 0.334500 | 0.245564 | 0.391304 |
|
| 89 |
+
| 2000 | 0.226300 | 0.241998 | 0.381168 |
|
| 90 |
+
| 2500 | 0.174600 | 0.227778 | 0.356895 |
|
| 91 |
+
| 3000 | 0.141700 | 0.237551 | 0.343292 |
|
| 92 |
+
| 3500 | 0.117600 | 0.259884 | 0.348626 |
|
| 93 |
+
| 4000 | 0.097800 | 0.261468 | 0.343825 |
|
| 94 |
+
| 4500 | 0.083500 | 0.268763 | 0.332889 |
|
| 95 |
+
| 5000 | 0.074500 | 0.276381 | 0.332622 |
|
| 96 |
+
| 5500 | 0.067700 | 0.275504 | 0.328354 |
|
| 97 |
+
| 6000 | 0.064500 | 0.274393 | 0.331288 |
|
| 98 |
+
| 6500 | 0.061400 | 0.275118 | 0.329955 |
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
### Framework versions
|
| 103 |
+
- Transformers 4.16.0.dev0
|
| 104 |
+
- Pytorch 1.10.0+cu102
|
| 105 |
+
- Datasets 1.17.1.dev0
|
| 106 |
+
- Tokenizers 0.10.3
|
| 107 |
+
|
| 108 |
+
#### Evaluation Commands
|
| 109 |
+
|
| 110 |
+
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
|
| 111 |
+
|
| 112 |
+
```bash
|
| 113 |
+
python eval.py --model_id Akashpb13/Hausa_xlsr --dataset mozilla-foundation/common_voice_8_0 --config ha --split test
|
| 114 |
+
```
|
| 115 |
+
|