Gizachew commited on
Commit
2725b97
·
verified ·
1 Parent(s): 767204f

End of training

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/hubert-base-ls960
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: hubert-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
+ # hubert-base960-agu-amharic
17
+
18
+ This model is a fine-tuned version of [facebook/hubert-base-ls960](https://huggingface.co/facebook/hubert-base-ls960) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.3496
21
+ - Accuracy: 0.9297
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.502 | 0.6649 | 500 | 0.4584 | 0.8707 |
54
+ | 0.3239 | 1.3298 | 1000 | 0.3637 | 0.9013 |
55
+ | 0.2329 | 1.9947 | 1500 | 0.3464 | 0.9148 |
56
+ | 0.1768 | 2.6596 | 2000 | 0.4056 | 0.9126 |
57
+ | 0.1315 | 3.3245 | 2500 | 0.3803 | 0.9163 |
58
+ | 0.1383 | 3.9894 | 3000 | 0.3496 | 0.9297 |
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.34261955579121905,
5
+ "train_runtime": 3211.0561,
6
+ "train_samples": 12018,
7
+ "train_samples_per_second": 18.713,
8
+ "train_steps_per_second": 1.171
9
+ }
config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/hubert-base-ls960",
3
+ "activation_dropout": 0.1,
4
+ "apply_spec_augment": true,
5
+ "architectures": [
6
+ "HubertForSpeechClassification"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 1,
10
+ "classifier_proj_size": 256,
11
+ "conv_bias": false,
12
+ "conv_dim": [
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512
20
+ ],
21
+ "conv_kernel": [
22
+ 10,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 3,
27
+ 2,
28
+ 2
29
+ ],
30
+ "conv_stride": [
31
+ 5,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2,
37
+ 2
38
+ ],
39
+ "ctc_loss_reduction": "sum",
40
+ "ctc_zero_infinity": false,
41
+ "do_stable_layer_norm": false,
42
+ "eos_token_id": 2,
43
+ "feat_extract_activation": "gelu",
44
+ "feat_extract_dropout": 0.0,
45
+ "feat_extract_norm": "group",
46
+ "feat_proj_dropout": 0.1,
47
+ "feat_proj_layer_norm": true,
48
+ "final_dropout": 0.1,
49
+ "finetuning_task": "hubert_clf",
50
+ "gradient_checkpointing": false,
51
+ "hidden_act": "gelu",
52
+ "hidden_dropout": 0.1,
53
+ "hidden_dropout_prob": 0.1,
54
+ "hidden_size": 768,
55
+ "id2label": {
56
+ "0": "01Neutral",
57
+ "1": "02Fearful",
58
+ "2": "03Happy",
59
+ "3": "04Sad",
60
+ "4": "05Angry"
61
+ },
62
+ "initializer_range": 0.02,
63
+ "intermediate_size": 3072,
64
+ "label2id": {
65
+ "01Neutral": 0,
66
+ "02Fearful": 1,
67
+ "03Happy": 2,
68
+ "04Sad": 3,
69
+ "05Angry": 4
70
+ },
71
+ "layer_norm_eps": 1e-05,
72
+ "layerdrop": 0.1,
73
+ "mask_feature_length": 10,
74
+ "mask_feature_min_masks": 0,
75
+ "mask_feature_prob": 0.0,
76
+ "mask_time_length": 10,
77
+ "mask_time_min_masks": 2,
78
+ "mask_time_prob": 0.05,
79
+ "model_type": "hubert",
80
+ "num_attention_heads": 12,
81
+ "num_conv_pos_embedding_groups": 16,
82
+ "num_conv_pos_embeddings": 128,
83
+ "num_feat_extract_layers": 7,
84
+ "num_hidden_layers": 12,
85
+ "pad_token_id": 0,
86
+ "pooling_mode": "mean",
87
+ "problem_type": "single_label_classification",
88
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
89
+ "torch_dtype": "float32",
90
+ "transformers_version": "4.41.2",
91
+ "use_weighted_layer_sum": false,
92
+ "vocab_size": 32
93
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c701b4386515d350e378a6b1ae65159e8e4816e3f88921da70d7c6aa3d06c486
3
+ size 379890236
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,
7
+ "return_attention_mask": false,
8
+ "sampling_rate": 16000
9
+ }
runs/Jun15_23-04-29_8b5aa78ceaf6/events.out.tfevents.1718492671.8b5aa78ceaf6.34.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:957df25689a640eeb3d74e6514c2f7e63b4298d295c8b144132990841f247ee9
3
+ size 14698
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.9893617021276597,
3
+ "total_flos": 1.8714792090048768e+18,
4
+ "train_loss": 0.34261955579121905,
5
+ "train_runtime": 3211.0561,
6
+ "train_samples": 12018,
7
+ "train_samples_per_second": 18.713,
8
+ "train_steps_per_second": 1.171
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.3463841676712036,
3
+ "best_model_checkpoint": "/kaggle/working/hubert-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": 3.2855160236358643,
14
+ "learning_rate": 9.73404255319149e-06,
15
+ "loss": 1.4894,
16
+ "step": 100
17
+ },
18
+ {
19
+ "epoch": 0.26595744680851063,
20
+ "grad_norm": 14.008848190307617,
21
+ "learning_rate": 9.470744680851066e-06,
22
+ "loss": 1.1355,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 0.39893617021276595,
27
+ "grad_norm": 5.032841205596924,
28
+ "learning_rate": 9.204787234042554e-06,
29
+ "loss": 0.7905,
30
+ "step": 300
31
+ },
32
+ {
33
+ "epoch": 0.5319148936170213,
34
+ "grad_norm": 6.931905746459961,
35
+ "learning_rate": 8.938829787234043e-06,
36
+ "loss": 0.6621,
37
+ "step": 400
38
+ },
39
+ {
40
+ "epoch": 0.6648936170212766,
41
+ "grad_norm": 5.367379188537598,
42
+ "learning_rate": 8.675531914893619e-06,
43
+ "loss": 0.502,
44
+ "step": 500
45
+ },
46
+ {
47
+ "epoch": 0.6648936170212766,
48
+ "eval_accuracy": 0.8707025647163391,
49
+ "eval_loss": 0.4583953320980072,
50
+ "eval_runtime": 60.5694,
51
+ "eval_samples_per_second": 22.09,
52
+ "eval_steps_per_second": 2.774,
53
+ "step": 500
54
+ },
55
+ {
56
+ "epoch": 0.7978723404255319,
57
+ "grad_norm": 11.638015747070312,
58
+ "learning_rate": 8.412234042553192e-06,
59
+ "loss": 0.4986,
60
+ "step": 600
61
+ },
62
+ {
63
+ "epoch": 0.9308510638297872,
64
+ "grad_norm": 21.74812126159668,
65
+ "learning_rate": 8.14627659574468e-06,
66
+ "loss": 0.4095,
67
+ "step": 700
68
+ },
69
+ {
70
+ "epoch": 1.0638297872340425,
71
+ "grad_norm": 13.848979949951172,
72
+ "learning_rate": 7.880319148936171e-06,
73
+ "loss": 0.3986,
74
+ "step": 800
75
+ },
76
+ {
77
+ "epoch": 1.196808510638298,
78
+ "grad_norm": 18.350629806518555,
79
+ "learning_rate": 7.61436170212766e-06,
80
+ "loss": 0.3427,
81
+ "step": 900
82
+ },
83
+ {
84
+ "epoch": 1.3297872340425532,
85
+ "grad_norm": 8.771578788757324,
86
+ "learning_rate": 7.348404255319149e-06,
87
+ "loss": 0.3239,
88
+ "step": 1000
89
+ },
90
+ {
91
+ "epoch": 1.3297872340425532,
92
+ "eval_accuracy": 0.9013453125953674,
93
+ "eval_loss": 0.3637482821941376,
94
+ "eval_runtime": 60.6579,
95
+ "eval_samples_per_second": 22.058,
96
+ "eval_steps_per_second": 2.77,
97
+ "step": 1000
98
+ },
99
+ {
100
+ "epoch": 1.4627659574468086,
101
+ "grad_norm": 20.235013961791992,
102
+ "learning_rate": 7.0824468085106394e-06,
103
+ "loss": 0.2807,
104
+ "step": 1100
105
+ },
106
+ {
107
+ "epoch": 1.5957446808510638,
108
+ "grad_norm": 2.6776235103607178,
109
+ "learning_rate": 6.816489361702127e-06,
110
+ "loss": 0.2626,
111
+ "step": 1200
112
+ },
113
+ {
114
+ "epoch": 1.728723404255319,
115
+ "grad_norm": 1.6725181341171265,
116
+ "learning_rate": 6.550531914893618e-06,
117
+ "loss": 0.2898,
118
+ "step": 1300
119
+ },
120
+ {
121
+ "epoch": 1.8617021276595744,
122
+ "grad_norm": 10.663431167602539,
123
+ "learning_rate": 6.284574468085107e-06,
124
+ "loss": 0.2627,
125
+ "step": 1400
126
+ },
127
+ {
128
+ "epoch": 1.9946808510638299,
129
+ "grad_norm": 34.09892654418945,
130
+ "learning_rate": 6.018617021276596e-06,
131
+ "loss": 0.2329,
132
+ "step": 1500
133
+ },
134
+ {
135
+ "epoch": 1.9946808510638299,
136
+ "eval_accuracy": 0.9147982001304626,
137
+ "eval_loss": 0.3463841676712036,
138
+ "eval_runtime": 60.4518,
139
+ "eval_samples_per_second": 22.133,
140
+ "eval_steps_per_second": 2.779,
141
+ "step": 1500
142
+ },
143
+ {
144
+ "epoch": 2.127659574468085,
145
+ "grad_norm": 0.13858869671821594,
146
+ "learning_rate": 5.752659574468086e-06,
147
+ "loss": 0.1826,
148
+ "step": 1600
149
+ },
150
+ {
151
+ "epoch": 2.2606382978723403,
152
+ "grad_norm": 12.44304084777832,
153
+ "learning_rate": 5.4867021276595745e-06,
154
+ "loss": 0.2282,
155
+ "step": 1700
156
+ },
157
+ {
158
+ "epoch": 2.393617021276596,
159
+ "grad_norm": 47.84838104248047,
160
+ "learning_rate": 5.220744680851064e-06,
161
+ "loss": 0.1477,
162
+ "step": 1800
163
+ },
164
+ {
165
+ "epoch": 2.526595744680851,
166
+ "grad_norm": 9.419229507446289,
167
+ "learning_rate": 4.954787234042554e-06,
168
+ "loss": 0.204,
169
+ "step": 1900
170
+ },
171
+ {
172
+ "epoch": 2.6595744680851063,
173
+ "grad_norm": 10.298186302185059,
174
+ "learning_rate": 4.6888297872340425e-06,
175
+ "loss": 0.1768,
176
+ "step": 2000
177
+ },
178
+ {
179
+ "epoch": 2.6595744680851063,
180
+ "eval_accuracy": 0.9125560522079468,
181
+ "eval_loss": 0.40557414293289185,
182
+ "eval_runtime": 60.529,
183
+ "eval_samples_per_second": 22.105,
184
+ "eval_steps_per_second": 2.776,
185
+ "step": 2000
186
+ },
187
+ {
188
+ "epoch": 2.7925531914893615,
189
+ "grad_norm": 8.407756805419922,
190
+ "learning_rate": 4.422872340425532e-06,
191
+ "loss": 0.1877,
192
+ "step": 2100
193
+ },
194
+ {
195
+ "epoch": 2.925531914893617,
196
+ "grad_norm": 0.09165091067552567,
197
+ "learning_rate": 4.156914893617022e-06,
198
+ "loss": 0.1581,
199
+ "step": 2200
200
+ },
201
+ {
202
+ "epoch": 3.0585106382978724,
203
+ "grad_norm": 17.642484664916992,
204
+ "learning_rate": 3.890957446808511e-06,
205
+ "loss": 0.1732,
206
+ "step": 2300
207
+ },
208
+ {
209
+ "epoch": 3.1914893617021276,
210
+ "grad_norm": 19.95751953125,
211
+ "learning_rate": 3.625e-06,
212
+ "loss": 0.1504,
213
+ "step": 2400
214
+ },
215
+ {
216
+ "epoch": 3.324468085106383,
217
+ "grad_norm": 0.0460813082754612,
218
+ "learning_rate": 3.3590425531914896e-06,
219
+ "loss": 0.1315,
220
+ "step": 2500
221
+ },
222
+ {
223
+ "epoch": 3.324468085106383,
224
+ "eval_accuracy": 0.9162929654121399,
225
+ "eval_loss": 0.38025063276290894,
226
+ "eval_runtime": 60.4863,
227
+ "eval_samples_per_second": 22.121,
228
+ "eval_steps_per_second": 2.777,
229
+ "step": 2500
230
+ },
231
+ {
232
+ "epoch": 3.4574468085106385,
233
+ "grad_norm": 0.5341168642044067,
234
+ "learning_rate": 3.0957446808510637e-06,
235
+ "loss": 0.1281,
236
+ "step": 2600
237
+ },
238
+ {
239
+ "epoch": 3.5904255319148937,
240
+ "grad_norm": 0.07712464034557343,
241
+ "learning_rate": 2.8297872340425537e-06,
242
+ "loss": 0.1329,
243
+ "step": 2700
244
+ },
245
+ {
246
+ "epoch": 3.723404255319149,
247
+ "grad_norm": 0.05446462705731392,
248
+ "learning_rate": 2.563829787234043e-06,
249
+ "loss": 0.137,
250
+ "step": 2800
251
+ },
252
+ {
253
+ "epoch": 3.8563829787234045,
254
+ "grad_norm": 84.07832336425781,
255
+ "learning_rate": 2.297872340425532e-06,
256
+ "loss": 0.1207,
257
+ "step": 2900
258
+ },
259
+ {
260
+ "epoch": 3.9893617021276597,
261
+ "grad_norm": 37.90822219848633,
262
+ "learning_rate": 2.0319148936170213e-06,
263
+ "loss": 0.1383,
264
+ "step": 3000
265
+ },
266
+ {
267
+ "epoch": 3.9893617021276597,
268
+ "eval_accuracy": 0.9297459125518799,
269
+ "eval_loss": 0.34964442253112793,
270
+ "eval_runtime": 60.8105,
271
+ "eval_samples_per_second": 22.003,
272
+ "eval_steps_per_second": 2.763,
273
+ "step": 3000
274
+ },
275
+ {
276
+ "epoch": 3.9893617021276597,
277
+ "step": 3000,
278
+ "total_flos": 1.8714792090048768e+18,
279
+ "train_loss": 0.34261955579121905,
280
+ "train_runtime": 3211.0561,
281
+ "train_samples_per_second": 18.713,
282
+ "train_steps_per_second": 1.171
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:9756dc229c0bf8c3e59f55a39d3df1ffcbf0389979c8dbcba83d90afeaf63d9c
3
+ size 5176