Gizachew commited on
Commit
216e609
1 Parent(s): 9457af0

End of training

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/wav2vec2-base-960h
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: wev2vec-base960-agu-amharic
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # wev2vec-base960-agu-amharic
17
+
18
+ This model is a fine-tuned version of [facebook/wav2vec2-base-960h](https://huggingface.co/facebook/wav2vec2-base-960h) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.3714
21
+ - Accuracy: 0.9327
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 1e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 5
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
53
+ | 0.8682 | 0.6649 | 500 | 0.7632 | 0.7564 |
54
+ | 0.4482 | 1.3298 | 1000 | 0.3501 | 0.9103 |
55
+ | 0.2724 | 1.9947 | 1500 | 0.3117 | 0.9230 |
56
+ | 0.2269 | 2.6596 | 2000 | 0.3456 | 0.9268 |
57
+ | 0.1663 | 3.3245 | 2500 | 0.3743 | 0.9275 |
58
+ | 0.1737 | 3.9894 | 3000 | 0.3714 | 0.9327 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.41.2
64
+ - Pytorch 2.1.2
65
+ - Datasets 2.19.2
66
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.9893617021276597,
3
+ "total_flos": 1.8714792090048768e+18,
4
+ "train_loss": 0.4606133778889974,
5
+ "train_runtime": 3208.6756,
6
+ "train_samples": 12018,
7
+ "train_samples_per_second": 18.727,
8
+ "train_steps_per_second": 1.172
9
+ }
config.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-base-960h",
3
+ "activation_dropout": 0.1,
4
+ "adapter_attn_dim": null,
5
+ "adapter_kernel_size": 3,
6
+ "adapter_stride": 2,
7
+ "add_adapter": false,
8
+ "apply_spec_augment": true,
9
+ "architectures": [
10
+ "Wav2Vec2ForSpeechClassification"
11
+ ],
12
+ "attention_dropout": 0.1,
13
+ "bos_token_id": 1,
14
+ "classifier_proj_size": 256,
15
+ "codevector_dim": 256,
16
+ "contrastive_logits_temperature": 0.1,
17
+ "conv_bias": false,
18
+ "conv_dim": [
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512,
25
+ 512
26
+ ],
27
+ "conv_kernel": [
28
+ 10,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 3,
33
+ 2,
34
+ 2
35
+ ],
36
+ "conv_stride": [
37
+ 5,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2,
43
+ 2
44
+ ],
45
+ "ctc_loss_reduction": "sum",
46
+ "ctc_zero_infinity": false,
47
+ "diversity_loss_weight": 0.1,
48
+ "do_stable_layer_norm": false,
49
+ "eos_token_id": 2,
50
+ "feat_extract_activation": "gelu",
51
+ "feat_extract_dropout": 0.0,
52
+ "feat_extract_norm": "group",
53
+ "feat_proj_dropout": 0.1,
54
+ "feat_quantizer_dropout": 0.0,
55
+ "final_dropout": 0.1,
56
+ "finetuning_task": "wev2vec_clf",
57
+ "gradient_checkpointing": false,
58
+ "hidden_act": "gelu",
59
+ "hidden_dropout": 0.1,
60
+ "hidden_dropout_prob": 0.1,
61
+ "hidden_size": 768,
62
+ "id2label": {
63
+ "0": "01Neutral",
64
+ "1": "02Fearful",
65
+ "2": "03Happy",
66
+ "3": "04Sad",
67
+ "4": "05Angry"
68
+ },
69
+ "initializer_range": 0.02,
70
+ "intermediate_size": 3072,
71
+ "label2id": {
72
+ "01Neutral": 0,
73
+ "02Fearful": 1,
74
+ "03Happy": 2,
75
+ "04Sad": 3,
76
+ "05Angry": 4
77
+ },
78
+ "layer_norm_eps": 1e-05,
79
+ "layerdrop": 0.1,
80
+ "mask_feature_length": 10,
81
+ "mask_feature_min_masks": 0,
82
+ "mask_feature_prob": 0.0,
83
+ "mask_time_length": 10,
84
+ "mask_time_min_masks": 2,
85
+ "mask_time_prob": 0.05,
86
+ "model_type": "wav2vec2",
87
+ "num_adapter_layers": 3,
88
+ "num_attention_heads": 12,
89
+ "num_codevector_groups": 2,
90
+ "num_codevectors_per_group": 320,
91
+ "num_conv_pos_embedding_groups": 16,
92
+ "num_conv_pos_embeddings": 128,
93
+ "num_feat_extract_layers": 7,
94
+ "num_hidden_layers": 12,
95
+ "num_negatives": 100,
96
+ "output_hidden_size": 768,
97
+ "pad_token_id": 0,
98
+ "pooling_mode": "mean",
99
+ "problem_type": "single_label_classification",
100
+ "proj_codevector_dim": 256,
101
+ "tdnn_dilation": [
102
+ 1,
103
+ 2,
104
+ 3,
105
+ 1,
106
+ 1
107
+ ],
108
+ "tdnn_dim": [
109
+ 512,
110
+ 512,
111
+ 512,
112
+ 512,
113
+ 1500
114
+ ],
115
+ "tdnn_kernel": [
116
+ 5,
117
+ 3,
118
+ 3,
119
+ 1,
120
+ 1
121
+ ],
122
+ "torch_dtype": "float32",
123
+ "transformers_version": "4.41.2",
124
+ "use_weighted_layer_sum": false,
125
+ "vocab_size": 32,
126
+ "xvector_output_dim": 512
127
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41422e8410c9d2b64952a10920aab693aaa8d19ca52f038fc64a2e050afadaeb
3
+ size 379890660
preprocessor_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "return_attention_mask": false,
8
+ "sampling_rate": 16000
9
+ }
runs/Jun16_00-34-30_fe4c73520495/events.out.tfevents.1718498071.fe4c73520495.34.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc4f99d6c98d17e69461b28db811615b7586e7e0d272c9e8cfd9b85f41567e79
3
+ size 15254
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.9893617021276597,
3
+ "total_flos": 1.8714792090048768e+18,
4
+ "train_loss": 0.4606133778889974,
5
+ "train_runtime": 3208.6756,
6
+ "train_samples": 12018,
7
+ "train_samples_per_second": 18.727,
8
+ "train_steps_per_second": 1.172
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.311672180891037,
3
+ "best_model_checkpoint": "/kaggle/working/wev2vec-base960-agu-amharic/checkpoint-1500",
4
+ "epoch": 3.9893617021276597,
5
+ "eval_steps": 500,
6
+ "global_step": 3000,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.13297872340425532,
13
+ "grad_norm": 2.105905532836914,
14
+ "learning_rate": 9.73404255319149e-06,
15
+ "loss": 1.6043,
16
+ "step": 100
17
+ },
18
+ {
19
+ "epoch": 0.26595744680851063,
20
+ "grad_norm": 4.957370281219482,
21
+ "learning_rate": 9.46808510638298e-06,
22
+ "loss": 1.4442,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 0.39893617021276595,
27
+ "grad_norm": 4.0505690574646,
28
+ "learning_rate": 9.204787234042554e-06,
29
+ "loss": 1.2199,
30
+ "step": 300
31
+ },
32
+ {
33
+ "epoch": 0.5319148936170213,
34
+ "grad_norm": 3.2562971115112305,
35
+ "learning_rate": 8.941489361702127e-06,
36
+ "loss": 1.0649,
37
+ "step": 400
38
+ },
39
+ {
40
+ "epoch": 0.6648936170212766,
41
+ "grad_norm": 3.3451857566833496,
42
+ "learning_rate": 8.675531914893619e-06,
43
+ "loss": 0.8682,
44
+ "step": 500
45
+ },
46
+ {
47
+ "epoch": 0.6648936170212766,
48
+ "eval_accuracy": 0.7563527822494507,
49
+ "eval_loss": 0.7632076144218445,
50
+ "eval_runtime": 59.9292,
51
+ "eval_samples_per_second": 22.326,
52
+ "eval_steps_per_second": 2.803,
53
+ "step": 500
54
+ },
55
+ {
56
+ "epoch": 0.7978723404255319,
57
+ "grad_norm": 7.531016826629639,
58
+ "learning_rate": 8.409574468085107e-06,
59
+ "loss": 0.7386,
60
+ "step": 600
61
+ },
62
+ {
63
+ "epoch": 0.9308510638297872,
64
+ "grad_norm": 14.800432205200195,
65
+ "learning_rate": 8.143617021276596e-06,
66
+ "loss": 0.6506,
67
+ "step": 700
68
+ },
69
+ {
70
+ "epoch": 1.0638297872340425,
71
+ "grad_norm": 18.182409286499023,
72
+ "learning_rate": 7.877659574468086e-06,
73
+ "loss": 0.5668,
74
+ "step": 800
75
+ },
76
+ {
77
+ "epoch": 1.196808510638298,
78
+ "grad_norm": 11.308631896972656,
79
+ "learning_rate": 7.6117021276595745e-06,
80
+ "loss": 0.4825,
81
+ "step": 900
82
+ },
83
+ {
84
+ "epoch": 1.3297872340425532,
85
+ "grad_norm": 3.6028597354888916,
86
+ "learning_rate": 7.348404255319149e-06,
87
+ "loss": 0.4482,
88
+ "step": 1000
89
+ },
90
+ {
91
+ "epoch": 1.3297872340425532,
92
+ "eval_accuracy": 0.9103139042854309,
93
+ "eval_loss": 0.35010650753974915,
94
+ "eval_runtime": 60.1508,
95
+ "eval_samples_per_second": 22.244,
96
+ "eval_steps_per_second": 2.793,
97
+ "step": 1000
98
+ },
99
+ {
100
+ "epoch": 1.4627659574468086,
101
+ "grad_norm": 13.081503868103027,
102
+ "learning_rate": 7.0824468085106394e-06,
103
+ "loss": 0.3877,
104
+ "step": 1100
105
+ },
106
+ {
107
+ "epoch": 1.5957446808510638,
108
+ "grad_norm": 0.6290038228034973,
109
+ "learning_rate": 6.816489361702127e-06,
110
+ "loss": 0.3846,
111
+ "step": 1200
112
+ },
113
+ {
114
+ "epoch": 1.728723404255319,
115
+ "grad_norm": 5.16023063659668,
116
+ "learning_rate": 6.550531914893618e-06,
117
+ "loss": 0.3553,
118
+ "step": 1300
119
+ },
120
+ {
121
+ "epoch": 1.8617021276595744,
122
+ "grad_norm": 1.3795862197875977,
123
+ "learning_rate": 6.284574468085107e-06,
124
+ "loss": 0.3397,
125
+ "step": 1400
126
+ },
127
+ {
128
+ "epoch": 1.9946808510638299,
129
+ "grad_norm": 17.843442916870117,
130
+ "learning_rate": 6.018617021276596e-06,
131
+ "loss": 0.2724,
132
+ "step": 1500
133
+ },
134
+ {
135
+ "epoch": 1.9946808510638299,
136
+ "eval_accuracy": 0.9230194091796875,
137
+ "eval_loss": 0.311672180891037,
138
+ "eval_runtime": 60.1853,
139
+ "eval_samples_per_second": 22.231,
140
+ "eval_steps_per_second": 2.791,
141
+ "step": 1500
142
+ },
143
+ {
144
+ "epoch": 2.127659574468085,
145
+ "grad_norm": 0.7912893295288086,
146
+ "learning_rate": 5.755319148936171e-06,
147
+ "loss": 0.228,
148
+ "step": 1600
149
+ },
150
+ {
151
+ "epoch": 2.2606382978723403,
152
+ "grad_norm": 14.161015510559082,
153
+ "learning_rate": 5.48936170212766e-06,
154
+ "loss": 0.2633,
155
+ "step": 1700
156
+ },
157
+ {
158
+ "epoch": 2.393617021276596,
159
+ "grad_norm": 12.629347801208496,
160
+ "learning_rate": 5.223404255319149e-06,
161
+ "loss": 0.2218,
162
+ "step": 1800
163
+ },
164
+ {
165
+ "epoch": 2.526595744680851,
166
+ "grad_norm": 2.9135618209838867,
167
+ "learning_rate": 4.957446808510639e-06,
168
+ "loss": 0.2379,
169
+ "step": 1900
170
+ },
171
+ {
172
+ "epoch": 2.6595744680851063,
173
+ "grad_norm": 14.890237808227539,
174
+ "learning_rate": 4.691489361702128e-06,
175
+ "loss": 0.2269,
176
+ "step": 2000
177
+ },
178
+ {
179
+ "epoch": 2.6595744680851063,
180
+ "eval_accuracy": 0.9267563819885254,
181
+ "eval_loss": 0.34563255310058594,
182
+ "eval_runtime": 60.1272,
183
+ "eval_samples_per_second": 22.253,
184
+ "eval_steps_per_second": 2.794,
185
+ "step": 2000
186
+ },
187
+ {
188
+ "epoch": 2.7925531914893615,
189
+ "grad_norm": 11.785533905029297,
190
+ "learning_rate": 4.425531914893617e-06,
191
+ "loss": 0.2319,
192
+ "step": 2100
193
+ },
194
+ {
195
+ "epoch": 2.925531914893617,
196
+ "grad_norm": 12.325530052185059,
197
+ "learning_rate": 4.1595744680851066e-06,
198
+ "loss": 0.1945,
199
+ "step": 2200
200
+ },
201
+ {
202
+ "epoch": 3.0585106382978724,
203
+ "grad_norm": 27.31170082092285,
204
+ "learning_rate": 3.893617021276596e-06,
205
+ "loss": 0.1832,
206
+ "step": 2300
207
+ },
208
+ {
209
+ "epoch": 3.1914893617021276,
210
+ "grad_norm": 21.935894012451172,
211
+ "learning_rate": 3.6276595744680853e-06,
212
+ "loss": 0.1982,
213
+ "step": 2400
214
+ },
215
+ {
216
+ "epoch": 3.324468085106383,
217
+ "grad_norm": 3.217214822769165,
218
+ "learning_rate": 3.3617021276595745e-06,
219
+ "loss": 0.1663,
220
+ "step": 2500
221
+ },
222
+ {
223
+ "epoch": 3.324468085106383,
224
+ "eval_accuracy": 0.927503764629364,
225
+ "eval_loss": 0.37431710958480835,
226
+ "eval_runtime": 60.1697,
227
+ "eval_samples_per_second": 22.237,
228
+ "eval_steps_per_second": 2.792,
229
+ "step": 2500
230
+ },
231
+ {
232
+ "epoch": 3.4574468085106385,
233
+ "grad_norm": 0.2889520823955536,
234
+ "learning_rate": 3.0957446808510637e-06,
235
+ "loss": 0.1712,
236
+ "step": 2600
237
+ },
238
+ {
239
+ "epoch": 3.5904255319148937,
240
+ "grad_norm": 19.394306182861328,
241
+ "learning_rate": 2.8297872340425537e-06,
242
+ "loss": 0.1615,
243
+ "step": 2700
244
+ },
245
+ {
246
+ "epoch": 3.723404255319149,
247
+ "grad_norm": 0.08302600681781769,
248
+ "learning_rate": 2.563829787234043e-06,
249
+ "loss": 0.1709,
250
+ "step": 2800
251
+ },
252
+ {
253
+ "epoch": 3.8563829787234045,
254
+ "grad_norm": 59.50064468383789,
255
+ "learning_rate": 2.297872340425532e-06,
256
+ "loss": 0.1614,
257
+ "step": 2900
258
+ },
259
+ {
260
+ "epoch": 3.9893617021276597,
261
+ "grad_norm": 1.0584908723831177,
262
+ "learning_rate": 2.0319148936170213e-06,
263
+ "loss": 0.1737,
264
+ "step": 3000
265
+ },
266
+ {
267
+ "epoch": 3.9893617021276597,
268
+ "eval_accuracy": 0.9327354431152344,
269
+ "eval_loss": 0.37135931849479675,
270
+ "eval_runtime": 60.1293,
271
+ "eval_samples_per_second": 22.252,
272
+ "eval_steps_per_second": 2.794,
273
+ "step": 3000
274
+ },
275
+ {
276
+ "epoch": 3.9893617021276597,
277
+ "step": 3000,
278
+ "total_flos": 1.8714792090048768e+18,
279
+ "train_loss": 0.4606133778889974,
280
+ "train_runtime": 3208.6756,
281
+ "train_samples_per_second": 18.727,
282
+ "train_steps_per_second": 1.172
283
+ }
284
+ ],
285
+ "logging_steps": 100,
286
+ "max_steps": 3760,
287
+ "num_input_tokens_seen": 0,
288
+ "num_train_epochs": 5,
289
+ "save_steps": 500,
290
+ "stateful_callbacks": {
291
+ "EarlyStoppingCallback": {
292
+ "args": {
293
+ "early_stopping_patience": 3,
294
+ "early_stopping_threshold": 0.0
295
+ },
296
+ "attributes": {
297
+ "early_stopping_patience_counter": 0
298
+ }
299
+ },
300
+ "TrainerControl": {
301
+ "args": {
302
+ "should_epoch_stop": false,
303
+ "should_evaluate": false,
304
+ "should_log": false,
305
+ "should_save": true,
306
+ "should_training_stop": true
307
+ },
308
+ "attributes": {}
309
+ }
310
+ },
311
+ "total_flos": 1.8714792090048768e+18,
312
+ "train_batch_size": 16,
313
+ "trial_name": null,
314
+ "trial_params": null
315
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3487aa43d6a24fa74a7358af0d2cbfe77fe90af510209361d1fcef69a0628240
3
+ size 5176