jialicheng commited on
Commit
3ce0d19
1 Parent(s): 65dad3a

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/hubert-xlarge-ll60k
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.9872021182700794
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 [facebook/hubert-xlarge-ll60k](https://huggingface.co/facebook/hubert-xlarge-ll60k) on the superb dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.0579
37
+ - Accuracy: 0.9872
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
+ | 1.5639 | 1.0 | 1597 | 0.1012 | 0.9794 |
70
+ | 0.205 | 2.0 | 3194 | 0.0720 | 0.9841 |
71
+ | 0.1774 | 3.0 | 4791 | 0.0664 | 0.9856 |
72
+ | 0.1549 | 4.0 | 6388 | 0.0621 | 0.9856 |
73
+ | 0.1416 | 5.0 | 7985 | 0.0620 | 0.9859 |
74
+ | 0.1328 | 6.0 | 9582 | 0.0614 | 0.9865 |
75
+ | 0.1159 | 7.0 | 11179 | 0.0615 | 0.9865 |
76
+ | 0.1211 | 8.0 | 12776 | 0.0579 | 0.9872 |
77
+ | 0.108 | 9.0 | 14373 | 0.0566 | 0.9863 |
78
+ | 0.1088 | 10.0 | 15970 | 0.0572 | 0.9869 |
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.9872021182700794,
4
+ "eval_loss": 0.057863999158144,
5
+ "eval_runtime": 34.232,
6
+ "eval_samples_per_second": 198.586,
7
+ "eval_steps_per_second": 0.789,
8
+ "test_accuracy": 0.8980850373255437,
9
+ "test_loss": 0.5234816074371338,
10
+ "test_runtime": 16.7699,
11
+ "test_samples_per_second": 183.722,
12
+ "test_steps_per_second": 0.775,
13
+ "total_flos": 4.722696547222273e+19,
14
+ "train_accuracy": 0.9925040122127843,
15
+ "train_loss": 0.03099818341434002,
16
+ "train_runtime": 461.453,
17
+ "train_samples_per_second": 110.724,
18
+ "train_steps_per_second": 27.682
19
+ }
config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/hubert-xlarge-ll60k",
3
+ "activation_dropout": 0.0,
4
+ "apply_spec_augment": true,
5
+ "architectures": [
6
+ "HubertForSequenceClassification"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 1,
10
+ "classifier_proj_size": 256,
11
+ "conv_bias": true,
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": true,
42
+ "eos_token_id": 2,
43
+ "feat_extract_activation": "gelu",
44
+ "feat_extract_dropout": 0.0,
45
+ "feat_extract_norm": "layer",
46
+ "feat_proj_dropout": 0.1,
47
+ "feat_proj_layer_norm": true,
48
+ "final_dropout": 0.0,
49
+ "finetuning_task": "audio-classification",
50
+ "gradient_checkpointing": false,
51
+ "hidden_act": "gelu",
52
+ "hidden_dropout": 0.1,
53
+ "hidden_size": 1280,
54
+ "id2label": {
55
+ "0": "yes",
56
+ "1": "no",
57
+ "10": "_silence_",
58
+ "11": "_unknown_",
59
+ "2": "up",
60
+ "3": "down",
61
+ "4": "left",
62
+ "5": "right",
63
+ "6": "on",
64
+ "7": "off",
65
+ "8": "stop",
66
+ "9": "go"
67
+ },
68
+ "initializer_range": 0.02,
69
+ "intermediate_size": 5120,
70
+ "label2id": {
71
+ "_silence_": "10",
72
+ "_unknown_": "11",
73
+ "down": "3",
74
+ "go": "9",
75
+ "left": "4",
76
+ "no": "1",
77
+ "off": "7",
78
+ "on": "6",
79
+ "right": "5",
80
+ "stop": "8",
81
+ "up": "2",
82
+ "yes": "0"
83
+ },
84
+ "layer_norm_eps": 1e-05,
85
+ "layerdrop": 0.1,
86
+ "mask_channel_length": 10,
87
+ "mask_channel_min_space": 1,
88
+ "mask_channel_other": 0.0,
89
+ "mask_channel_prob": 0.0,
90
+ "mask_channel_selection": "static",
91
+ "mask_feature_length": 10,
92
+ "mask_feature_min_masks": 0,
93
+ "mask_feature_prob": 0.0,
94
+ "mask_time_length": 10,
95
+ "mask_time_min_masks": 2,
96
+ "mask_time_min_space": 1,
97
+ "mask_time_other": 0.0,
98
+ "mask_time_prob": 0.075,
99
+ "mask_time_selection": "static",
100
+ "model_type": "hubert",
101
+ "num_attention_heads": 16,
102
+ "num_conv_pos_embedding_groups": 16,
103
+ "num_conv_pos_embeddings": 128,
104
+ "num_feat_extract_layers": 7,
105
+ "num_hidden_layers": 48,
106
+ "pad_token_id": 0,
107
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
108
+ "torch_dtype": "float32",
109
+ "transformers_version": "4.40.1",
110
+ "use_weighted_layer_sum": false,
111
+ "vocab_size": 32
112
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.9872021182700794,
4
+ "eval_loss": 0.057863999158144,
5
+ "eval_runtime": 34.232,
6
+ "eval_samples_per_second": 198.586,
7
+ "eval_steps_per_second": 0.789
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f2bc11bb0ef6d16449d224dc914cc834d3e8c73c64c915023349c2c379afe6b
3
+ size 3851413640
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:515d91afcfdd4ffaccd8dff308a92766c5f64db77ed38f90b4ba17fe9f66ae09
3
+ size 326432
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d3062802296c6afefef5c4e321e7a68cd3be760c2c228def7dfa921b6b9cd1d
3
+ size 148016
pred_logit_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3adaa2dea82eb143bea7578da601c7303fc71183d7b1dc5143e2a8285263064
3
+ size 2452640
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": true,
8
+ "sampling_rate": 16000
9
+ }
test_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "test_accuracy": 0.8980850373255437,
4
+ "test_loss": 0.5234816074371338,
5
+ "test_runtime": 16.7699,
6
+ "test_samples_per_second": 183.722,
7
+ "test_steps_per_second": 0.775
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "train_accuracy": 0.9925040122127843,
4
+ "train_loss": 0.03099818341434002,
5
+ "train_runtime": 461.453,
6
+ "train_samples_per_second": 110.724,
7
+ "train_steps_per_second": 27.682
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9872021182700794,
3
+ "best_model_checkpoint": "audio/train/checkpoint/hubert-xlarge/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": 4.316092491149902,
14
+ "learning_rate": 3.1308703819661866e-05,
15
+ "loss": 1.5639,
16
+ "step": 1000
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.9794057075610474,
21
+ "eval_loss": 0.10121691972017288,
22
+ "eval_runtime": 36.0525,
23
+ "eval_samples_per_second": 188.558,
24
+ "eval_steps_per_second": 0.749,
25
+ "step": 1597
26
+ },
27
+ {
28
+ "epoch": 1.2523481527864746,
29
+ "grad_norm": 1.4483940601348877,
30
+ "learning_rate": 4.859806581785292e-05,
31
+ "loss": 0.3591,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 1.878522229179712,
36
+ "grad_norm": 0.9219438433647156,
37
+ "learning_rate": 4.51193209490016e-05,
38
+ "loss": 0.205,
39
+ "step": 3000
40
+ },
41
+ {
42
+ "epoch": 2.0,
43
+ "eval_accuracy": 0.9841129744042365,
44
+ "eval_loss": 0.07202675193548203,
45
+ "eval_runtime": 35.6833,
46
+ "eval_samples_per_second": 190.509,
47
+ "eval_steps_per_second": 0.757,
48
+ "step": 3194
49
+ },
50
+ {
51
+ "epoch": 2.504696305572949,
52
+ "grad_norm": 1.6926661729812622,
53
+ "learning_rate": 4.1640576080150286e-05,
54
+ "loss": 0.1774,
55
+ "step": 4000
56
+ },
57
+ {
58
+ "epoch": 3.0,
59
+ "eval_accuracy": 0.9855839952927331,
60
+ "eval_loss": 0.06639665365219116,
61
+ "eval_runtime": 35.3875,
62
+ "eval_samples_per_second": 192.102,
63
+ "eval_steps_per_second": 0.763,
64
+ "step": 4791
65
+ },
66
+ {
67
+ "epoch": 3.1308703819661865,
68
+ "grad_norm": 1.2424182891845703,
69
+ "learning_rate": 3.8161831211298965e-05,
70
+ "loss": 0.159,
71
+ "step": 5000
72
+ },
73
+ {
74
+ "epoch": 3.757044458359424,
75
+ "grad_norm": 0.05382406339049339,
76
+ "learning_rate": 3.468308634244764e-05,
77
+ "loss": 0.1549,
78
+ "step": 6000
79
+ },
80
+ {
81
+ "epoch": 4.0,
82
+ "eval_accuracy": 0.9855839952927331,
83
+ "eval_loss": 0.06212027370929718,
84
+ "eval_runtime": 35.7277,
85
+ "eval_samples_per_second": 190.273,
86
+ "eval_steps_per_second": 0.756,
87
+ "step": 6388
88
+ },
89
+ {
90
+ "epoch": 4.383218534752661,
91
+ "grad_norm": 0.4753202199935913,
92
+ "learning_rate": 3.120434147359633e-05,
93
+ "loss": 0.1416,
94
+ "step": 7000
95
+ },
96
+ {
97
+ "epoch": 5.0,
98
+ "eval_accuracy": 0.9858781994704324,
99
+ "eval_loss": 0.06196163594722748,
100
+ "eval_runtime": 35.6118,
101
+ "eval_samples_per_second": 190.892,
102
+ "eval_steps_per_second": 0.758,
103
+ "step": 7985
104
+ },
105
+ {
106
+ "epoch": 5.009392611145898,
107
+ "grad_norm": 1.2926490306854248,
108
+ "learning_rate": 2.7725596604745007e-05,
109
+ "loss": 0.1378,
110
+ "step": 8000
111
+ },
112
+ {
113
+ "epoch": 5.635566687539136,
114
+ "grad_norm": 0.03198292478919029,
115
+ "learning_rate": 2.4246851735893692e-05,
116
+ "loss": 0.1328,
117
+ "step": 9000
118
+ },
119
+ {
120
+ "epoch": 6.0,
121
+ "eval_accuracy": 0.9864666078258312,
122
+ "eval_loss": 0.061353616416454315,
123
+ "eval_runtime": 35.411,
124
+ "eval_samples_per_second": 191.974,
125
+ "eval_steps_per_second": 0.762,
126
+ "step": 9582
127
+ },
128
+ {
129
+ "epoch": 6.261740763932373,
130
+ "grad_norm": 1.4529321193695068,
131
+ "learning_rate": 2.076810686704237e-05,
132
+ "loss": 0.1244,
133
+ "step": 10000
134
+ },
135
+ {
136
+ "epoch": 6.88791484032561,
137
+ "grad_norm": 1.9151487350463867,
138
+ "learning_rate": 1.7289361998191053e-05,
139
+ "loss": 0.1159,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 7.0,
144
+ "eval_accuracy": 0.9864666078258312,
145
+ "eval_loss": 0.06154850497841835,
146
+ "eval_runtime": 35.249,
147
+ "eval_samples_per_second": 192.857,
148
+ "eval_steps_per_second": 0.766,
149
+ "step": 11179
150
+ },
151
+ {
152
+ "epoch": 7.514088916718848,
153
+ "grad_norm": 4.778970241546631,
154
+ "learning_rate": 1.3810617129339735e-05,
155
+ "loss": 0.1211,
156
+ "step": 12000
157
+ },
158
+ {
159
+ "epoch": 8.0,
160
+ "eval_accuracy": 0.9872021182700794,
161
+ "eval_loss": 0.057863999158144,
162
+ "eval_runtime": 35.7046,
163
+ "eval_samples_per_second": 190.396,
164
+ "eval_steps_per_second": 0.756,
165
+ "step": 12776
166
+ },
167
+ {
168
+ "epoch": 8.140262993112085,
169
+ "grad_norm": 0.4232797622680664,
170
+ "learning_rate": 1.0331872260488417e-05,
171
+ "loss": 0.114,
172
+ "step": 13000
173
+ },
174
+ {
175
+ "epoch": 8.766437069505322,
176
+ "grad_norm": 1.9394092559814453,
177
+ "learning_rate": 6.853127391637097e-06,
178
+ "loss": 0.108,
179
+ "step": 14000
180
+ },
181
+ {
182
+ "epoch": 9.0,
183
+ "eval_accuracy": 0.9863195057369815,
184
+ "eval_loss": 0.05663929507136345,
185
+ "eval_runtime": 35.5366,
186
+ "eval_samples_per_second": 191.296,
187
+ "eval_steps_per_second": 0.76,
188
+ "step": 14373
189
+ },
190
+ {
191
+ "epoch": 9.39261114589856,
192
+ "grad_norm": 3.1410608291625977,
193
+ "learning_rate": 3.3743825227857787e-06,
194
+ "loss": 0.1088,
195
+ "step": 15000
196
+ },
197
+ {
198
+ "epoch": 10.0,
199
+ "eval_accuracy": 0.9869079140923801,
200
+ "eval_loss": 0.05716182291507721,
201
+ "eval_runtime": 35.7353,
202
+ "eval_samples_per_second": 190.232,
203
+ "eval_steps_per_second": 0.756,
204
+ "step": 15970
205
+ },
206
+ {
207
+ "epoch": 10.0,
208
+ "step": 15970,
209
+ "total_flos": 4.722696547222273e+19,
210
+ "train_loss": 0.23973732257382005,
211
+ "train_runtime": 8088.8257,
212
+ "train_samples_per_second": 63.166,
213
+ "train_steps_per_second": 1.974
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": 4.722696547222273e+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:3268bf7263d4d82c66b99ba83c1f660d512b945e42e958b041e7fb840fce18d5
3
+ size 5112