stevehoang9
commited on
Commit
•
6595533
1
Parent(s):
8b87409
duylong/finetuneWhisper
Browse files- README.md +67 -0
- config.json +51 -0
- generation_config.json +255 -0
- model.safetensors +3 -0
- preprocessor_config.json +14 -0
- runs/Jul31_16-20-13_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722417616.TUF-GAMING-Z690-PLUS-D4.348812.0 +3 -0
- runs/Jul31_16-59-13_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722419955.TUF-GAMING-Z690-PLUS-D4.356588.0 +3 -0
- runs/Jul31_17-20-47_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722421249.TUF-GAMING-Z690-PLUS-D4.362201.0 +3 -0
- runs/Jul31_17-39-08_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722422350.TUF-GAMING-Z690-PLUS-D4.366458.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: vinai/PhoWhisper-small
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- wer
|
7 |
+
model-index:
|
8 |
+
- name: whisper-small2-vi
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# whisper-small2-vi
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [vinai/PhoWhisper-small](https://huggingface.co/vinai/PhoWhisper-small) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 4.3932
|
20 |
+
- Wer: 14.7083
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 1e-05
|
40 |
+
- train_batch_size: 4
|
41 |
+
- eval_batch_size: 4
|
42 |
+
- seed: 42
|
43 |
+
- gradient_accumulation_steps: 2
|
44 |
+
- total_train_batch_size: 8
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- lr_scheduler_warmup_steps: 500
|
48 |
+
- training_steps: 50
|
49 |
+
- mixed_precision_training: Native AMP
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|
|
55 |
+
| 4.4978 | 0.016 | 10 | 6.7262 | 14.7083 |
|
56 |
+
| 4.2997 | 0.032 | 20 | 6.4491 | 14.7083 |
|
57 |
+
| 4.5058 | 0.048 | 30 | 6.0075 | 14.6948 |
|
58 |
+
| 3.9571 | 0.064 | 40 | 5.3437 | 14.7083 |
|
59 |
+
| 3.3732 | 0.08 | 50 | 4.3932 | 14.7083 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.44.0.dev0
|
65 |
+
- Pytorch 2.3.1+cu121
|
66 |
+
- Datasets 2.20.0
|
67 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "vinai/PhoWhisper-small",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"apply_spec_augment": false,
|
6 |
+
"architectures": [
|
7 |
+
"WhisperForConditionalGeneration"
|
8 |
+
],
|
9 |
+
"attention_dropout": 0.0,
|
10 |
+
"begin_suppress_tokens": [
|
11 |
+
220,
|
12 |
+
50257
|
13 |
+
],
|
14 |
+
"bos_token_id": 50257,
|
15 |
+
"classifier_proj_size": 256,
|
16 |
+
"d_model": 768,
|
17 |
+
"decoder_attention_heads": 12,
|
18 |
+
"decoder_ffn_dim": 3072,
|
19 |
+
"decoder_layerdrop": 0.0,
|
20 |
+
"decoder_layers": 12,
|
21 |
+
"decoder_start_token_id": 50258,
|
22 |
+
"dropout": 0.0,
|
23 |
+
"encoder_attention_heads": 12,
|
24 |
+
"encoder_ffn_dim": 3072,
|
25 |
+
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 12,
|
27 |
+
"eos_token_id": 50257,
|
28 |
+
"forced_decoder_ids": null,
|
29 |
+
"init_std": 0.02,
|
30 |
+
"is_encoder_decoder": true,
|
31 |
+
"mask_feature_length": 10,
|
32 |
+
"mask_feature_min_masks": 0,
|
33 |
+
"mask_feature_prob": 0.0,
|
34 |
+
"mask_time_length": 10,
|
35 |
+
"mask_time_min_masks": 2,
|
36 |
+
"mask_time_prob": 0.05,
|
37 |
+
"max_length": 448,
|
38 |
+
"max_source_positions": 1500,
|
39 |
+
"max_target_positions": 448,
|
40 |
+
"median_filter_width": 7,
|
41 |
+
"model_type": "whisper",
|
42 |
+
"num_hidden_layers": 12,
|
43 |
+
"num_mel_bins": 80,
|
44 |
+
"pad_token_id": 50257,
|
45 |
+
"scale_embedding": false,
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.44.0.dev0",
|
48 |
+
"use_cache": true,
|
49 |
+
"use_weighted_layer_sum": false,
|
50 |
+
"vocab_size": 51865
|
51 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alignment_heads": [
|
3 |
+
[
|
4 |
+
5,
|
5 |
+
3
|
6 |
+
],
|
7 |
+
[
|
8 |
+
5,
|
9 |
+
9
|
10 |
+
],
|
11 |
+
[
|
12 |
+
8,
|
13 |
+
0
|
14 |
+
],
|
15 |
+
[
|
16 |
+
8,
|
17 |
+
4
|
18 |
+
],
|
19 |
+
[
|
20 |
+
8,
|
21 |
+
7
|
22 |
+
],
|
23 |
+
[
|
24 |
+
8,
|
25 |
+
8
|
26 |
+
],
|
27 |
+
[
|
28 |
+
9,
|
29 |
+
0
|
30 |
+
],
|
31 |
+
[
|
32 |
+
9,
|
33 |
+
7
|
34 |
+
],
|
35 |
+
[
|
36 |
+
9,
|
37 |
+
9
|
38 |
+
],
|
39 |
+
[
|
40 |
+
10,
|
41 |
+
5
|
42 |
+
]
|
43 |
+
],
|
44 |
+
"begin_suppress_tokens": [
|
45 |
+
220,
|
46 |
+
50257
|
47 |
+
],
|
48 |
+
"bos_token_id": 50257,
|
49 |
+
"decoder_start_token_id": 50258,
|
50 |
+
"eos_token_id": 50257,
|
51 |
+
"is_multilingual": true,
|
52 |
+
"lang_to_id": {
|
53 |
+
"<|af|>": 50327,
|
54 |
+
"<|am|>": 50334,
|
55 |
+
"<|ar|>": 50272,
|
56 |
+
"<|as|>": 50350,
|
57 |
+
"<|az|>": 50304,
|
58 |
+
"<|ba|>": 50355,
|
59 |
+
"<|be|>": 50330,
|
60 |
+
"<|bg|>": 50292,
|
61 |
+
"<|bn|>": 50302,
|
62 |
+
"<|bo|>": 50347,
|
63 |
+
"<|br|>": 50309,
|
64 |
+
"<|bs|>": 50315,
|
65 |
+
"<|ca|>": 50270,
|
66 |
+
"<|cs|>": 50283,
|
67 |
+
"<|cy|>": 50297,
|
68 |
+
"<|da|>": 50285,
|
69 |
+
"<|de|>": 50261,
|
70 |
+
"<|el|>": 50281,
|
71 |
+
"<|en|>": 50259,
|
72 |
+
"<|es|>": 50262,
|
73 |
+
"<|et|>": 50307,
|
74 |
+
"<|eu|>": 50310,
|
75 |
+
"<|fa|>": 50300,
|
76 |
+
"<|fi|>": 50277,
|
77 |
+
"<|fo|>": 50338,
|
78 |
+
"<|fr|>": 50265,
|
79 |
+
"<|gl|>": 50319,
|
80 |
+
"<|gu|>": 50333,
|
81 |
+
"<|haw|>": 50352,
|
82 |
+
"<|ha|>": 50354,
|
83 |
+
"<|he|>": 50279,
|
84 |
+
"<|hi|>": 50276,
|
85 |
+
"<|hr|>": 50291,
|
86 |
+
"<|ht|>": 50339,
|
87 |
+
"<|hu|>": 50286,
|
88 |
+
"<|hy|>": 50312,
|
89 |
+
"<|id|>": 50275,
|
90 |
+
"<|is|>": 50311,
|
91 |
+
"<|it|>": 50274,
|
92 |
+
"<|ja|>": 50266,
|
93 |
+
"<|jw|>": 50356,
|
94 |
+
"<|ka|>": 50329,
|
95 |
+
"<|kk|>": 50316,
|
96 |
+
"<|km|>": 50323,
|
97 |
+
"<|kn|>": 50306,
|
98 |
+
"<|ko|>": 50264,
|
99 |
+
"<|la|>": 50294,
|
100 |
+
"<|lb|>": 50345,
|
101 |
+
"<|ln|>": 50353,
|
102 |
+
"<|lo|>": 50336,
|
103 |
+
"<|lt|>": 50293,
|
104 |
+
"<|lv|>": 50301,
|
105 |
+
"<|mg|>": 50349,
|
106 |
+
"<|mi|>": 50295,
|
107 |
+
"<|mk|>": 50308,
|
108 |
+
"<|ml|>": 50296,
|
109 |
+
"<|mn|>": 50314,
|
110 |
+
"<|mr|>": 50320,
|
111 |
+
"<|ms|>": 50282,
|
112 |
+
"<|mt|>": 50343,
|
113 |
+
"<|my|>": 50346,
|
114 |
+
"<|ne|>": 50313,
|
115 |
+
"<|nl|>": 50271,
|
116 |
+
"<|nn|>": 50342,
|
117 |
+
"<|no|>": 50288,
|
118 |
+
"<|oc|>": 50328,
|
119 |
+
"<|pa|>": 50321,
|
120 |
+
"<|pl|>": 50269,
|
121 |
+
"<|ps|>": 50340,
|
122 |
+
"<|pt|>": 50267,
|
123 |
+
"<|ro|>": 50284,
|
124 |
+
"<|ru|>": 50263,
|
125 |
+
"<|sa|>": 50344,
|
126 |
+
"<|sd|>": 50332,
|
127 |
+
"<|si|>": 50322,
|
128 |
+
"<|sk|>": 50298,
|
129 |
+
"<|sl|>": 50305,
|
130 |
+
"<|sn|>": 50324,
|
131 |
+
"<|so|>": 50326,
|
132 |
+
"<|sq|>": 50317,
|
133 |
+
"<|sr|>": 50303,
|
134 |
+
"<|su|>": 50357,
|
135 |
+
"<|sv|>": 50273,
|
136 |
+
"<|sw|>": 50318,
|
137 |
+
"<|ta|>": 50287,
|
138 |
+
"<|te|>": 50299,
|
139 |
+
"<|tg|>": 50331,
|
140 |
+
"<|th|>": 50289,
|
141 |
+
"<|tk|>": 50341,
|
142 |
+
"<|tl|>": 50348,
|
143 |
+
"<|tr|>": 50268,
|
144 |
+
"<|tt|>": 50351,
|
145 |
+
"<|uk|>": 50280,
|
146 |
+
"<|ur|>": 50290,
|
147 |
+
"<|uz|>": 50337,
|
148 |
+
"<|vi|>": 50278,
|
149 |
+
"<|yi|>": 50335,
|
150 |
+
"<|yo|>": 50325,
|
151 |
+
"<|zh|>": 50260
|
152 |
+
},
|
153 |
+
"language": "vi",
|
154 |
+
"max_initial_timestamp_index": 1,
|
155 |
+
"max_length": 448,
|
156 |
+
"no_timestamps_token_id": 50363,
|
157 |
+
"pad_token_id": 50257,
|
158 |
+
"return_timestamps": false,
|
159 |
+
"suppress_tokens": [
|
160 |
+
1,
|
161 |
+
2,
|
162 |
+
7,
|
163 |
+
8,
|
164 |
+
9,
|
165 |
+
10,
|
166 |
+
14,
|
167 |
+
25,
|
168 |
+
26,
|
169 |
+
27,
|
170 |
+
28,
|
171 |
+
29,
|
172 |
+
31,
|
173 |
+
58,
|
174 |
+
59,
|
175 |
+
60,
|
176 |
+
61,
|
177 |
+
62,
|
178 |
+
63,
|
179 |
+
90,
|
180 |
+
91,
|
181 |
+
92,
|
182 |
+
93,
|
183 |
+
359,
|
184 |
+
503,
|
185 |
+
522,
|
186 |
+
542,
|
187 |
+
873,
|
188 |
+
893,
|
189 |
+
902,
|
190 |
+
918,
|
191 |
+
922,
|
192 |
+
931,
|
193 |
+
1350,
|
194 |
+
1853,
|
195 |
+
1982,
|
196 |
+
2460,
|
197 |
+
2627,
|
198 |
+
3246,
|
199 |
+
3253,
|
200 |
+
3268,
|
201 |
+
3536,
|
202 |
+
3846,
|
203 |
+
3961,
|
204 |
+
4183,
|
205 |
+
4667,
|
206 |
+
6585,
|
207 |
+
6647,
|
208 |
+
7273,
|
209 |
+
9061,
|
210 |
+
9383,
|
211 |
+
10428,
|
212 |
+
10929,
|
213 |
+
11938,
|
214 |
+
12033,
|
215 |
+
12331,
|
216 |
+
12562,
|
217 |
+
13793,
|
218 |
+
14157,
|
219 |
+
14635,
|
220 |
+
15265,
|
221 |
+
15618,
|
222 |
+
16553,
|
223 |
+
16604,
|
224 |
+
18362,
|
225 |
+
18956,
|
226 |
+
20075,
|
227 |
+
21675,
|
228 |
+
22520,
|
229 |
+
26130,
|
230 |
+
26161,
|
231 |
+
26435,
|
232 |
+
28279,
|
233 |
+
29464,
|
234 |
+
31650,
|
235 |
+
32302,
|
236 |
+
32470,
|
237 |
+
36865,
|
238 |
+
42863,
|
239 |
+
47425,
|
240 |
+
49870,
|
241 |
+
50254,
|
242 |
+
50258,
|
243 |
+
50358,
|
244 |
+
50359,
|
245 |
+
50360,
|
246 |
+
50361,
|
247 |
+
50362
|
248 |
+
],
|
249 |
+
"task": "transcribe",
|
250 |
+
"task_to_id": {
|
251 |
+
"transcribe": 50359,
|
252 |
+
"translate": 50358
|
253 |
+
},
|
254 |
+
"transformers_version": "4.44.0.dev0"
|
255 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d401c4ff4ffa8662d04f9fea7836aabfa30c5ce3ecb3a49c3645575452d8f82
|
3 |
+
size 966995080
|
preprocessor_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chunk_length": 30,
|
3 |
+
"feature_extractor_type": "WhisperFeatureExtractor",
|
4 |
+
"feature_size": 80,
|
5 |
+
"hop_length": 160,
|
6 |
+
"n_fft": 400,
|
7 |
+
"n_samples": 480000,
|
8 |
+
"nb_max_frames": 3000,
|
9 |
+
"padding_side": "right",
|
10 |
+
"padding_value": 0.0,
|
11 |
+
"processor_class": "WhisperProcessor",
|
12 |
+
"return_attention_mask": false,
|
13 |
+
"sampling_rate": 16000
|
14 |
+
}
|
runs/Jul31_16-20-13_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722417616.TUF-GAMING-Z690-PLUS-D4.348812.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f52aa4337c11e9deadd701999a356018681985b64858e27c1fe144a6010d84b
|
3 |
+
size 14171
|
runs/Jul31_16-59-13_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722419955.TUF-GAMING-Z690-PLUS-D4.356588.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f963df3ff437a1901ae9fddd0d5761736e784a0a7ece9538f0981c483a1e98f
|
3 |
+
size 14171
|
runs/Jul31_17-20-47_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722421249.TUF-GAMING-Z690-PLUS-D4.362201.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d18a1f283b1fe5b9a215e50d834e6c9324d70694d8384ad1b5a5975ce31f6b5
|
3 |
+
size 9947
|
runs/Jul31_17-39-08_TUF-GAMING-Z690-PLUS-D4/events.out.tfevents.1722422350.TUF-GAMING-Z690-PLUS-D4.366458.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b8e44b184d1cdb3dfdec6993e51394392bcd9e5d03b918f9002c394e3224413
|
3 |
+
size 9721
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a9c17ef5b7e48ffec300641af481d393bee3144ed778d90928f2c175b0893e14
|
3 |
+
size 5368
|