Aynursusuz commited on
Commit
a8eaa7d
·
verified ·
1 Parent(s): 347252f

Aynursusuz/whisper_distil_small

Browse files
Files changed (5) hide show
  1. README.md +65 -0
  2. config.json +155 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +15 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: distil-whisper/distil-small.en
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: music_speech_classification
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
+ # music_speech_classification
18
+
19
+ This model is a fine-tuned version of [distil-whisper/distil-small.en](https://huggingface.co/distil-whisper/distil-small.en) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0002
22
+ - Accuracy: 1.0
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: 0.0002
42
+ - train_batch_size: 32
43
+ - eval_batch_size: 32
44
+ - seed: 42
45
+ - gradient_accumulation_steps: 4
46
+ - total_train_batch_size: 128
47
+ - optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: linear
49
+ - lr_scheduler_warmup_ratio: 0.1
50
+ - num_epochs: 1
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
57
+ | 0.0002 | 1.0 | 287 | 0.0002 | 1.0 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.57.1
63
+ - Pytorch 2.9.0+cu128
64
+ - Datasets 4.4.1
65
+ - Tokenizers 0.22.1
config.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "gelu",
4
+ "apply_spec_augment": false,
5
+ "architectures": [
6
+ "WhisperForAudioClassification"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "begin_suppress_tokens": [
10
+ 220,
11
+ 50256
12
+ ],
13
+ "bos_token_id": 50257,
14
+ "classifier_proj_size": 256,
15
+ "d_model": 768,
16
+ "decoder_attention_heads": 12,
17
+ "decoder_ffn_dim": 3072,
18
+ "decoder_layerdrop": 0.0,
19
+ "decoder_layers": 4,
20
+ "decoder_start_token_id": 50257,
21
+ "dropout": 0.0,
22
+ "dtype": "float32",
23
+ "encoder_attention_heads": 12,
24
+ "encoder_ffn_dim": 3072,
25
+ "encoder_layerdrop": 0.0,
26
+ "encoder_layers": 12,
27
+ "eos_token_id": 50256,
28
+ "forced_decoder_ids": [
29
+ [
30
+ 1,
31
+ 50362
32
+ ]
33
+ ],
34
+ "id2label": {
35
+ "0": "music",
36
+ "1": "speech"
37
+ },
38
+ "init_std": 0.02,
39
+ "is_encoder_decoder": true,
40
+ "label2id": {
41
+ "music": "0",
42
+ "speech": "1"
43
+ },
44
+ "mask_feature_length": 10,
45
+ "mask_feature_min_masks": 0,
46
+ "mask_feature_prob": 0.0,
47
+ "mask_time_length": 10,
48
+ "mask_time_min_masks": 2,
49
+ "mask_time_prob": 0.05,
50
+ "max_length": 448,
51
+ "max_source_positions": 1500,
52
+ "max_target_positions": 448,
53
+ "median_filter_width": 7,
54
+ "model_type": "whisper",
55
+ "num_hidden_layers": 12,
56
+ "num_mel_bins": 80,
57
+ "pad_token_id": 50256,
58
+ "scale_embedding": false,
59
+ "suppress_tokens": [
60
+ 1,
61
+ 2,
62
+ 7,
63
+ 8,
64
+ 9,
65
+ 10,
66
+ 14,
67
+ 25,
68
+ 26,
69
+ 27,
70
+ 28,
71
+ 29,
72
+ 31,
73
+ 58,
74
+ 59,
75
+ 60,
76
+ 61,
77
+ 62,
78
+ 63,
79
+ 90,
80
+ 91,
81
+ 92,
82
+ 93,
83
+ 357,
84
+ 366,
85
+ 438,
86
+ 532,
87
+ 685,
88
+ 705,
89
+ 796,
90
+ 930,
91
+ 1058,
92
+ 1220,
93
+ 1267,
94
+ 1279,
95
+ 1303,
96
+ 1343,
97
+ 1377,
98
+ 1391,
99
+ 1635,
100
+ 1782,
101
+ 1875,
102
+ 2162,
103
+ 2361,
104
+ 2488,
105
+ 3467,
106
+ 4008,
107
+ 4211,
108
+ 4600,
109
+ 4808,
110
+ 5299,
111
+ 5855,
112
+ 6329,
113
+ 7203,
114
+ 9609,
115
+ 9959,
116
+ 10563,
117
+ 10786,
118
+ 11420,
119
+ 11709,
120
+ 11907,
121
+ 13163,
122
+ 13697,
123
+ 13700,
124
+ 14808,
125
+ 15306,
126
+ 16410,
127
+ 16791,
128
+ 17992,
129
+ 19203,
130
+ 19510,
131
+ 20724,
132
+ 22305,
133
+ 22935,
134
+ 27007,
135
+ 30109,
136
+ 30420,
137
+ 33409,
138
+ 34949,
139
+ 40283,
140
+ 40493,
141
+ 40549,
142
+ 47282,
143
+ 49146,
144
+ 50257,
145
+ 50357,
146
+ 50358,
147
+ 50359,
148
+ 50360,
149
+ 50361
150
+ ],
151
+ "transformers_version": "4.57.1",
152
+ "use_cache": true,
153
+ "use_weighted_layer_sum": false,
154
+ "vocab_size": 51864
155
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f356cd19d6a94f50555ee938edd15659923e6d0ad23c5f0f87a2ea6f080007bf
3
+ size 353426360
preprocessor_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 80,
6
+ "hop_length": 160,
7
+ "n_fft": 400,
8
+ "n_samples": 480000,
9
+ "nb_max_frames": 3000,
10
+ "padding_side": "right",
11
+ "padding_value": 0.0,
12
+ "processor_class": "WhisperProcessor",
13
+ "return_attention_mask": false,
14
+ "sampling_rate": 16000
15
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f75c54c18b023e1f997327019cba0551e1f0988c916f00ef4a87ffce3456ce1
3
+ size 5969