update model card README.md
Browse files- README.md +81 -0
- fine-tune-whisper-streaming.ipynb +40 -6
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- hi
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- whisper-event
|
7 |
+
- generated_from_trainer
|
8 |
+
datasets:
|
9 |
+
- mozilla-foundation/common_voice_11_0
|
10 |
+
metrics:
|
11 |
+
- wer
|
12 |
+
model-index:
|
13 |
+
- name: Whisper Large V2 finetuned Hindi
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Automatic Speech Recognition
|
17 |
+
type: automatic-speech-recognition
|
18 |
+
dataset:
|
19 |
+
name: common_voice_11_0
|
20 |
+
type: mozilla-foundation/common_voice_11_0
|
21 |
+
config: hi
|
22 |
+
split: test
|
23 |
+
args: hi
|
24 |
+
metrics:
|
25 |
+
- name: Wer
|
26 |
+
type: wer
|
27 |
+
value: 10.72246131306657
|
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 Large V2 finetuned Hindi
|
34 |
+
|
35 |
+
This model is a fine-tuned version of [openai/whisper-large-v2](https://huggingface.co/openai/whisper-large-v2) on the common_voice_11_0 dataset.
|
36 |
+
It achieves the following results on the evaluation set:
|
37 |
+
- Loss: 0.2043
|
38 |
+
- Wer: 10.7225
|
39 |
+
|
40 |
+
## Model description
|
41 |
+
|
42 |
+
More information needed
|
43 |
+
|
44 |
+
## Intended uses & limitations
|
45 |
+
|
46 |
+
More information needed
|
47 |
+
|
48 |
+
## Training and evaluation data
|
49 |
+
|
50 |
+
More information needed
|
51 |
+
|
52 |
+
## Training procedure
|
53 |
+
|
54 |
+
### Training hyperparameters
|
55 |
+
|
56 |
+
The following hyperparameters were used during training:
|
57 |
+
- learning_rate: 1e-05
|
58 |
+
- train_batch_size: 8
|
59 |
+
- eval_batch_size: 8
|
60 |
+
- seed: 42
|
61 |
+
- gradient_accumulation_steps: 2
|
62 |
+
- total_train_batch_size: 16
|
63 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
64 |
+
- lr_scheduler_type: linear
|
65 |
+
- lr_scheduler_warmup_steps: 100
|
66 |
+
- training_steps: 1000
|
67 |
+
- mixed_precision_training: Native AMP
|
68 |
+
|
69 |
+
### Training results
|
70 |
+
|
71 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
72 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|
|
73 |
+
| 0.0153 | 3.18 | 1000 | 0.2043 | 10.7225 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.26.0.dev0
|
79 |
+
- Pytorch 1.13.0+cu117
|
80 |
+
- Datasets 2.7.1.dev0
|
81 |
+
- Tokenizers 0.13.2
|
fine-tune-whisper-streaming.ipynb
CHANGED
@@ -847,7 +847,7 @@
|
|
847 |
},
|
848 |
{
|
849 |
"cell_type": "code",
|
850 |
-
"execution_count":
|
851 |
"id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
|
852 |
"metadata": {},
|
853 |
"outputs": [
|
@@ -876,8 +876,8 @@
|
|
876 |
"\n",
|
877 |
" <div>\n",
|
878 |
" \n",
|
879 |
-
" <progress value='
|
880 |
-
" [1000/1000
|
881 |
" </div>\n",
|
882 |
" <table border=\"1\" class=\"dataframe\">\n",
|
883 |
" <thead>\n",
|
@@ -930,8 +930,24 @@
|
|
930 |
"Feature extractor saved in ./preprocessor_config.json\n",
|
931 |
"tokenizer config file saved in ./tokenizer_config.json\n",
|
932 |
"Special tokens file saved in ./special_tokens_map.json\n",
|
933 |
-
"added tokens file saved in ./added_tokens.json\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
934 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
}
|
936 |
],
|
937 |
"source": [
|
@@ -960,7 +976,7 @@
|
|
960 |
},
|
961 |
{
|
962 |
"cell_type": "code",
|
963 |
-
"execution_count":
|
964 |
"id": "6dd0e310-9b07-4133-ac14-2ed2d7524e22",
|
965 |
"metadata": {},
|
966 |
"outputs": [],
|
@@ -989,7 +1005,25 @@
|
|
989 |
"execution_count": null,
|
990 |
"id": "95737cda-c5dd-4887-a4d0-dfcb0d61d977",
|
991 |
"metadata": {},
|
992 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
993 |
"source": [
|
994 |
"trainer.push_to_hub(**kwargs)"
|
995 |
]
|
|
|
847 |
},
|
848 |
{
|
849 |
"cell_type": "code",
|
850 |
+
"execution_count": 22,
|
851 |
"id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
|
852 |
"metadata": {},
|
853 |
"outputs": [
|
|
|
876 |
"\n",
|
877 |
" <div>\n",
|
878 |
" \n",
|
879 |
+
" <progress value='1000' max='1000' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
|
880 |
+
" [1000/1000 3:39:09, Epoch 3/9223372036854775807]\n",
|
881 |
" </div>\n",
|
882 |
" <table border=\"1\" class=\"dataframe\">\n",
|
883 |
" <thead>\n",
|
|
|
930 |
"Feature extractor saved in ./preprocessor_config.json\n",
|
931 |
"tokenizer config file saved in ./tokenizer_config.json\n",
|
932 |
"Special tokens file saved in ./special_tokens_map.json\n",
|
933 |
+
"added tokens file saved in ./added_tokens.json\n",
|
934 |
+
"\n",
|
935 |
+
"\n",
|
936 |
+
"Training completed. Do not forget to share your model on huggingface.co/models =)\n",
|
937 |
+
"\n",
|
938 |
+
"\n",
|
939 |
+
"Loading best model from ./checkpoint-1000 (score: 10.72246131306657).\n"
|
940 |
]
|
941 |
+
},
|
942 |
+
{
|
943 |
+
"data": {
|
944 |
+
"text/plain": [
|
945 |
+
"TrainOutput(global_step=1000, training_loss=0.1300066763870418, metrics={'train_runtime': 13241.0402, 'train_samples_per_second': 1.208, 'train_steps_per_second': 0.076, 'total_flos': 3.40089534111744e+19, 'train_loss': 0.1300066763870418, 'epoch': 3.18})"
|
946 |
+
]
|
947 |
+
},
|
948 |
+
"execution_count": 22,
|
949 |
+
"metadata": {},
|
950 |
+
"output_type": "execute_result"
|
951 |
}
|
952 |
],
|
953 |
"source": [
|
|
|
976 |
},
|
977 |
{
|
978 |
"cell_type": "code",
|
979 |
+
"execution_count": 23,
|
980 |
"id": "6dd0e310-9b07-4133-ac14-2ed2d7524e22",
|
981 |
"metadata": {},
|
982 |
"outputs": [],
|
|
|
1005 |
"execution_count": null,
|
1006 |
"id": "95737cda-c5dd-4887-a4d0-dfcb0d61d977",
|
1007 |
"metadata": {},
|
1008 |
+
"outputs": [
|
1009 |
+
{
|
1010 |
+
"name": "stderr",
|
1011 |
+
"output_type": "stream",
|
1012 |
+
"text": [
|
1013 |
+
"Saving model checkpoint to ./\n",
|
1014 |
+
"Configuration saved in ./config.json\n",
|
1015 |
+
"Model weights saved in ./pytorch_model.bin\n",
|
1016 |
+
"Feature extractor saved in ./preprocessor_config.json\n",
|
1017 |
+
"tokenizer config file saved in ./tokenizer_config.json\n",
|
1018 |
+
"Special tokens file saved in ./special_tokens_map.json\n",
|
1019 |
+
"added tokens file saved in ./added_tokens.json\n",
|
1020 |
+
"Several commits (2) will be pushed upstream.\n",
|
1021 |
+
"The progress bars may be unreliable.\n",
|
1022 |
+
"Upload file pytorch_model.bin: 0%| | 1.00/5.75G [00:00<?, ?B/s]\n",
|
1023 |
+
"Upload file pytorch_model.bin: 81%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | 4.66G/5.75G [00:47<00:11, 106MB/s]\u001b[A"
|
1024 |
+
]
|
1025 |
+
}
|
1026 |
+
],
|
1027 |
"source": [
|
1028 |
"trainer.push_to_hub(**kwargs)"
|
1029 |
]
|