Hcask commited on
Commit
8d571b7
·
verified ·
1 Parent(s): 36bd8b8

End of training

Browse files
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - marsyas/gtzan
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: distilhubert-finetuned-gtzan
13
+ results:
14
+ - task:
15
+ name: Audio Classification
16
+ type: audio-classification
17
+ dataset:
18
+ name: GTZAN
19
+ type: marsyas/gtzan
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.782608695652174
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
+ # distilhubert-finetuned-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: 1.2172
37
+ - Accuracy: 0.7826
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: 8
58
+ - eval_batch_size: 8
59
+ - seed: 42
60
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
61
+ - lr_scheduler_type: linear
62
+ - lr_scheduler_warmup_ratio: 0.1
63
+ - num_epochs: 10
64
+ - mixed_precision_training: Native AMP
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 2.1308 | 1.0 | 25 | 2.1309 | 0.0870 |
71
+ | 1.9034 | 2.0 | 50 | 1.9650 | 0.3478 |
72
+ | 1.6085 | 3.0 | 75 | 1.7543 | 0.5217 |
73
+ | 1.4083 | 4.0 | 100 | 1.6225 | 0.5217 |
74
+ | 1.4712 | 5.0 | 125 | 1.4741 | 0.6957 |
75
+ | 1.1667 | 6.0 | 150 | 1.3947 | 0.6087 |
76
+ | 1.0986 | 7.0 | 175 | 1.3320 | 0.7391 |
77
+ | 1.0781 | 8.0 | 200 | 1.2441 | 0.7391 |
78
+ | 0.96 | 9.0 | 225 | 1.2146 | 0.7826 |
79
+ | 0.9224 | 10.0 | 250 | 1.2172 | 0.7826 |
80
+
81
+
82
+ ### Framework versions
83
+
84
+ - Transformers 4.48.3
85
+ - Pytorch 2.5.1+cu124
86
+ - Datasets 3.3.2
87
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "01_gunshot",
54
+ "1": "03_moped_alarm",
55
+ "2": "04_moped",
56
+ "3": "05_claxon",
57
+ "4": "06_car_door",
58
+ "5": "07_loud_people",
59
+ "6": "08_motor_cycle",
60
+ "7": "09_terrace_noise",
61
+ "8": "10_music"
62
+ },
63
+ "initializer_range": 0.02,
64
+ "intermediate_size": 3072,
65
+ "label2id": {
66
+ "01_gunshot": "0",
67
+ "03_moped_alarm": "1",
68
+ "04_moped": "2",
69
+ "05_claxon": "3",
70
+ "06_car_door": "4",
71
+ "07_loud_people": "5",
72
+ "08_motor_cycle": "6",
73
+ "09_terrace_noise": "7",
74
+ "10_music": "8"
75
+ },
76
+ "layer_norm_eps": 1e-05,
77
+ "layerdrop": 0.0,
78
+ "mask_feature_length": 10,
79
+ "mask_feature_min_masks": 0,
80
+ "mask_feature_prob": 0.0,
81
+ "mask_time_length": 10,
82
+ "mask_time_min_masks": 2,
83
+ "mask_time_prob": 0.05,
84
+ "model_type": "hubert",
85
+ "num_attention_heads": 12,
86
+ "num_conv_pos_embedding_groups": 16,
87
+ "num_conv_pos_embeddings": 128,
88
+ "num_feat_extract_layers": 7,
89
+ "num_hidden_layers": 2,
90
+ "pad_token_id": 0,
91
+ "torch_dtype": "float32",
92
+ "transformers_version": "4.48.3",
93
+ "use_weighted_layer_sum": false,
94
+ "vocab_size": 32
95
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:406b8d132d9eb7b47f819eed4d5b5eae56167f49f8e102b59dbfa5e7692f9b00
3
+ size 94770700
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/Mar10_20-59-25_37b1317acf0d/events.out.tfevents.1741640370.37b1317acf0d.2932.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28de1978aae0ad36386b2a5d12fb250b2630b0a86f7f67948d61e0a7aeb058c2
3
+ size 20406
runs/Mar10_20-59-25_37b1317acf0d/events.out.tfevents.1741640856.37b1317acf0d.2932.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c7c29668608f13e355cdb61e0cf530714ddbf346d6141e120062b7cf66aeb7b
3
+ size 411
runs/Mar10_21-14-45_37b1317acf0d/events.out.tfevents.1741641300.37b1317acf0d.2932.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:416e43298f6257021244edf892331cd93f8d43c361334b1ac350052aa80e4f75
3
+ size 20406
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb24a8d958f3db0ee175d9b127ce7d32d2a80bfd30d923360a2b539624387930
3
+ size 5368