dvshah13 commited on
Commit
aaa6c16
1 Parent(s): 74bdd7c

Upload 5 files

Browse files
Files changed (5) hide show
  1. README.md +76 -0
  2. config.json +96 -0
  3. preprocessor_config.json +9 -0
  4. pytorch_model.bin +3 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - marsyas/gtzan
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: distilhubert-finetuned-gtzan-v3
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # distilhubert-finetuned-gtzan-v3
18
+
19
+ This model is a fine-tuned version of [ntu-spml/distilhubert](https://huggingface.co/ntu-spml/distilhubert) on the GTZAN dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5752
22
+ - Accuracy: 0.83
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 5e-05
42
+ - train_batch_size: 8
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: linear
47
+ - lr_scheduler_warmup_ratio: 0.1
48
+ - num_epochs: 15
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
54
+ | 1.9108 | 1.0 | 113 | 1.9472 | 0.43 |
55
+ | 1.3286 | 2.0 | 226 | 1.4173 | 0.65 |
56
+ | 1.032 | 3.0 | 339 | 0.9815 | 0.67 |
57
+ | 0.726 | 4.0 | 452 | 0.7403 | 0.79 |
58
+ | 0.4621 | 5.0 | 565 | 0.6390 | 0.8 |
59
+ | 0.3439 | 6.0 | 678 | 0.5248 | 0.85 |
60
+ | 0.1592 | 7.0 | 791 | 0.4861 | 0.86 |
61
+ | 0.1283 | 8.0 | 904 | 0.4995 | 0.87 |
62
+ | 0.1191 | 9.0 | 1017 | 0.4804 | 0.87 |
63
+ | 0.0236 | 10.0 | 1130 | 0.6737 | 0.8 |
64
+ | 0.0146 | 11.0 | 1243 | 0.6211 | 0.81 |
65
+ | 0.0105 | 12.0 | 1356 | 0.5806 | 0.86 |
66
+ | 0.008 | 13.0 | 1469 | 0.5645 | 0.84 |
67
+ | 0.0082 | 14.0 | 1582 | 0.6033 | 0.83 |
68
+ | 0.0072 | 15.0 | 1695 | 0.5752 | 0.83 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.30.0
74
+ - Pytorch 2.0.1+cu118
75
+ - Datasets 2.12.0
76
+ - Tokenizers 0.13.3
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.30.0",
94
+ "use_weighted_layer_sum": false,
95
+ "vocab_size": 32
96
+ }
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c7ff2fa0a414f601870868e3a609aa033ce737f4453016a85f434bec089417d
3
+ size 94783376
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfb1e4cd9b526d63fc9658531b0fec58392615665647ca817e210356d56aba70
3
+ size 3963