MostafaKhidr commited on
Commit
d2ba3e5
1 Parent(s): c002e6c

End of training

Browse files
Files changed (2) hide show
  1. README.md +84 -0
  2. generation_config.json +307 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: openai/whisper-large-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - MohamedRashad/arabic-english-code-switching
9
+ metrics:
10
+ - wer
11
+ model-index:
12
+ - name: Whisper Large ArabicEnglish - Mostafa Khedr
13
+ results:
14
+ - task:
15
+ name: Automatic Speech Recognition
16
+ type: automatic-speech-recognition
17
+ dataset:
18
+ name: arabic-english-code-switching
19
+ type: MohamedRashad/arabic-english-code-switching
20
+ metrics:
21
+ - name: Wer
22
+ type: wer
23
+ value: 31.61836083760921
24
+ ---
25
+
26
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
27
+ should probably proofread and complete it, then remove this comment. -->
28
+
29
+ # Whisper Large ArabicEnglish - Mostafa Khedr
30
+
31
+ This model is a fine-tuned version of [openai/whisper-large-v2](https://huggingface.co/openai/whisper-large-v2) on the arabic-english-code-switching dataset.
32
+ It achieves the following results on the evaluation set:
33
+ - Loss: 0.7108
34
+ - Wer: 31.6184
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 1e-05
54
+ - train_batch_size: 8
55
+ - eval_batch_size: 16
56
+ - seed: 42
57
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
58
+ - lr_scheduler_type: linear
59
+ - lr_scheduler_warmup_steps: 500
60
+ - training_steps: 10000
61
+ - mixed_precision_training: Native AMP
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
66
+ |:-------------:|:------:|:-----:|:---------------:|:-------:|
67
+ | 0.558 | 0.6748 | 1000 | 0.5802 | 46.1378 |
68
+ | 0.3725 | 1.3495 | 2000 | 0.5258 | 43.1008 |
69
+ | 0.2131 | 2.0243 | 3000 | 0.5152 | 34.4890 |
70
+ | 0.204 | 2.6991 | 4000 | 0.5111 | 37.8727 |
71
+ | 0.1012 | 3.3738 | 5000 | 0.5475 | 34.1839 |
72
+ | 0.0593 | 4.0486 | 6000 | 0.5693 | 33.2686 |
73
+ | 0.0436 | 4.7233 | 7000 | 0.5895 | 33.0190 |
74
+ | 0.0189 | 5.3981 | 8000 | 0.6472 | 31.9235 |
75
+ | 0.0063 | 6.0729 | 9000 | 0.6850 | 32.2701 |
76
+ | 0.0046 | 6.7476 | 10000 | 0.7108 | 31.6184 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.46.3
82
+ - Pytorch 2.5.1+cu124
83
+ - Datasets 3.1.0
84
+ - Tokenizers 0.20.3
generation_config.json ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alignment_heads": [
3
+ [
4
+ 10,
5
+ 12
6
+ ],
7
+ [
8
+ 13,
9
+ 17
10
+ ],
11
+ [
12
+ 16,
13
+ 11
14
+ ],
15
+ [
16
+ 16,
17
+ 12
18
+ ],
19
+ [
20
+ 16,
21
+ 13
22
+ ],
23
+ [
24
+ 17,
25
+ 15
26
+ ],
27
+ [
28
+ 17,
29
+ 16
30
+ ],
31
+ [
32
+ 18,
33
+ 4
34
+ ],
35
+ [
36
+ 18,
37
+ 11
38
+ ],
39
+ [
40
+ 18,
41
+ 19
42
+ ],
43
+ [
44
+ 19,
45
+ 11
46
+ ],
47
+ [
48
+ 21,
49
+ 2
50
+ ],
51
+ [
52
+ 21,
53
+ 3
54
+ ],
55
+ [
56
+ 22,
57
+ 3
58
+ ],
59
+ [
60
+ 22,
61
+ 9
62
+ ],
63
+ [
64
+ 22,
65
+ 12
66
+ ],
67
+ [
68
+ 23,
69
+ 5
70
+ ],
71
+ [
72
+ 23,
73
+ 7
74
+ ],
75
+ [
76
+ 23,
77
+ 13
78
+ ],
79
+ [
80
+ 25,
81
+ 5
82
+ ],
83
+ [
84
+ 26,
85
+ 1
86
+ ],
87
+ [
88
+ 26,
89
+ 12
90
+ ],
91
+ [
92
+ 27,
93
+ 15
94
+ ]
95
+ ],
96
+ "begin_suppress_tokens": [
97
+ 220,
98
+ 50257
99
+ ],
100
+ "bos_token_id": 50257,
101
+ "decoder_start_token_id": 50258,
102
+ "eos_token_id": 50257,
103
+ "is_multilingual": true,
104
+ "lang_to_id": {
105
+ "<|af|>": 50327,
106
+ "<|am|>": 50334,
107
+ "<|ar|>": 50272,
108
+ "<|as|>": 50350,
109
+ "<|az|>": 50304,
110
+ "<|ba|>": 50355,
111
+ "<|be|>": 50330,
112
+ "<|bg|>": 50292,
113
+ "<|bn|>": 50302,
114
+ "<|bo|>": 50347,
115
+ "<|br|>": 50309,
116
+ "<|bs|>": 50315,
117
+ "<|ca|>": 50270,
118
+ "<|cs|>": 50283,
119
+ "<|cy|>": 50297,
120
+ "<|da|>": 50285,
121
+ "<|de|>": 50261,
122
+ "<|el|>": 50281,
123
+ "<|en|>": 50259,
124
+ "<|es|>": 50262,
125
+ "<|et|>": 50307,
126
+ "<|eu|>": 50310,
127
+ "<|fa|>": 50300,
128
+ "<|fi|>": 50277,
129
+ "<|fo|>": 50338,
130
+ "<|fr|>": 50265,
131
+ "<|gl|>": 50319,
132
+ "<|gu|>": 50333,
133
+ "<|haw|>": 50352,
134
+ "<|ha|>": 50354,
135
+ "<|he|>": 50279,
136
+ "<|hi|>": 50276,
137
+ "<|hr|>": 50291,
138
+ "<|ht|>": 50339,
139
+ "<|hu|>": 50286,
140
+ "<|hy|>": 50312,
141
+ "<|id|>": 50275,
142
+ "<|is|>": 50311,
143
+ "<|it|>": 50274,
144
+ "<|ja|>": 50266,
145
+ "<|jw|>": 50356,
146
+ "<|ka|>": 50329,
147
+ "<|kk|>": 50316,
148
+ "<|km|>": 50323,
149
+ "<|kn|>": 50306,
150
+ "<|ko|>": 50264,
151
+ "<|la|>": 50294,
152
+ "<|lb|>": 50345,
153
+ "<|ln|>": 50353,
154
+ "<|lo|>": 50336,
155
+ "<|lt|>": 50293,
156
+ "<|lv|>": 50301,
157
+ "<|mg|>": 50349,
158
+ "<|mi|>": 50295,
159
+ "<|mk|>": 50308,
160
+ "<|ml|>": 50296,
161
+ "<|mn|>": 50314,
162
+ "<|mr|>": 50320,
163
+ "<|ms|>": 50282,
164
+ "<|mt|>": 50343,
165
+ "<|my|>": 50346,
166
+ "<|ne|>": 50313,
167
+ "<|nl|>": 50271,
168
+ "<|nn|>": 50342,
169
+ "<|no|>": 50288,
170
+ "<|oc|>": 50328,
171
+ "<|pa|>": 50321,
172
+ "<|pl|>": 50269,
173
+ "<|ps|>": 50340,
174
+ "<|pt|>": 50267,
175
+ "<|ro|>": 50284,
176
+ "<|ru|>": 50263,
177
+ "<|sa|>": 50344,
178
+ "<|sd|>": 50332,
179
+ "<|si|>": 50322,
180
+ "<|sk|>": 50298,
181
+ "<|sl|>": 50305,
182
+ "<|sn|>": 50324,
183
+ "<|so|>": 50326,
184
+ "<|sq|>": 50317,
185
+ "<|sr|>": 50303,
186
+ "<|su|>": 50357,
187
+ "<|sv|>": 50273,
188
+ "<|sw|>": 50318,
189
+ "<|ta|>": 50287,
190
+ "<|te|>": 50299,
191
+ "<|tg|>": 50331,
192
+ "<|th|>": 50289,
193
+ "<|tk|>": 50341,
194
+ "<|tl|>": 50348,
195
+ "<|tr|>": 50268,
196
+ "<|tt|>": 50351,
197
+ "<|uk|>": 50280,
198
+ "<|ur|>": 50290,
199
+ "<|uz|>": 50337,
200
+ "<|vi|>": 50278,
201
+ "<|yi|>": 50335,
202
+ "<|yo|>": 50325,
203
+ "<|zh|>": 50260
204
+ },
205
+ "max_initial_timestamp_index": 50,
206
+ "max_length": 448,
207
+ "no_timestamps_token_id": 50363,
208
+ "pad_token_id": 50257,
209
+ "prev_sot_token_id": 50361,
210
+ "return_timestamps": false,
211
+ "suppress_tokens": [
212
+ 1,
213
+ 2,
214
+ 7,
215
+ 8,
216
+ 9,
217
+ 10,
218
+ 14,
219
+ 25,
220
+ 26,
221
+ 27,
222
+ 28,
223
+ 29,
224
+ 31,
225
+ 58,
226
+ 59,
227
+ 60,
228
+ 61,
229
+ 62,
230
+ 63,
231
+ 90,
232
+ 91,
233
+ 92,
234
+ 93,
235
+ 359,
236
+ 503,
237
+ 522,
238
+ 542,
239
+ 873,
240
+ 893,
241
+ 902,
242
+ 918,
243
+ 922,
244
+ 931,
245
+ 1350,
246
+ 1853,
247
+ 1982,
248
+ 2460,
249
+ 2627,
250
+ 3246,
251
+ 3253,
252
+ 3268,
253
+ 3536,
254
+ 3846,
255
+ 3961,
256
+ 4183,
257
+ 4667,
258
+ 6585,
259
+ 6647,
260
+ 7273,
261
+ 9061,
262
+ 9383,
263
+ 10428,
264
+ 10929,
265
+ 11938,
266
+ 12033,
267
+ 12331,
268
+ 12562,
269
+ 13793,
270
+ 14157,
271
+ 14635,
272
+ 15265,
273
+ 15618,
274
+ 16553,
275
+ 16604,
276
+ 18362,
277
+ 18956,
278
+ 20075,
279
+ 21675,
280
+ 22520,
281
+ 26130,
282
+ 26161,
283
+ 26435,
284
+ 28279,
285
+ 29464,
286
+ 31650,
287
+ 32302,
288
+ 32470,
289
+ 36865,
290
+ 42863,
291
+ 47425,
292
+ 49870,
293
+ 50254,
294
+ 50258,
295
+ 50358,
296
+ 50359,
297
+ 50360,
298
+ 50361,
299
+ 50362
300
+ ],
301
+ "task": "transcribe",
302
+ "task_to_id": {
303
+ "transcribe": 50359,
304
+ "translate": 50358
305
+ },
306
+ "transformers_version": "4.46.3"
307
+ }