eljandoubi commited on
Commit
0b0cdf1
1 Parent(s): 3593832

End of training

Browse files
Files changed (5) hide show
  1. README.md +88 -0
  2. config.json +96 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +9 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: ntu-spml/distilhubert
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: distilhubert-finetuned-gtzan
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # distilhubert-finetuned-gtzan
17
+
18
+ This model is a fine-tuned version of [ntu-spml/distilhubert](https://huggingface.co/ntu-spml/distilhubert) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.5086
21
+ - Accuracy: 0.89
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 4e-05
41
+ - train_batch_size: 6
42
+ - eval_batch_size: 6
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 7
45
+ - total_train_batch_size: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 25
50
+ - mixed_precision_training: Native AMP
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
55
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
56
+ | 2.2912 | 0.98 | 21 | 2.2667 | 0.19 |
57
+ | 2.2263 | 1.96 | 42 | 2.1460 | 0.48 |
58
+ | 1.9552 | 2.99 | 64 | 1.8067 | 0.44 |
59
+ | 1.5982 | 3.97 | 85 | 1.5912 | 0.54 |
60
+ | 1.5182 | 4.99 | 107 | 1.4077 | 0.61 |
61
+ | 1.2855 | 5.97 | 128 | 1.2654 | 0.69 |
62
+ | 1.1649 | 7.0 | 150 | 1.1915 | 0.69 |
63
+ | 1.0742 | 7.98 | 171 | 1.0769 | 0.75 |
64
+ | 1.0495 | 8.96 | 192 | 1.0011 | 0.77 |
65
+ | 0.8827 | 9.99 | 214 | 0.9062 | 0.79 |
66
+ | 0.7886 | 10.97 | 235 | 0.8333 | 0.83 |
67
+ | 0.7019 | 11.99 | 257 | 0.7801 | 0.83 |
68
+ | 0.6642 | 12.97 | 278 | 0.7691 | 0.79 |
69
+ | 0.5982 | 14.0 | 300 | 0.6984 | 0.82 |
70
+ | 0.5002 | 14.98 | 321 | 0.6526 | 0.84 |
71
+ | 0.4789 | 15.96 | 342 | 0.5980 | 0.88 |
72
+ | 0.3908 | 16.99 | 364 | 0.5874 | 0.86 |
73
+ | 0.3892 | 17.97 | 385 | 0.5570 | 0.86 |
74
+ | 0.3675 | 18.99 | 407 | 0.5634 | 0.87 |
75
+ | 0.303 | 19.97 | 428 | 0.5387 | 0.87 |
76
+ | 0.3017 | 21.0 | 450 | 0.5086 | 0.89 |
77
+ | 0.2469 | 21.98 | 471 | 0.4969 | 0.89 |
78
+ | 0.2542 | 22.96 | 492 | 0.4972 | 0.88 |
79
+ | 0.2651 | 23.99 | 514 | 0.4947 | 0.89 |
80
+ | 0.2591 | 24.5 | 525 | 0.4929 | 0.89 |
81
+
82
+
83
+ ### Framework versions
84
+
85
+ - Transformers 4.35.0
86
+ - Pytorch 2.1.0
87
+ - Datasets 2.14.6
88
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_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_norm": "group",
45
+ "feat_proj_dropout": 0.0,
46
+ "feat_proj_layer_norm": false,
47
+ "final_dropout": 0.0,
48
+ "hidden_act": "gelu",
49
+ "hidden_dropout": 0.1,
50
+ "hidden_size": 768,
51
+ "id2label": {
52
+ "0": "blues",
53
+ "1": "classical",
54
+ "2": "country",
55
+ "3": "disco",
56
+ "4": "hiphop",
57
+ "5": "jazz",
58
+ "6": "metal",
59
+ "7": "pop",
60
+ "8": "reggae",
61
+ "9": "rock"
62
+ },
63
+ "initializer_range": 0.02,
64
+ "intermediate_size": 3072,
65
+ "label2id": {
66
+ "blues": "0",
67
+ "classical": "1",
68
+ "country": "2",
69
+ "disco": "3",
70
+ "hiphop": "4",
71
+ "jazz": "5",
72
+ "metal": "6",
73
+ "pop": "7",
74
+ "reggae": "8",
75
+ "rock": "9"
76
+ },
77
+ "layer_norm_eps": 1e-05,
78
+ "layerdrop": 0.0,
79
+ "mask_feature_length": 10,
80
+ "mask_feature_min_masks": 0,
81
+ "mask_feature_prob": 0.0,
82
+ "mask_time_length": 10,
83
+ "mask_time_min_masks": 2,
84
+ "mask_time_prob": 0.05,
85
+ "model_type": "hubert",
86
+ "num_attention_heads": 12,
87
+ "num_conv_pos_embedding_groups": 16,
88
+ "num_conv_pos_embeddings": 128,
89
+ "num_feat_extract_layers": 7,
90
+ "num_hidden_layers": 2,
91
+ "pad_token_id": 0,
92
+ "torch_dtype": "float32",
93
+ "transformers_version": "4.35.0",
94
+ "use_weighted_layer_sum": false,
95
+ "vocab_size": 32
96
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8aebd9ce49c5d303a699a7b7df53ee4d489b3f5fc6261c3942d393553d13e94
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
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f453971648350247fed3f7214567b4a2b3b08ca0188e1543ed73659046ee4d88
3
+ size 4600