thelikhit commited on
Commit
879d7d4
·
verified ·
1 Parent(s): 98e69b9

End of training

Browse files
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: facebook/hubert-base-ls960
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - gtzan
9
+ metrics:
10
+ - accuracy
11
+ - precision
12
+ - recall
13
+ - f1
14
+ model-index:
15
+ - name: hubert-model-v2
16
+ results:
17
+ - task:
18
+ name: Audio Classification
19
+ type: audio-classification
20
+ dataset:
21
+ name: gtzan
22
+ type: gtzan
23
+ config: default
24
+ split: train
25
+ args: default
26
+ metrics:
27
+ - name: Accuracy
28
+ type: accuracy
29
+ value: 0.82
30
+ - name: Precision
31
+ type: precision
32
+ value: 0.8391562316626255
33
+ - name: Recall
34
+ type: recall
35
+ value: 0.82
36
+ - name: F1
37
+ type: f1
38
+ value: 0.822405644289722
39
+ ---
40
+
41
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
42
+ should probably proofread and complete it, then remove this comment. -->
43
+
44
+ # hubert-model-v2
45
+
46
+ This model is a fine-tuned version of [facebook/hubert-base-ls960](https://huggingface.co/facebook/hubert-base-ls960) on the gtzan dataset.
47
+ It achieves the following results on the evaluation set:
48
+ - Loss: 0.9612
49
+ - Accuracy: 0.82
50
+ - Precision: 0.8392
51
+ - Recall: 0.82
52
+ - F1: 0.8224
53
+
54
+ ## Model description
55
+
56
+ More information needed
57
+
58
+ ## Intended uses & limitations
59
+
60
+ More information needed
61
+
62
+ ## Training and evaluation data
63
+
64
+ More information needed
65
+
66
+ ## Training procedure
67
+
68
+ ### Training hyperparameters
69
+
70
+ The following hyperparameters were used during training:
71
+ - learning_rate: 5e-05
72
+ - train_batch_size: 4
73
+ - eval_batch_size: 4
74
+ - seed: 42
75
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
76
+ - lr_scheduler_type: linear
77
+ - lr_scheduler_warmup_ratio: 0.1
78
+ - num_epochs: 12
79
+ - mixed_precision_training: Native AMP
80
+
81
+ ### Training results
82
+
83
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
84
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
85
+ | 2.2086 | 1.0 | 200 | 2.0834 | 0.265 | 0.1987 | 0.265 | 0.1723 |
86
+ | 1.8657 | 2.0 | 400 | 1.7149 | 0.385 | 0.3228 | 0.385 | 0.3226 |
87
+ | 1.5242 | 3.0 | 600 | 1.4365 | 0.49 | 0.4463 | 0.49 | 0.4280 |
88
+ | 1.2542 | 4.0 | 800 | 1.2907 | 0.57 | 0.6029 | 0.57 | 0.5477 |
89
+ | 1.0119 | 5.0 | 1000 | 1.0524 | 0.69 | 0.7249 | 0.69 | 0.6745 |
90
+ | 0.8835 | 6.0 | 1200 | 1.1677 | 0.69 | 0.7156 | 0.69 | 0.6718 |
91
+ | 0.7271 | 7.0 | 1400 | 0.9158 | 0.745 | 0.7569 | 0.745 | 0.7309 |
92
+ | 0.5453 | 8.0 | 1600 | 0.7592 | 0.82 | 0.8296 | 0.82 | 0.8185 |
93
+ | 0.4503 | 9.0 | 1800 | 0.9936 | 0.775 | 0.8138 | 0.775 | 0.7799 |
94
+ | 0.3625 | 10.0 | 2000 | 0.9192 | 0.815 | 0.8258 | 0.815 | 0.8146 |
95
+ | 0.2773 | 11.0 | 2200 | 0.9768 | 0.82 | 0.8362 | 0.82 | 0.8201 |
96
+ | 0.2309 | 12.0 | 2400 | 0.9612 | 0.82 | 0.8392 | 0.82 | 0.8224 |
97
+
98
+
99
+ ### Framework versions
100
+
101
+ - Transformers 4.47.1
102
+ - Pytorch 2.5.1+cu121
103
+ - Datasets 3.2.0
104
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/hubert-base-ls960",
3
+ "activation_dropout": 0.1,
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": 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_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": false,
42
+ "eos_token_id": 2,
43
+ "feat_extract_activation": "gelu",
44
+ "feat_extract_dropout": 0.0,
45
+ "feat_extract_norm": "group",
46
+ "feat_proj_dropout": 0.1,
47
+ "feat_proj_layer_norm": true,
48
+ "final_dropout": 0.1,
49
+ "gradient_checkpointing": false,
50
+ "hidden_act": "gelu",
51
+ "hidden_dropout": 0.1,
52
+ "hidden_dropout_prob": 0.1,
53
+ "hidden_size": 768,
54
+ "id2label": {
55
+ "0": "blues",
56
+ "1": "classical",
57
+ "2": "country",
58
+ "3": "disco",
59
+ "4": "hiphop",
60
+ "5": "jazz",
61
+ "6": "metal",
62
+ "7": "pop",
63
+ "8": "reggae",
64
+ "9": "rock"
65
+ },
66
+ "initializer_range": 0.02,
67
+ "intermediate_size": 3072,
68
+ "label2id": {
69
+ "blues": "0",
70
+ "classical": "1",
71
+ "country": "2",
72
+ "disco": "3",
73
+ "hiphop": "4",
74
+ "jazz": "5",
75
+ "metal": "6",
76
+ "pop": "7",
77
+ "reggae": "8",
78
+ "rock": "9"
79
+ },
80
+ "layer_norm_eps": 1e-05,
81
+ "layerdrop": 0.1,
82
+ "mask_feature_length": 10,
83
+ "mask_feature_min_masks": 0,
84
+ "mask_feature_prob": 0.0,
85
+ "mask_time_length": 10,
86
+ "mask_time_min_masks": 2,
87
+ "mask_time_prob": 0.05,
88
+ "model_type": "hubert",
89
+ "num_attention_heads": 12,
90
+ "num_conv_pos_embedding_groups": 16,
91
+ "num_conv_pos_embeddings": 128,
92
+ "num_feat_extract_layers": 7,
93
+ "num_hidden_layers": 12,
94
+ "pad_token_id": 0,
95
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
96
+ "torch_dtype": "float32",
97
+ "transformers_version": "4.47.1",
98
+ "use_weighted_layer_sum": false,
99
+ "vocab_size": 32
100
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a72d35bd45eb956577ef3a4babff8a89ac5850190af7f0ba90b04cd6cfc8fd8c
3
+ size 378310176
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/Jan27_21-33-37_e5c5d91f5eac/events.out.tfevents.1738013619.e5c5d91f5eac.661.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b303a34c9bc208a417f924a1443c92a19b3f90f17c21d281b49953b21b9b55bf
3
+ size 15109
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4deaaac84d711efff17dc5370c2252e2aa24206c62fbb82401f75ec560408cfa
3
+ size 5304