jialicheng commited on
Commit
abc1ea2
1 Parent(s): 1cd4167

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: openai/whisper-base
4
+ tags:
5
+ - audio-classification
6
+ - generated_from_trainer
7
+ datasets:
8
+ - superb
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: superb_ks_42
13
+ results:
14
+ - task:
15
+ name: Audio Classification
16
+ type: audio-classification
17
+ dataset:
18
+ name: superb
19
+ type: superb
20
+ config: ks
21
+ split: validation
22
+ args: ks
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.9833774639599883
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # superb_ks_42
33
+
34
+ This model is a fine-tuned version of [openai/whisper-base](https://huggingface.co/openai/whisper-base) on the superb dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.1152
37
+ - Accuracy: 0.9834
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 5e-05
57
+ - train_batch_size: 32
58
+ - eval_batch_size: 4
59
+ - seed: 42
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - lr_scheduler_warmup_ratio: 0.1
63
+ - num_epochs: 10
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
69
+ | 0.6909 | 1.0 | 1597 | 0.1572 | 0.9651 |
70
+ | 0.0891 | 2.0 | 3194 | 0.1597 | 0.9660 |
71
+ | 0.0676 | 3.0 | 4791 | 0.1304 | 0.9719 |
72
+ | 0.0475 | 4.0 | 6388 | 0.0999 | 0.9796 |
73
+ | 0.0433 | 5.0 | 7985 | 0.1079 | 0.9798 |
74
+ | 0.0284 | 6.0 | 9582 | 0.1089 | 0.9803 |
75
+ | 0.0236 | 7.0 | 11179 | 0.1162 | 0.9819 |
76
+ | 0.0193 | 8.0 | 12776 | 0.1152 | 0.9834 |
77
+ | 0.0111 | 9.0 | 14373 | 0.1272 | 0.9821 |
78
+ | 0.0088 | 10.0 | 15970 | 0.1306 | 0.9826 |
79
+
80
+
81
+ ### Framework versions
82
+
83
+ - Transformers 4.40.1
84
+ - Pytorch 2.3.0+cu121
85
+ - Datasets 2.19.0
86
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9833774639599883,
4
+ "eval_loss": 0.1151697114109993,
5
+ "eval_runtime": 46.8398,
6
+ "eval_samples_per_second": 145.133,
7
+ "eval_steps_per_second": 0.576,
8
+ "test_accuracy": 0.9438493995456021,
9
+ "test_loss": 0.3403080701828003,
10
+ "test_runtime": 25.5856,
11
+ "test_samples_per_second": 120.42,
12
+ "test_steps_per_second": 0.508,
13
+ "total_flos": 1.46834375382144e+19,
14
+ "train_accuracy": 0.9970055192390496,
15
+ "train_loss": 0.010813809931278229,
16
+ "train_runtime": 278.2509,
17
+ "train_samples_per_second": 183.626,
18
+ "train_steps_per_second": 45.908
19
+ }
config.json ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai/whisper-base",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu",
5
+ "apply_spec_augment": false,
6
+ "architectures": [
7
+ "WhisperForAudioClassification"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "begin_suppress_tokens": [
11
+ 220,
12
+ 50257
13
+ ],
14
+ "bos_token_id": 50257,
15
+ "classifier_proj_size": 256,
16
+ "d_model": 512,
17
+ "decoder_attention_heads": 8,
18
+ "decoder_ffn_dim": 2048,
19
+ "decoder_layerdrop": 0.0,
20
+ "decoder_layers": 6,
21
+ "decoder_start_token_id": 50258,
22
+ "dropout": 0.0,
23
+ "encoder_attention_heads": 8,
24
+ "encoder_ffn_dim": 2048,
25
+ "encoder_layerdrop": 0.0,
26
+ "encoder_layers": 6,
27
+ "eos_token_id": 50257,
28
+ "finetuning_task": "audio-classification",
29
+ "forced_decoder_ids": [
30
+ [
31
+ 1,
32
+ 50259
33
+ ],
34
+ [
35
+ 2,
36
+ 50359
37
+ ],
38
+ [
39
+ 3,
40
+ 50363
41
+ ]
42
+ ],
43
+ "id2label": {
44
+ "0": "yes",
45
+ "1": "no",
46
+ "10": "_silence_",
47
+ "11": "_unknown_",
48
+ "2": "up",
49
+ "3": "down",
50
+ "4": "left",
51
+ "5": "right",
52
+ "6": "on",
53
+ "7": "off",
54
+ "8": "stop",
55
+ "9": "go"
56
+ },
57
+ "init_std": 0.02,
58
+ "is_encoder_decoder": true,
59
+ "label2id": {
60
+ "_silence_": "10",
61
+ "_unknown_": "11",
62
+ "down": "3",
63
+ "go": "9",
64
+ "left": "4",
65
+ "no": "1",
66
+ "off": "7",
67
+ "on": "6",
68
+ "right": "5",
69
+ "stop": "8",
70
+ "up": "2",
71
+ "yes": "0"
72
+ },
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
+ "max_length": 448,
80
+ "max_source_positions": 1500,
81
+ "max_target_positions": 448,
82
+ "median_filter_width": 7,
83
+ "model_type": "whisper",
84
+ "num_hidden_layers": 6,
85
+ "num_mel_bins": 80,
86
+ "pad_token_id": 50257,
87
+ "scale_embedding": false,
88
+ "suppress_tokens": [
89
+ 1,
90
+ 2,
91
+ 7,
92
+ 8,
93
+ 9,
94
+ 10,
95
+ 14,
96
+ 25,
97
+ 26,
98
+ 27,
99
+ 28,
100
+ 29,
101
+ 31,
102
+ 58,
103
+ 59,
104
+ 60,
105
+ 61,
106
+ 62,
107
+ 63,
108
+ 90,
109
+ 91,
110
+ 92,
111
+ 93,
112
+ 359,
113
+ 503,
114
+ 522,
115
+ 542,
116
+ 873,
117
+ 893,
118
+ 902,
119
+ 918,
120
+ 922,
121
+ 931,
122
+ 1350,
123
+ 1853,
124
+ 1982,
125
+ 2460,
126
+ 2627,
127
+ 3246,
128
+ 3253,
129
+ 3268,
130
+ 3536,
131
+ 3846,
132
+ 3961,
133
+ 4183,
134
+ 4667,
135
+ 6585,
136
+ 6647,
137
+ 7273,
138
+ 9061,
139
+ 9383,
140
+ 10428,
141
+ 10929,
142
+ 11938,
143
+ 12033,
144
+ 12331,
145
+ 12562,
146
+ 13793,
147
+ 14157,
148
+ 14635,
149
+ 15265,
150
+ 15618,
151
+ 16553,
152
+ 16604,
153
+ 18362,
154
+ 18956,
155
+ 20075,
156
+ 21675,
157
+ 22520,
158
+ 26130,
159
+ 26161,
160
+ 26435,
161
+ 28279,
162
+ 29464,
163
+ 31650,
164
+ 32302,
165
+ 32470,
166
+ 36865,
167
+ 42863,
168
+ 47425,
169
+ 49870,
170
+ 50254,
171
+ 50258,
172
+ 50358,
173
+ 50359,
174
+ 50360,
175
+ 50361,
176
+ 50362
177
+ ],
178
+ "torch_dtype": "float32",
179
+ "transformers_version": "4.40.1",
180
+ "use_cache": true,
181
+ "use_weighted_layer_sum": false,
182
+ "vocab_size": 51865
183
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9833774639599883,
4
+ "eval_loss": 0.1151697114109993,
5
+ "eval_runtime": 46.8398,
6
+ "eval_samples_per_second": 145.133,
7
+ "eval_steps_per_second": 0.576
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82a05dbe0abaf0deb1f6cb6e5376db9d2fcbe3771665d18758aad502a499cac1
3
+ size 82910552
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de9c15ac3533841dc2c2b84c6d148b10f4aa39ce476a32d3a87aeeaa25f65a1b
3
+ size 326432
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46f903091eef439d81c0b923d9c6b58b871d7213b7500677568790e29f430087
3
+ size 148016
pred_logit_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:126133da9b5d83948ff524916292359869abdd0d4abe7c7f7c467d317eeb9311
3
+ size 2452640
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "feature_extractor_type": "WhisperFeatureExtractor",
4
+ "feature_size": 80,
5
+ "hop_length": 160,
6
+ "n_fft": 400,
7
+ "n_samples": 480000,
8
+ "nb_max_frames": 3000,
9
+ "padding_side": "right",
10
+ "padding_value": 0.0,
11
+ "processor_class": "WhisperProcessor",
12
+ "return_attention_mask": false,
13
+ "sampling_rate": 16000
14
+ }
test_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "test_accuracy": 0.9438493995456021,
4
+ "test_loss": 0.3403080701828003,
5
+ "test_runtime": 25.5856,
6
+ "test_samples_per_second": 120.42,
7
+ "test_steps_per_second": 0.508
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "train_accuracy": 0.9970055192390496,
4
+ "train_loss": 0.010813809931278229,
5
+ "train_runtime": 278.2509,
6
+ "train_samples_per_second": 183.626,
7
+ "train_steps_per_second": 45.908
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9833774639599883,
3
+ "best_model_checkpoint": "audio/train/checkpoint/whisper-base/superb_ks_42/checkpoint-12776",
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 15970,
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.6261740763932373,
13
+ "grad_norm": 47.73924255371094,
14
+ "learning_rate": 3.1308703819661866e-05,
15
+ "loss": 0.6909,
16
+ "step": 1000
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.9651368049426302,
21
+ "eval_loss": 0.157243549823761,
22
+ "eval_runtime": 51.3965,
23
+ "eval_samples_per_second": 132.266,
24
+ "eval_steps_per_second": 0.525,
25
+ "step": 1597
26
+ },
27
+ {
28
+ "epoch": 1.2523481527864746,
29
+ "grad_norm": 0.04125841706991196,
30
+ "learning_rate": 4.859806581785292e-05,
31
+ "loss": 0.1133,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 1.878522229179712,
36
+ "grad_norm": 0.08289146423339844,
37
+ "learning_rate": 4.51193209490016e-05,
38
+ "loss": 0.0891,
39
+ "step": 3000
40
+ },
41
+ {
42
+ "epoch": 2.0,
43
+ "eval_accuracy": 0.9660194174757282,
44
+ "eval_loss": 0.1596662998199463,
45
+ "eval_runtime": 48.5884,
46
+ "eval_samples_per_second": 139.91,
47
+ "eval_steps_per_second": 0.556,
48
+ "step": 3194
49
+ },
50
+ {
51
+ "epoch": 2.504696305572949,
52
+ "grad_norm": 0.05116074159741402,
53
+ "learning_rate": 4.1640576080150286e-05,
54
+ "loss": 0.0676,
55
+ "step": 4000
56
+ },
57
+ {
58
+ "epoch": 3.0,
59
+ "eval_accuracy": 0.9719035010297146,
60
+ "eval_loss": 0.1304367631673813,
61
+ "eval_runtime": 49.7204,
62
+ "eval_samples_per_second": 136.724,
63
+ "eval_steps_per_second": 0.543,
64
+ "step": 4791
65
+ },
66
+ {
67
+ "epoch": 3.1308703819661865,
68
+ "grad_norm": 22.351160049438477,
69
+ "learning_rate": 3.8161831211298965e-05,
70
+ "loss": 0.0574,
71
+ "step": 5000
72
+ },
73
+ {
74
+ "epoch": 3.757044458359424,
75
+ "grad_norm": 2.8176746368408203,
76
+ "learning_rate": 3.468308634244764e-05,
77
+ "loss": 0.0475,
78
+ "step": 6000
79
+ },
80
+ {
81
+ "epoch": 4.0,
82
+ "eval_accuracy": 0.979552809649897,
83
+ "eval_loss": 0.09990404546260834,
84
+ "eval_runtime": 49.7998,
85
+ "eval_samples_per_second": 136.506,
86
+ "eval_steps_per_second": 0.542,
87
+ "step": 6388
88
+ },
89
+ {
90
+ "epoch": 4.383218534752661,
91
+ "grad_norm": 0.7865376472473145,
92
+ "learning_rate": 3.120434147359633e-05,
93
+ "loss": 0.0433,
94
+ "step": 7000
95
+ },
96
+ {
97
+ "epoch": 5.0,
98
+ "eval_accuracy": 0.9798470138275963,
99
+ "eval_loss": 0.10789525508880615,
100
+ "eval_runtime": 47.3761,
101
+ "eval_samples_per_second": 143.49,
102
+ "eval_steps_per_second": 0.57,
103
+ "step": 7985
104
+ },
105
+ {
106
+ "epoch": 5.009392611145898,
107
+ "grad_norm": 0.004570442717522383,
108
+ "learning_rate": 2.7725596604745007e-05,
109
+ "loss": 0.0392,
110
+ "step": 8000
111
+ },
112
+ {
113
+ "epoch": 5.635566687539136,
114
+ "grad_norm": 0.0032151760533452034,
115
+ "learning_rate": 2.4246851735893692e-05,
116
+ "loss": 0.0284,
117
+ "step": 9000
118
+ },
119
+ {
120
+ "epoch": 6.0,
121
+ "eval_accuracy": 0.9802883200941453,
122
+ "eval_loss": 0.10893493890762329,
123
+ "eval_runtime": 46.9434,
124
+ "eval_samples_per_second": 144.813,
125
+ "eval_steps_per_second": 0.575,
126
+ "step": 9582
127
+ },
128
+ {
129
+ "epoch": 6.261740763932373,
130
+ "grad_norm": 0.23338378965854645,
131
+ "learning_rate": 2.076810686704237e-05,
132
+ "loss": 0.0319,
133
+ "step": 10000
134
+ },
135
+ {
136
+ "epoch": 6.88791484032561,
137
+ "grad_norm": 0.0019194560591131449,
138
+ "learning_rate": 1.7289361998191053e-05,
139
+ "loss": 0.0236,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 7.0,
144
+ "eval_accuracy": 0.9819064430714917,
145
+ "eval_loss": 0.11618690937757492,
146
+ "eval_runtime": 47.0803,
147
+ "eval_samples_per_second": 144.391,
148
+ "eval_steps_per_second": 0.573,
149
+ "step": 11179
150
+ },
151
+ {
152
+ "epoch": 7.514088916718848,
153
+ "grad_norm": 0.0018724563997238874,
154
+ "learning_rate": 1.3810617129339735e-05,
155
+ "loss": 0.0193,
156
+ "step": 12000
157
+ },
158
+ {
159
+ "epoch": 8.0,
160
+ "eval_accuracy": 0.9833774639599883,
161
+ "eval_loss": 0.1151697114109993,
162
+ "eval_runtime": 47.0809,
163
+ "eval_samples_per_second": 144.39,
164
+ "eval_steps_per_second": 0.573,
165
+ "step": 12776
166
+ },
167
+ {
168
+ "epoch": 8.140262993112085,
169
+ "grad_norm": 0.00741382222622633,
170
+ "learning_rate": 1.0331872260488417e-05,
171
+ "loss": 0.0162,
172
+ "step": 13000
173
+ },
174
+ {
175
+ "epoch": 8.766437069505322,
176
+ "grad_norm": 0.004007210489362478,
177
+ "learning_rate": 6.853127391637097e-06,
178
+ "loss": 0.0111,
179
+ "step": 14000
180
+ },
181
+ {
182
+ "epoch": 9.0,
183
+ "eval_accuracy": 0.9820535451603413,
184
+ "eval_loss": 0.12724293768405914,
185
+ "eval_runtime": 46.9104,
186
+ "eval_samples_per_second": 144.915,
187
+ "eval_steps_per_second": 0.576,
188
+ "step": 14373
189
+ },
190
+ {
191
+ "epoch": 9.39261114589856,
192
+ "grad_norm": 0.0008135234820656478,
193
+ "learning_rate": 3.3743825227857787e-06,
194
+ "loss": 0.0088,
195
+ "step": 15000
196
+ },
197
+ {
198
+ "epoch": 10.0,
199
+ "eval_accuracy": 0.9826419535157399,
200
+ "eval_loss": 0.13061200082302094,
201
+ "eval_runtime": 46.6644,
202
+ "eval_samples_per_second": 145.678,
203
+ "eval_steps_per_second": 0.579,
204
+ "step": 15970
205
+ },
206
+ {
207
+ "epoch": 10.0,
208
+ "step": 15970,
209
+ "total_flos": 1.46834375382144e+19,
210
+ "train_loss": 0.08098915571261736,
211
+ "train_runtime": 8039.2826,
212
+ "train_samples_per_second": 63.555,
213
+ "train_steps_per_second": 1.986
214
+ }
215
+ ],
216
+ "logging_steps": 1000,
217
+ "max_steps": 15970,
218
+ "num_input_tokens_seen": 0,
219
+ "num_train_epochs": 10,
220
+ "save_steps": 500,
221
+ "total_flos": 1.46834375382144e+19,
222
+ "train_batch_size": 32,
223
+ "trial_name": null,
224
+ "trial_params": null
225
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11e5f5374413173fb4a1b7e42ba0060c3d5a0137bb62d4241906640eb26e1678
3
+ size 5112