HaaaE commited on
Commit
84220f2
·
verified ·
1 Parent(s): 13971f9

End of training

Browse files
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: ntu-spml/distilhubert
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - gtzan
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: ft-hubert-on-gtzan
13
+ results:
14
+ - task:
15
+ name: Audio Classification
16
+ type: audio-classification
17
+ dataset:
18
+ name: gtzan
19
+ type: gtzan
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.825
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
+ # ft-hubert-on-gtzan
33
+
34
+ This model is a fine-tuned version of [ntu-spml/distilhubert](https://huggingface.co/ntu-spml/distilhubert) on the gtzan dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.6574
37
+ - Accuracy: 0.825
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: 2
58
+ - eval_batch_size: 2
59
+ - seed: 42
60
+ - gradient_accumulation_steps: 4
61
+ - total_train_batch_size: 8
62
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
63
+ - lr_scheduler_type: linear
64
+ - lr_scheduler_warmup_ratio: 0.1
65
+ - num_epochs: 10
66
+ - mixed_precision_training: Native AMP
67
+
68
+ ### Training results
69
+
70
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
71
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
72
+ | No log | 1.0 | 100 | 1.5408 | 0.58 |
73
+ | No log | 2.0 | 200 | 1.1600 | 0.615 |
74
+ | No log | 3.0 | 300 | 0.9942 | 0.705 |
75
+ | No log | 4.0 | 400 | 0.8390 | 0.77 |
76
+ | 1.0814 | 5.0 | 500 | 0.8495 | 0.745 |
77
+ | 1.0814 | 6.0 | 600 | 0.6807 | 0.79 |
78
+ | 1.0814 | 7.0 | 700 | 0.7361 | 0.78 |
79
+ | 1.0814 | 8.0 | 800 | 0.6250 | 0.815 |
80
+ | 1.0814 | 9.0 | 900 | 0.6308 | 0.83 |
81
+ | 0.2344 | 10.0 | 1000 | 0.6574 | 0.825 |
82
+
83
+
84
+ ### Framework versions
85
+
86
+ - Transformers 4.48.1
87
+ - Pytorch 2.5.1+cu124
88
+ - Datasets 3.2.0
89
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ntu-spml/distilhubert",
3
+ "activation_dropout": 0.1,
4
+ "apply_spec_augment": false,
5
+ "architectures": [
6
+ "HubertForSequenceClassification"
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_pos_batch_norm": false,
31
+ "conv_stride": [
32
+ 5,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2,
37
+ 2,
38
+ 2
39
+ ],
40
+ "ctc_loss_reduction": "sum",
41
+ "ctc_zero_infinity": false,
42
+ "do_stable_layer_norm": false,
43
+ "eos_token_id": 2,
44
+ "feat_extract_activation": "gelu",
45
+ "feat_extract_norm": "group",
46
+ "feat_proj_dropout": 0.0,
47
+ "feat_proj_layer_norm": false,
48
+ "final_dropout": 0.0,
49
+ "hidden_act": "gelu",
50
+ "hidden_dropout": 0.1,
51
+ "hidden_size": 768,
52
+ "id2label": {
53
+ "0": "blues",
54
+ "1": "classical",
55
+ "2": "country",
56
+ "3": "disco",
57
+ "4": "hiphop",
58
+ "5": "jazz",
59
+ "6": "metal",
60
+ "7": "pop",
61
+ "8": "reggae",
62
+ "9": "rock"
63
+ },
64
+ "initializer_range": 0.02,
65
+ "intermediate_size": 3072,
66
+ "label2id": {
67
+ "blues": "0",
68
+ "classical": "1",
69
+ "country": "2",
70
+ "disco": "3",
71
+ "hiphop": "4",
72
+ "jazz": "5",
73
+ "metal": "6",
74
+ "pop": "7",
75
+ "reggae": "8",
76
+ "rock": "9"
77
+ },
78
+ "layer_norm_eps": 1e-05,
79
+ "layerdrop": 0.0,
80
+ "mask_feature_length": 10,
81
+ "mask_feature_min_masks": 0,
82
+ "mask_feature_prob": 0.0,
83
+ "mask_time_length": 10,
84
+ "mask_time_min_masks": 2,
85
+ "mask_time_prob": 0.05,
86
+ "model_type": "hubert",
87
+ "num_attention_heads": 12,
88
+ "num_conv_pos_embedding_groups": 16,
89
+ "num_conv_pos_embeddings": 128,
90
+ "num_feat_extract_layers": 7,
91
+ "num_hidden_layers": 2,
92
+ "pad_token_id": 0,
93
+ "torch_dtype": "float32",
94
+ "transformers_version": "4.48.1",
95
+ "use_weighted_layer_sum": false,
96
+ "vocab_size": 32
97
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:045b963de3148ece8ad1d6f59a0b5ebf2c3c46df70ae2755cf022c1982e87429
3
+ size 94771728
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
+ }
runs/May15_02-51-10_comehope-yszdrccu8z0w-main/events.out.tfevents.1715741474.comehope-yszdrccu8z0w-main.411.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2e246d13919ea3e8ccc48ba11e06cb177ee2c0b5ba9e627123d90447091c4dd
3
+ size 6173
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9af8c78d1df3a0bcb3182d04d5e9c758eaa42f688c8f6c3921986435dfc8329
3
+ size 5304