jialicheng commited on
Commit
922e143
1 Parent(s): 64e7567

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-large-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.988673139158576
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-large-ll60k](https://huggingface.co/facebook/hubert-large-ll60k) on the superb dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.0464
37
+ - Accuracy: 0.9887
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.6086 | 1.0 | 1597 | 0.0966 | 0.9826 |
70
+ | 0.2065 | 2.0 | 3194 | 0.0611 | 0.9862 |
71
+ | 0.1822 | 3.0 | 4791 | 0.0541 | 0.9879 |
72
+ | 0.1529 | 4.0 | 6388 | 0.0540 | 0.9869 |
73
+ | 0.1392 | 5.0 | 7985 | 0.0534 | 0.9865 |
74
+ | 0.1307 | 6.0 | 9582 | 0.0464 | 0.9887 |
75
+ | 0.1171 | 7.0 | 11179 | 0.0498 | 0.9873 |
76
+ | 0.1144 | 8.0 | 12776 | 0.0471 | 0.9884 |
77
+ | 0.1104 | 9.0 | 14373 | 0.0455 | 0.9879 |
78
+ | 0.1079 | 10.0 | 15970 | 0.0464 | 0.9885 |
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.988673139158576,
4
+ "eval_loss": 0.046409524977207184,
5
+ "eval_runtime": 15.0173,
6
+ "eval_samples_per_second": 452.679,
7
+ "eval_steps_per_second": 1.798,
8
+ "test_accuracy": 0.899058747160013,
9
+ "test_loss": 0.4847821295261383,
10
+ "test_runtime": 7.4455,
11
+ "test_samples_per_second": 413.806,
12
+ "test_steps_per_second": 1.746,
13
+ "total_flos": 1.548536697520896e+19,
14
+ "train_accuracy": 0.9923670098250283,
15
+ "train_loss": 0.031149398535490036,
16
+ "train_runtime": 278.1014,
17
+ "train_samples_per_second": 183.724,
18
+ "train_steps_per_second": 45.933
19
+ }
config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/hubert-large-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": 1024,
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": 4096,
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": 24,
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.988673139158576,
4
+ "eval_loss": 0.046409524977207184,
5
+ "eval_runtime": 15.0173,
6
+ "eval_samples_per_second": 452.679,
7
+ "eval_steps_per_second": 1.798
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9795de5198691056c44ecddc4a84f8eca73165584a5dbb2f8a147ce2ea36e14b
3
+ size 1262868744
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d90b8704d00776dfa85a660d799c276e0363ed77d9451230380c47fcdad8fb0
3
+ size 326432
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43f359a5b73c12759bf009823d52029cff1ccddef8bd8c63cb158ce44b0e26f9
3
+ size 148016
pred_logit_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70a1371f66eab9d06e8c7ec225ea87ea690bfa20102d482b694256e14f312d53
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.899058747160013,
4
+ "test_loss": 0.4847821295261383,
5
+ "test_runtime": 7.4455,
6
+ "test_samples_per_second": 413.806,
7
+ "test_steps_per_second": 1.746
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "train_accuracy": 0.9923670098250283,
4
+ "train_loss": 0.031149398535490036,
5
+ "train_runtime": 278.1014,
6
+ "train_samples_per_second": 183.724,
7
+ "train_steps_per_second": 45.933
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.988673139158576,
3
+ "best_model_checkpoint": "audio/train/checkpoint/hubert-large/superb_ks_42/checkpoint-9582",
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": 2.3518919944763184,
14
+ "learning_rate": 3.1308703819661866e-05,
15
+ "loss": 1.6086,
16
+ "step": 1000
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.9826419535157399,
21
+ "eval_loss": 0.09663528203964233,
22
+ "eval_runtime": 25.3736,
23
+ "eval_samples_per_second": 267.916,
24
+ "eval_steps_per_second": 1.064,
25
+ "step": 1597
26
+ },
27
+ {
28
+ "epoch": 1.2523481527864746,
29
+ "grad_norm": 1.2851642370224,
30
+ "learning_rate": 4.859806581785292e-05,
31
+ "loss": 0.3782,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 1.878522229179712,
36
+ "grad_norm": 0.9166728854179382,
37
+ "learning_rate": 4.51193209490016e-05,
38
+ "loss": 0.2065,
39
+ "step": 3000
40
+ },
41
+ {
42
+ "epoch": 2.0,
43
+ "eval_accuracy": 0.9861724036481319,
44
+ "eval_loss": 0.061149440705776215,
45
+ "eval_runtime": 14.242,
46
+ "eval_samples_per_second": 477.32,
47
+ "eval_steps_per_second": 1.896,
48
+ "step": 3194
49
+ },
50
+ {
51
+ "epoch": 2.504696305572949,
52
+ "grad_norm": 3.817800521850586,
53
+ "learning_rate": 4.1640576080150286e-05,
54
+ "loss": 0.1822,
55
+ "step": 4000
56
+ },
57
+ {
58
+ "epoch": 3.0,
59
+ "eval_accuracy": 0.9879376287143278,
60
+ "eval_loss": 0.05412260442972183,
61
+ "eval_runtime": 14.4843,
62
+ "eval_samples_per_second": 469.334,
63
+ "eval_steps_per_second": 1.864,
64
+ "step": 4791
65
+ },
66
+ {
67
+ "epoch": 3.1308703819661865,
68
+ "grad_norm": 0.46756044030189514,
69
+ "learning_rate": 3.8161831211298965e-05,
70
+ "loss": 0.1565,
71
+ "step": 5000
72
+ },
73
+ {
74
+ "epoch": 3.757044458359424,
75
+ "grad_norm": 2.2845380306243896,
76
+ "learning_rate": 3.468308634244764e-05,
77
+ "loss": 0.1529,
78
+ "step": 6000
79
+ },
80
+ {
81
+ "epoch": 4.0,
82
+ "eval_accuracy": 0.9869079140923801,
83
+ "eval_loss": 0.05400605872273445,
84
+ "eval_runtime": 14.6949,
85
+ "eval_samples_per_second": 462.61,
86
+ "eval_steps_per_second": 1.837,
87
+ "step": 6388
88
+ },
89
+ {
90
+ "epoch": 4.383218534752661,
91
+ "grad_norm": 0.9110573530197144,
92
+ "learning_rate": 3.120434147359633e-05,
93
+ "loss": 0.1392,
94
+ "step": 7000
95
+ },
96
+ {
97
+ "epoch": 5.0,
98
+ "eval_accuracy": 0.9864666078258312,
99
+ "eval_loss": 0.0533934086561203,
100
+ "eval_runtime": 14.5906,
101
+ "eval_samples_per_second": 465.917,
102
+ "eval_steps_per_second": 1.851,
103
+ "step": 7985
104
+ },
105
+ {
106
+ "epoch": 5.009392611145898,
107
+ "grad_norm": 2.609574317932129,
108
+ "learning_rate": 2.7725596604745007e-05,
109
+ "loss": 0.1331,
110
+ "step": 8000
111
+ },
112
+ {
113
+ "epoch": 5.635566687539136,
114
+ "grad_norm": 0.1722152829170227,
115
+ "learning_rate": 2.4246851735893692e-05,
116
+ "loss": 0.1307,
117
+ "step": 9000
118
+ },
119
+ {
120
+ "epoch": 6.0,
121
+ "eval_accuracy": 0.988673139158576,
122
+ "eval_loss": 0.046409524977207184,
123
+ "eval_runtime": 14.6338,
124
+ "eval_samples_per_second": 464.542,
125
+ "eval_steps_per_second": 1.845,
126
+ "step": 9582
127
+ },
128
+ {
129
+ "epoch": 6.261740763932373,
130
+ "grad_norm": 0.5856819152832031,
131
+ "learning_rate": 2.076810686704237e-05,
132
+ "loss": 0.1221,
133
+ "step": 10000
134
+ },
135
+ {
136
+ "epoch": 6.88791484032561,
137
+ "grad_norm": 1.7293404340744019,
138
+ "learning_rate": 1.7289361998191053e-05,
139
+ "loss": 0.1171,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 7.0,
144
+ "eval_accuracy": 0.9873492203589291,
145
+ "eval_loss": 0.04979054629802704,
146
+ "eval_runtime": 14.5666,
147
+ "eval_samples_per_second": 466.685,
148
+ "eval_steps_per_second": 1.854,
149
+ "step": 11179
150
+ },
151
+ {
152
+ "epoch": 7.514088916718848,
153
+ "grad_norm": 0.8187317848205566,
154
+ "learning_rate": 1.3810617129339735e-05,
155
+ "loss": 0.1144,
156
+ "step": 12000
157
+ },
158
+ {
159
+ "epoch": 8.0,
160
+ "eval_accuracy": 0.9883789349808767,
161
+ "eval_loss": 0.04705435782670975,
162
+ "eval_runtime": 14.1821,
163
+ "eval_samples_per_second": 479.337,
164
+ "eval_steps_per_second": 1.904,
165
+ "step": 12776
166
+ },
167
+ {
168
+ "epoch": 8.140262993112085,
169
+ "grad_norm": 0.5122739672660828,
170
+ "learning_rate": 1.0331872260488417e-05,
171
+ "loss": 0.114,
172
+ "step": 13000
173
+ },
174
+ {
175
+ "epoch": 8.766437069505322,
176
+ "grad_norm": 0.05307776853442192,
177
+ "learning_rate": 6.853127391637097e-06,
178
+ "loss": 0.1104,
179
+ "step": 14000
180
+ },
181
+ {
182
+ "epoch": 9.0,
183
+ "eval_accuracy": 0.9879376287143278,
184
+ "eval_loss": 0.045528609305620193,
185
+ "eval_runtime": 14.768,
186
+ "eval_samples_per_second": 460.319,
187
+ "eval_steps_per_second": 1.828,
188
+ "step": 14373
189
+ },
190
+ {
191
+ "epoch": 9.39261114589856,
192
+ "grad_norm": 2.4742355346679688,
193
+ "learning_rate": 3.3743825227857787e-06,
194
+ "loss": 0.1079,
195
+ "step": 15000
196
+ },
197
+ {
198
+ "epoch": 10.0,
199
+ "eval_accuracy": 0.9885260370697264,
200
+ "eval_loss": 0.04639420658349991,
201
+ "eval_runtime": 14.1401,
202
+ "eval_samples_per_second": 480.761,
203
+ "eval_steps_per_second": 1.909,
204
+ "step": 15970
205
+ },
206
+ {
207
+ "epoch": 10.0,
208
+ "step": 15970,
209
+ "total_flos": 1.548536697520896e+19,
210
+ "train_loss": 0.2424131767258617,
211
+ "train_runtime": 3138.2662,
212
+ "train_samples_per_second": 162.81,
213
+ "train_steps_per_second": 5.089
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.548536697520896e+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:2a36dc4be4096e77ef4a5af830d7c7b03993151dd312fc2112e123e1dd3a526d
3
+ size 5112