Upload WhisperForConditionalGeneration
Browse files- config.json +12 -2
- generation_config.json +255 -0
config.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "gelu",
|
|
|
5 |
"architectures": [
|
6 |
"WhisperForConditionalGeneration"
|
7 |
],
|
@@ -11,6 +12,7 @@
|
|
11 |
50257
|
12 |
],
|
13 |
"bos_token_id": 50257,
|
|
|
14 |
"d_model": 1024,
|
15 |
"decoder_attention_heads": 16,
|
16 |
"decoder_ffn_dim": 4096,
|
@@ -26,16 +28,24 @@
|
|
26 |
"forced_decoder_ids": null,
|
27 |
"init_std": 0.02,
|
28 |
"is_encoder_decoder": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
"max_length": 448,
|
30 |
"max_source_positions": 1500,
|
31 |
"max_target_positions": 448,
|
|
|
32 |
"model_type": "whisper",
|
33 |
"num_hidden_layers": 24,
|
34 |
"num_mel_bins": 80,
|
35 |
"pad_token_id": 50257,
|
36 |
"scale_embedding": false,
|
37 |
"torch_dtype": "float32",
|
38 |
-
"transformers_version": "4.
|
39 |
"use_cache": true,
|
|
|
40 |
"vocab_size": 51865
|
41 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "mikr/whisper-medium-cs-cv11",
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "gelu",
|
5 |
+
"apply_spec_augment": false,
|
6 |
"architectures": [
|
7 |
"WhisperForConditionalGeneration"
|
8 |
],
|
|
|
12 |
50257
|
13 |
],
|
14 |
"bos_token_id": 50257,
|
15 |
+
"classifier_proj_size": 256,
|
16 |
"d_model": 1024,
|
17 |
"decoder_attention_heads": 16,
|
18 |
"decoder_ffn_dim": 4096,
|
|
|
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": 24,
|
43 |
"num_mel_bins": 80,
|
44 |
"pad_token_id": 50257,
|
45 |
"scale_embedding": false,
|
46 |
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.36.2",
|
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 |
+
3,
|
5 |
+
1
|
6 |
+
],
|
7 |
+
[
|
8 |
+
4,
|
9 |
+
2
|
10 |
+
],
|
11 |
+
[
|
12 |
+
4,
|
13 |
+
3
|
14 |
+
],
|
15 |
+
[
|
16 |
+
4,
|
17 |
+
7
|
18 |
+
],
|
19 |
+
[
|
20 |
+
5,
|
21 |
+
1
|
22 |
+
],
|
23 |
+
[
|
24 |
+
5,
|
25 |
+
2
|
26 |
+
],
|
27 |
+
[
|
28 |
+
5,
|
29 |
+
4
|
30 |
+
],
|
31 |
+
[
|
32 |
+
5,
|
33 |
+
6
|
34 |
+
]
|
35 |
+
],
|
36 |
+
"begin_suppress_tokens": [
|
37 |
+
220,
|
38 |
+
50257
|
39 |
+
],
|
40 |
+
"bos_token_id": 50257,
|
41 |
+
"decoder_start_token_id": 50258,
|
42 |
+
"eos_token_id": 50257,
|
43 |
+
"forced_decoder_ids": [
|
44 |
+
[
|
45 |
+
1,
|
46 |
+
null
|
47 |
+
],
|
48 |
+
[
|
49 |
+
2,
|
50 |
+
50359
|
51 |
+
]
|
52 |
+
],
|
53 |
+
"is_multilingual": true,
|
54 |
+
"lang_to_id": {
|
55 |
+
"<|af|>": 50327,
|
56 |
+
"<|am|>": 50334,
|
57 |
+
"<|ar|>": 50272,
|
58 |
+
"<|as|>": 50350,
|
59 |
+
"<|az|>": 50304,
|
60 |
+
"<|ba|>": 50355,
|
61 |
+
"<|be|>": 50330,
|
62 |
+
"<|bg|>": 50292,
|
63 |
+
"<|bn|>": 50302,
|
64 |
+
"<|bo|>": 50347,
|
65 |
+
"<|br|>": 50309,
|
66 |
+
"<|bs|>": 50315,
|
67 |
+
"<|ca|>": 50270,
|
68 |
+
"<|cs|>": 50283,
|
69 |
+
"<|cy|>": 50297,
|
70 |
+
"<|da|>": 50285,
|
71 |
+
"<|de|>": 50261,
|
72 |
+
"<|el|>": 50281,
|
73 |
+
"<|en|>": 50259,
|
74 |
+
"<|es|>": 50262,
|
75 |
+
"<|et|>": 50307,
|
76 |
+
"<|eu|>": 50310,
|
77 |
+
"<|fa|>": 50300,
|
78 |
+
"<|fi|>": 50277,
|
79 |
+
"<|fo|>": 50338,
|
80 |
+
"<|fr|>": 50265,
|
81 |
+
"<|gl|>": 50319,
|
82 |
+
"<|gu|>": 50333,
|
83 |
+
"<|haw|>": 50352,
|
84 |
+
"<|ha|>": 50354,
|
85 |
+
"<|he|>": 50279,
|
86 |
+
"<|hi|>": 50276,
|
87 |
+
"<|hr|>": 50291,
|
88 |
+
"<|ht|>": 50339,
|
89 |
+
"<|hu|>": 50286,
|
90 |
+
"<|hy|>": 50312,
|
91 |
+
"<|id|>": 50275,
|
92 |
+
"<|is|>": 50311,
|
93 |
+
"<|it|>": 50274,
|
94 |
+
"<|ja|>": 50266,
|
95 |
+
"<|jw|>": 50356,
|
96 |
+
"<|ka|>": 50329,
|
97 |
+
"<|kk|>": 50316,
|
98 |
+
"<|km|>": 50323,
|
99 |
+
"<|kn|>": 50306,
|
100 |
+
"<|ko|>": 50264,
|
101 |
+
"<|la|>": 50294,
|
102 |
+
"<|lb|>": 50345,
|
103 |
+
"<|ln|>": 50353,
|
104 |
+
"<|lo|>": 50336,
|
105 |
+
"<|lt|>": 50293,
|
106 |
+
"<|lv|>": 50301,
|
107 |
+
"<|mg|>": 50349,
|
108 |
+
"<|mi|>": 50295,
|
109 |
+
"<|mk|>": 50308,
|
110 |
+
"<|ml|>": 50296,
|
111 |
+
"<|mn|>": 50314,
|
112 |
+
"<|mr|>": 50320,
|
113 |
+
"<|ms|>": 50282,
|
114 |
+
"<|mt|>": 50343,
|
115 |
+
"<|my|>": 50346,
|
116 |
+
"<|ne|>": 50313,
|
117 |
+
"<|nl|>": 50271,
|
118 |
+
"<|nn|>": 50342,
|
119 |
+
"<|no|>": 50288,
|
120 |
+
"<|oc|>": 50328,
|
121 |
+
"<|pa|>": 50321,
|
122 |
+
"<|pl|>": 50269,
|
123 |
+
"<|ps|>": 50340,
|
124 |
+
"<|pt|>": 50267,
|
125 |
+
"<|ro|>": 50284,
|
126 |
+
"<|ru|>": 50263,
|
127 |
+
"<|sa|>": 50344,
|
128 |
+
"<|sd|>": 50332,
|
129 |
+
"<|si|>": 50322,
|
130 |
+
"<|sk|>": 50298,
|
131 |
+
"<|sl|>": 50305,
|
132 |
+
"<|sn|>": 50324,
|
133 |
+
"<|so|>": 50326,
|
134 |
+
"<|sq|>": 50317,
|
135 |
+
"<|sr|>": 50303,
|
136 |
+
"<|su|>": 50357,
|
137 |
+
"<|sv|>": 50273,
|
138 |
+
"<|sw|>": 50318,
|
139 |
+
"<|ta|>": 50287,
|
140 |
+
"<|te|>": 50299,
|
141 |
+
"<|tg|>": 50331,
|
142 |
+
"<|th|>": 50289,
|
143 |
+
"<|tk|>": 50341,
|
144 |
+
"<|tl|>": 50348,
|
145 |
+
"<|tr|>": 50268,
|
146 |
+
"<|tt|>": 50351,
|
147 |
+
"<|uk|>": 50280,
|
148 |
+
"<|ur|>": 50290,
|
149 |
+
"<|uz|>": 50337,
|
150 |
+
"<|vi|>": 50278,
|
151 |
+
"<|yi|>": 50335,
|
152 |
+
"<|yo|>": 50325,
|
153 |
+
"<|zh|>": 50260
|
154 |
+
},
|
155 |
+
"max_initial_timestamp_index": 1,
|
156 |
+
"max_length": 448,
|
157 |
+
"no_timestamps_token_id": 50363,
|
158 |
+
"pad_token_id": 50257,
|
159 |
+
"return_timestamps": false,
|
160 |
+
"suppress_tokens": [
|
161 |
+
1,
|
162 |
+
2,
|
163 |
+
7,
|
164 |
+
8,
|
165 |
+
9,
|
166 |
+
10,
|
167 |
+
14,
|
168 |
+
25,
|
169 |
+
26,
|
170 |
+
27,
|
171 |
+
28,
|
172 |
+
29,
|
173 |
+
31,
|
174 |
+
58,
|
175 |
+
59,
|
176 |
+
60,
|
177 |
+
61,
|
178 |
+
62,
|
179 |
+
63,
|
180 |
+
90,
|
181 |
+
91,
|
182 |
+
92,
|
183 |
+
93,
|
184 |
+
359,
|
185 |
+
503,
|
186 |
+
522,
|
187 |
+
542,
|
188 |
+
873,
|
189 |
+
893,
|
190 |
+
902,
|
191 |
+
918,
|
192 |
+
922,
|
193 |
+
931,
|
194 |
+
1350,
|
195 |
+
1853,
|
196 |
+
1982,
|
197 |
+
2460,
|
198 |
+
2627,
|
199 |
+
3246,
|
200 |
+
3253,
|
201 |
+
3268,
|
202 |
+
3536,
|
203 |
+
3846,
|
204 |
+
3961,
|
205 |
+
4183,
|
206 |
+
4667,
|
207 |
+
6585,
|
208 |
+
6647,
|
209 |
+
7273,
|
210 |
+
9061,
|
211 |
+
9383,
|
212 |
+
10428,
|
213 |
+
10929,
|
214 |
+
11938,
|
215 |
+
12033,
|
216 |
+
12331,
|
217 |
+
12562,
|
218 |
+
13793,
|
219 |
+
14157,
|
220 |
+
14635,
|
221 |
+
15265,
|
222 |
+
15618,
|
223 |
+
16553,
|
224 |
+
16604,
|
225 |
+
18362,
|
226 |
+
18956,
|
227 |
+
20075,
|
228 |
+
21675,
|
229 |
+
22520,
|
230 |
+
26130,
|
231 |
+
26161,
|
232 |
+
26435,
|
233 |
+
28279,
|
234 |
+
29464,
|
235 |
+
31650,
|
236 |
+
32302,
|
237 |
+
32470,
|
238 |
+
36865,
|
239 |
+
42863,
|
240 |
+
47425,
|
241 |
+
49870,
|
242 |
+
50254,
|
243 |
+
50258,
|
244 |
+
50358,
|
245 |
+
50359,
|
246 |
+
50360,
|
247 |
+
50361,
|
248 |
+
50362
|
249 |
+
],
|
250 |
+
"task_to_id": {
|
251 |
+
"transcribe": 50359,
|
252 |
+
"translate": 50358
|
253 |
+
},
|
254 |
+
"transformers_version": "4.36.2"
|
255 |
+
}
|