Ashegh-Sad-Warrior
commited on
Commit
•
3b32d4d
1
Parent(s):
51abac4
Update README.md
Browse files
README.md
CHANGED
@@ -1,79 +1,103 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- fa
|
4 |
-
license: apache-2.0
|
5 |
-
base_model: openai/whisper-large-v3
|
6 |
-
tags:
|
7 |
-
- generated_from_trainer
|
8 |
-
datasets:
|
9 |
-
- mozilla-foundation-common-voice-17-0
|
10 |
-
metrics:
|
11 |
-
- wer
|
12 |
-
model-index:
|
13 |
-
- name: Whisper LargeV3 Persian - Persian ASR
|
14 |
-
results:
|
15 |
-
- task:
|
16 |
-
name: Automatic Speech Recognition
|
17 |
-
type: automatic-speech-recognition
|
18 |
-
dataset:
|
19 |
-
name: common-voice-17-0
|
20 |
-
type: mozilla-foundation-common-voice-17-0
|
21 |
-
config: default
|
22 |
-
split: test[:10%]
|
23 |
-
args: 'config: Persian, split: train[:10%]+validation[:10%]'
|
24 |
-
metrics:
|
25 |
-
- name: Wer
|
26 |
-
type: wer
|
27 |
-
value: 38.94514767932489
|
28 |
-
---
|
29 |
-
|
30 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
31 |
-
should probably proofread and complete it, then remove this comment. -->
|
32 |
-
|
33 |
-
# Whisper LargeV3 Persian - Persian ASR
|
34 |
-
|
35 |
-
This model is a fine-tuned version of [openai/whisper-large-v3](https://huggingface.co/openai/whisper-large-v3)
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- fa
|
4 |
+
license: apache-2.0
|
5 |
+
base_model: openai/whisper-large-v3
|
6 |
+
tags:
|
7 |
+
- generated_from_trainer
|
8 |
+
datasets:
|
9 |
+
- mozilla-foundation-common-voice-17-0
|
10 |
+
metrics:
|
11 |
+
- wer
|
12 |
+
model-index:
|
13 |
+
- name: Whisper LargeV3 Persian - Persian ASR
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Automatic Speech Recognition
|
17 |
+
type: automatic-speech-recognition
|
18 |
+
dataset:
|
19 |
+
name: common-voice-17-0
|
20 |
+
type: mozilla-foundation-common-voice-17-0
|
21 |
+
config: default
|
22 |
+
split: test[:10%]
|
23 |
+
args: 'config: Persian, split: train[:10%]+validation[:10%]'
|
24 |
+
metrics:
|
25 |
+
- name: Wer
|
26 |
+
type: wer
|
27 |
+
value: 38.94514767932489
|
28 |
+
---
|
29 |
+
|
30 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
31 |
+
should probably proofread and complete it, then remove this comment. -->
|
32 |
+
|
33 |
+
# Whisper LargeV3 Persian - Persian ASR
|
34 |
+
|
35 |
+
This model is a fine-tuned version of [openai/whisper-large-v3](https://huggingface.co/openai/whisper-large-v3)on the Common Voice 17.0 dataset in Persian.
|
36 |
+
The model has been trained for Automatic Speech Recognition (ASR) and is capable of converting spoken Persian into text.
|
37 |
+
The following sections provide more details on its performance, intended uses, training data, and the procedure followed during training.
|
38 |
+
It achieves the following results on the evaluation set:
|
39 |
+
- Loss: 0.4072
|
40 |
+
- Wer: 38.9451
|
41 |
+
|
42 |
+
## Model description
|
43 |
+
|
44 |
+
This model leverages the Whisper architecture, known for its effectiveness in multilingual ASR tasks.
|
45 |
+
Whisper models are trained on a large corpus of multilingual and multitask supervised data,
|
46 |
+
enabling them to generalize well across different languages, including low-resource languages like Persian.
|
47 |
+
This fine-tuned model is specifically adapted for Persian, improving its accuracy on Persian speech recognition tasks.
|
48 |
+
|
49 |
+
## Intended uses & limitations
|
50 |
+
|
51 |
+
This model is designed for speech-to-text tasks in the Persian language. It can be used for applications like transcription of audio files, voice-controlled systems,
|
52 |
+
and any task requiring accurate conversion of spoken Persian into text. However, the model may have limitations when dealing with noisy audio environments,
|
53 |
+
diverse accents, or highly technical vocabulary not present in the training data.
|
54 |
+
It's recommended to fine-tune the model further if your use case involves specialized language or contexts.
|
55 |
+
|
56 |
+
## Training and evaluation data
|
57 |
+
|
58 |
+
The model was fine-tuned using the Common Voice 17.0 dataset, which is a crowd-sourced dataset containing diverse voices in Persian.
|
59 |
+
The dataset was split into training, validation, and test sets. The training set includes a variety of speakers, ages, and accents,
|
60 |
+
making the model robust across different dialects of Persian. The test split used for evaluation represents approximately 10% of the total data, ensuring a reliable assessment of the model's performance.
|
61 |
+
|
62 |
+
## Training procedure
|
63 |
+
|
64 |
+
### Training hyperparameters
|
65 |
+
|
66 |
+
The following hyperparameters were used during training:
|
67 |
+
- learning_rate: 1e-05
|
68 |
+
- train_batch_size: 4
|
69 |
+
- eval_batch_size: 4
|
70 |
+
- seed: 42
|
71 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08,which helps in maintaining stability during training.
|
72 |
+
- lr_scheduler_type: linear
|
73 |
+
- lr_scheduler_warmup_steps: 500
|
74 |
+
- num_epochs: 1 ,meaning the model was trained over the entire dataset once.
|
75 |
+
- mixed_precision_training: Native AMP, which allows for faster training by using lower precision without significant loss in accuracy.
|
76 |
+
|
77 |
+
### Training results
|
78 |
+
|
79 |
+
During training, the model achieved the following results:
|
80 |
+
|
81 |
+
- Training Loss: 0.2083 at the end of 1 epoch.
|
82 |
+
- Validation Loss: 0.4072, showing how well the model generalizes to unseen data.
|
83 |
+
- Word Error Rate (WER): 38.9451, indicating the percentage of words incorrectly predicted during the ASR task on the validation set.
|
84 |
+
|
85 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
86 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|
|
87 |
+
| 0.2083 | 1.0 | 987 | 0.4072 | 38.9451 |
|
88 |
+
|
89 |
+
These results highlight the model's ability to perform well on the given dataset, though there may be room for further optimization and fine-tuning.
|
90 |
+
|
91 |
+
### Framework versions
|
92 |
+
|
93 |
+
The model was trained using the following versions of libraries:
|
94 |
+
|
95 |
+
- Transformers: 4.44.0, which provides the necessary tools and APIs to fine-tune transformer models like Whisper.
|
96 |
+
- Pytorch: 2.4.0+cu121, the deep learning framework used to build and train the model.
|
97 |
+
- Datasets: 2.21.0, which facilitated the loading and preprocessing of the Common Voice dataset.
|
98 |
+
- Tokenizers: 0.19, used for efficiently handling text tokenization required by the model.
|
99 |
+
|
100 |
+
- Transformers 4.44.0
|
101 |
+
- Pytorch 2.4.0+cu121
|
102 |
+
- Datasets 2.21.0
|
103 |
+
- Tokenizers 0.19.1
|