OmBenz commited on
Commit
f703f1a
1 Parent(s): 0e40db9

End of training

Browse files
Files changed (5) hide show
  1. README.md +91 -0
  2. config.json +100 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +9 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/hubert-base-ls960
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - marsyas/gtzan
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: hubert-base-ls960-finetuned-gtzan
12
+ results:
13
+ - task:
14
+ name: Audio Classification
15
+ type: audio-classification
16
+ dataset:
17
+ name: GTZAN
18
+ type: marsyas/gtzan
19
+ config: all
20
+ split: train
21
+ args: all
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.88
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # hubert-base-ls960-finetuned-gtzan
32
+
33
+ This model is a fine-tuned version of [facebook/hubert-base-ls960](https://huggingface.co/facebook/hubert-base-ls960) on the GTZAN dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.7650
36
+ - Accuracy: 0.88
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 5e-05
56
+ - train_batch_size: 4
57
+ - eval_batch_size: 4
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - lr_scheduler_warmup_ratio: 0.1
62
+ - num_epochs: 15
63
+ - mixed_precision_training: Native AMP
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
69
+ | 2.2258 | 1.0 | 225 | 1.9240 | 0.28 |
70
+ | 1.6083 | 2.0 | 450 | 1.4887 | 0.39 |
71
+ | 1.3983 | 3.0 | 675 | 1.3524 | 0.56 |
72
+ | 0.7368 | 4.0 | 900 | 1.3110 | 0.56 |
73
+ | 0.6121 | 5.0 | 1125 | 0.9572 | 0.72 |
74
+ | 0.1772 | 6.0 | 1350 | 0.8775 | 0.73 |
75
+ | 1.8666 | 7.0 | 1575 | 0.6078 | 0.82 |
76
+ | 0.091 | 8.0 | 1800 | 0.9999 | 0.76 |
77
+ | 0.0458 | 9.0 | 2025 | 0.7169 | 0.83 |
78
+ | 0.6817 | 10.0 | 2250 | 0.7614 | 0.86 |
79
+ | 0.7023 | 11.0 | 2475 | 0.9348 | 0.84 |
80
+ | 0.0047 | 12.0 | 2700 | 0.7222 | 0.88 |
81
+ | 0.0363 | 13.0 | 2925 | 0.7027 | 0.89 |
82
+ | 0.0073 | 14.0 | 3150 | 0.7440 | 0.88 |
83
+ | 0.0055 | 15.0 | 3375 | 0.7650 | 0.88 |
84
+
85
+
86
+ ### Framework versions
87
+
88
+ - Transformers 4.38.0.dev0
89
+ - Pytorch 2.1.2+cu121
90
+ - Datasets 2.16.1
91
+ - Tokenizers 0.15.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.38.0.dev0",
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:7d0604fa74e27d45c915dd567826beb28d56752e6bf73707478ef4b4ad5c1b39
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": false,
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:4e14680c34f6942e7f347e6db12d9b6a3f122154a2671690082038151fab32e3
3
+ size 4664