abdouaziiz commited on
Commit
e3753fa
1 Parent(s): ff66efc

Upload 6 files

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - audio-classification
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - f1
10
+ model-index:
11
+ - name: wav2vec2-base
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # wav2vec2-base
19
+
20
+ This model is a fine-tuned version of [facebook/wav2vec2-base](https://huggingface.co/facebook/wav2vec2-base) on the galsenai/waxal_dataset dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.7504
23
+ - Accuracy: 0.8632
24
+ - Precision: 0.9380
25
+ - F1: 0.8954
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 3e-05
45
+ - train_batch_size: 30
46
+ - eval_batch_size: 30
47
+ - seed: 0
48
+ - gradient_accumulation_steps: 4
49
+ - total_train_batch_size: 120
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_ratio: 0.1
53
+ - num_epochs: 32.0
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | F1 |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|
59
+ | 4.3647 | 2.53 | 500 | 4.8202 | 0.0117 | 0.0134 | 0.0032 |
60
+ | 2.6202 | 5.05 | 1000 | 4.2238 | 0.0625 | 0.0781 | 0.0355 |
61
+ | 1.38 | 7.58 | 1500 | 3.6392 | 0.2941 | 0.5211 | 0.3174 |
62
+ | 0.8601 | 10.1 | 2000 | 2.7953 | 0.4907 | 0.7446 | 0.5657 |
63
+ | 0.5645 | 12.63 | 2500 | 1.9829 | 0.6862 | 0.8363 | 0.7421 |
64
+ | 0.4009 | 15.15 | 3000 | 1.4535 | 0.7635 | 0.9000 | 0.8174 |
65
+ | 0.3054 | 17.68 | 3500 | 1.1426 | 0.7882 | 0.9058 | 0.8298 |
66
+ | 0.2448 | 20.2 | 4000 | 0.9860 | 0.8189 | 0.9206 | 0.8593 |
67
+ | 0.2116 | 22.73 | 4500 | 0.8820 | 0.8325 | 0.9261 | 0.8711 |
68
+ | 0.1863 | 25.25 | 5000 | 0.8191 | 0.8465 | 0.9366 | 0.8848 |
69
+ | 0.1701 | 27.78 | 5500 | 0.7504 | 0.8632 | 0.9380 | 0.8954 |
70
+ | 0.1558 | 30.3 | 6000 | 0.7665 | 0.8609 | 0.9398 | 0.8956 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.27.0.dev0
76
+ - Pytorch 1.11.0+cu113
77
+ - Datasets 2.9.1.dev0
78
+ - Tokenizers 0.13.2
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 32.0,
3
+ "eval_accuracy": 0.8632057597574839,
4
+ "eval_f1": 0.8953598709937869,
5
+ "eval_loss": 0.7504324913024902,
6
+ "eval_precision": 0.9379743242290526,
7
+ "eval_runtime": 101.1391,
8
+ "eval_samples_per_second": 26.093,
9
+ "eval_steps_per_second": 0.87,
10
+ "train_loss": 0.9127645113251426,
11
+ "train_runtime": 39385.6266,
12
+ "train_samples_per_second": 19.295,
13
+ "train_steps_per_second": 0.161
14
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 32.0,
3
+ "eval_accuracy": 0.8632057597574839,
4
+ "eval_f1": 0.8953598709937869,
5
+ "eval_loss": 0.7504324913024902,
6
+ "eval_precision": 0.9379743242290526,
7
+ "eval_runtime": 101.1391,
8
+ "eval_samples_per_second": 26.093,
9
+ "eval_steps_per_second": 0.87
10
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 32.0,
3
+ "train_loss": 0.9127645113251426,
4
+ "train_runtime": 39385.6266,
5
+ "train_samples_per_second": 19.295,
6
+ "train_steps_per_second": 0.161
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8632057597574839,
3
+ "best_model_checkpoint": "wav2vec2-base/checkpoint-5500",
4
+ "epoch": 32.0,
5
+ "global_step": 6336,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 2.53,
12
+ "learning_rate": 2.3659305993690853e-05,
13
+ "loss": 4.3647,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 2.53,
18
+ "eval_accuracy": 0.011746873815839333,
19
+ "eval_f1": 0.0031732207431106035,
20
+ "eval_loss": 4.820202350616455,
21
+ "eval_precision": 0.013376466669245454,
22
+ "eval_runtime": 109.2278,
23
+ "eval_samples_per_second": 24.161,
24
+ "eval_steps_per_second": 0.806,
25
+ "step": 500
26
+ },
27
+ {
28
+ "epoch": 5.05,
29
+ "learning_rate": 2.8074359873728517e-05,
30
+ "loss": 2.6202,
31
+ "step": 1000
32
+ },
33
+ {
34
+ "epoch": 5.05,
35
+ "eval_accuracy": 0.06252368321333839,
36
+ "eval_f1": 0.035540285078168796,
37
+ "eval_loss": 4.223803520202637,
38
+ "eval_precision": 0.07806791077535753,
39
+ "eval_runtime": 106.4124,
40
+ "eval_samples_per_second": 24.8,
41
+ "eval_steps_per_second": 0.827,
42
+ "step": 1000
43
+ },
44
+ {
45
+ "epoch": 7.58,
46
+ "learning_rate": 2.5443703963521573e-05,
47
+ "loss": 1.38,
48
+ "step": 1500
49
+ },
50
+ {
51
+ "epoch": 7.58,
52
+ "eval_accuracy": 0.2940507768093975,
53
+ "eval_f1": 0.31740258677108446,
54
+ "eval_loss": 3.6391522884368896,
55
+ "eval_precision": 0.5210640247794917,
56
+ "eval_runtime": 107.4509,
57
+ "eval_samples_per_second": 24.56,
58
+ "eval_steps_per_second": 0.819,
59
+ "step": 1500
60
+ },
61
+ {
62
+ "epoch": 10.1,
63
+ "learning_rate": 2.2813048053314627e-05,
64
+ "loss": 0.8601,
65
+ "step": 2000
66
+ },
67
+ {
68
+ "epoch": 10.1,
69
+ "eval_accuracy": 0.4907161803713528,
70
+ "eval_f1": 0.5656528274556744,
71
+ "eval_loss": 2.7952940464019775,
72
+ "eval_precision": 0.7446099073666071,
73
+ "eval_runtime": 108.5624,
74
+ "eval_samples_per_second": 24.309,
75
+ "eval_steps_per_second": 0.811,
76
+ "step": 2000
77
+ },
78
+ {
79
+ "epoch": 12.63,
80
+ "learning_rate": 2.0182392143107683e-05,
81
+ "loss": 0.5645,
82
+ "step": 2500
83
+ },
84
+ {
85
+ "epoch": 12.63,
86
+ "eval_accuracy": 0.6862447896930656,
87
+ "eval_f1": 0.7421301241460049,
88
+ "eval_loss": 1.9828652143478394,
89
+ "eval_precision": 0.836316121433408,
90
+ "eval_runtime": 101.2702,
91
+ "eval_samples_per_second": 26.059,
92
+ "eval_steps_per_second": 0.869,
93
+ "step": 2500
94
+ },
95
+ {
96
+ "epoch": 15.15,
97
+ "learning_rate": 1.7551736232900737e-05,
98
+ "loss": 0.4009,
99
+ "step": 3000
100
+ },
101
+ {
102
+ "epoch": 15.15,
103
+ "eval_accuracy": 0.7635467980295566,
104
+ "eval_f1": 0.8174024577222706,
105
+ "eval_loss": 1.453549861907959,
106
+ "eval_precision": 0.9000157931943787,
107
+ "eval_runtime": 107.7592,
108
+ "eval_samples_per_second": 24.49,
109
+ "eval_steps_per_second": 0.817,
110
+ "step": 3000
111
+ },
112
+ {
113
+ "epoch": 17.68,
114
+ "learning_rate": 1.4921080322693792e-05,
115
+ "loss": 0.3054,
116
+ "step": 3500
117
+ },
118
+ {
119
+ "epoch": 17.68,
120
+ "eval_accuracy": 0.7881773399014779,
121
+ "eval_f1": 0.8297806830083403,
122
+ "eval_loss": 1.1425673961639404,
123
+ "eval_precision": 0.905752007054303,
124
+ "eval_runtime": 106.3252,
125
+ "eval_samples_per_second": 24.82,
126
+ "eval_steps_per_second": 0.828,
127
+ "step": 3500
128
+ },
129
+ {
130
+ "epoch": 20.2,
131
+ "learning_rate": 1.2290424412486847e-05,
132
+ "loss": 0.2448,
133
+ "step": 4000
134
+ },
135
+ {
136
+ "epoch": 20.2,
137
+ "eval_accuracy": 0.8188707843880257,
138
+ "eval_f1": 0.8593023386044745,
139
+ "eval_loss": 0.9859854578971863,
140
+ "eval_precision": 0.9206175798530246,
141
+ "eval_runtime": 107.5476,
142
+ "eval_samples_per_second": 24.538,
143
+ "eval_steps_per_second": 0.818,
144
+ "step": 4000
145
+ },
146
+ {
147
+ "epoch": 22.73,
148
+ "learning_rate": 9.659768502279902e-06,
149
+ "loss": 0.2116,
150
+ "step": 4500
151
+ },
152
+ {
153
+ "epoch": 22.73,
154
+ "eval_accuracy": 0.8325123152709359,
155
+ "eval_f1": 0.8711410752519451,
156
+ "eval_loss": 0.8820037841796875,
157
+ "eval_precision": 0.9261488248866633,
158
+ "eval_runtime": 107.1712,
159
+ "eval_samples_per_second": 24.624,
160
+ "eval_steps_per_second": 0.821,
161
+ "step": 4500
162
+ },
163
+ {
164
+ "epoch": 25.25,
165
+ "learning_rate": 7.029112592072957e-06,
166
+ "loss": 0.1863,
167
+ "step": 5000
168
+ },
169
+ {
170
+ "epoch": 25.25,
171
+ "eval_accuracy": 0.8465327775672603,
172
+ "eval_f1": 0.8848136570821419,
173
+ "eval_loss": 0.8190948367118835,
174
+ "eval_precision": 0.9366165612791744,
175
+ "eval_runtime": 101.4217,
176
+ "eval_samples_per_second": 26.02,
177
+ "eval_steps_per_second": 0.868,
178
+ "step": 5000
179
+ },
180
+ {
181
+ "epoch": 27.78,
182
+ "learning_rate": 4.398456681866012e-06,
183
+ "loss": 0.1701,
184
+ "step": 5500
185
+ },
186
+ {
187
+ "epoch": 27.78,
188
+ "eval_accuracy": 0.8632057597574839,
189
+ "eval_f1": 0.8953598709937869,
190
+ "eval_loss": 0.7504324913024902,
191
+ "eval_precision": 0.9379743242290526,
192
+ "eval_runtime": 106.5347,
193
+ "eval_samples_per_second": 24.771,
194
+ "eval_steps_per_second": 0.826,
195
+ "step": 5500
196
+ },
197
+ {
198
+ "epoch": 30.3,
199
+ "learning_rate": 1.767800771659067e-06,
200
+ "loss": 0.1558,
201
+ "step": 6000
202
+ },
203
+ {
204
+ "epoch": 30.3,
205
+ "eval_accuracy": 0.8609321712769988,
206
+ "eval_f1": 0.8955970854963186,
207
+ "eval_loss": 0.7665356993675232,
208
+ "eval_precision": 0.9398430168070748,
209
+ "eval_runtime": 106.7434,
210
+ "eval_samples_per_second": 24.723,
211
+ "eval_steps_per_second": 0.824,
212
+ "step": 6000
213
+ },
214
+ {
215
+ "epoch": 32.0,
216
+ "step": 6336,
217
+ "total_flos": 3.804433776973221e+19,
218
+ "train_loss": 0.9127645113251426,
219
+ "train_runtime": 39385.6266,
220
+ "train_samples_per_second": 19.295,
221
+ "train_steps_per_second": 0.161
222
+ }
223
+ ],
224
+ "max_steps": 6336,
225
+ "num_train_epochs": 32,
226
+ "total_flos": 3.804433776973221e+19,
227
+ "trial_name": null,
228
+ "trial_params": null
229
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:749657517aeb2dad9dcddd9525416d7352d8c24d5d4f9b9c87e67bc96d23380c
3
+ size 3503