zsy12345 commited on
Commit
e148c5f
1 Parent(s): edf8c28

Upload WhisperForConditionalGeneration

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