pere commited on
Commit
367647a
1 Parent(s): 3f9188d

Updating CTranslate

Browse files
Files changed (7) hide show
  1. config.json +242 -5
  2. config_hf.json +152 -0
  3. ct2/config.json +239 -0
  4. ct2/model.bin +3 -0
  5. ct2/vocabulary.json +0 -0
  6. model.bin +3 -0
  7. vocabulary.json +0 -0
config.json CHANGED
@@ -1,4 +1,241 @@
1
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  "_name_or_path": "./",
3
  "activation_dropout": 0.1,
4
  "activation_function": "gelu",
@@ -6,7 +243,7 @@
6
  "architectures": [
7
  "WhisperForConditionalGeneration"
8
  ],
9
- "attention_dropout": 0.0,
10
  "begin_suppress_tokens": [
11
  220,
12
  50257
@@ -16,13 +253,13 @@
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": [
@@ -43,7 +280,7 @@
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,
 
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
+ "lang_ids": [
45
+ 50259,
46
+ 50260,
47
+ 50261,
48
+ 50262,
49
+ 50263,
50
+ 50264,
51
+ 50265,
52
+ 50266,
53
+ 50267,
54
+ 50268,
55
+ 50269,
56
+ 50270,
57
+ 50271,
58
+ 50272,
59
+ 50273,
60
+ 50274,
61
+ 50275,
62
+ 50276,
63
+ 50277,
64
+ 50278,
65
+ 50279,
66
+ 50280,
67
+ 50281,
68
+ 50282,
69
+ 50283,
70
+ 50284,
71
+ 50285,
72
+ 50286,
73
+ 50287,
74
+ 50288,
75
+ 50289,
76
+ 50290,
77
+ 50291,
78
+ 50292,
79
+ 50293,
80
+ 50294,
81
+ 50295,
82
+ 50296,
83
+ 50297,
84
+ 50298,
85
+ 50299,
86
+ 50300,
87
+ 50301,
88
+ 50302,
89
+ 50303,
90
+ 50304,
91
+ 50305,
92
+ 50306,
93
+ 50307,
94
+ 50308,
95
+ 50309,
96
+ 50310,
97
+ 50311,
98
+ 50312,
99
+ 50313,
100
+ 50314,
101
+ 50315,
102
+ 50316,
103
+ 50317,
104
+ 50318,
105
+ 50319,
106
+ 50320,
107
+ 50321,
108
+ 50322,
109
+ 50323,
110
+ 50324,
111
+ 50325,
112
+ 50326,
113
+ 50327,
114
+ 50328,
115
+ 50329,
116
+ 50330,
117
+ 50331,
118
+ 50332,
119
+ 50333,
120
+ 50334,
121
+ 50335,
122
+ 50336,
123
+ 50337,
124
+ 50338,
125
+ 50339,
126
+ 50340,
127
+ 50341,
128
+ 50342,
129
+ 50343,
130
+ 50344,
131
+ 50345,
132
+ 50346,
133
+ 50347,
134
+ 50348,
135
+ 50349,
136
+ 50350,
137
+ 50351,
138
+ 50352,
139
+ 50353,
140
+ 50354,
141
+ 50355,
142
+ 50356,
143
+ 50357
144
+ ],
145
+ "suppress_ids": [
146
+ 1,
147
+ 2,
148
+ 7,
149
+ 8,
150
+ 9,
151
+ 10,
152
+ 14,
153
+ 25,
154
+ 26,
155
+ 27,
156
+ 28,
157
+ 29,
158
+ 31,
159
+ 58,
160
+ 59,
161
+ 60,
162
+ 61,
163
+ 62,
164
+ 63,
165
+ 90,
166
+ 91,
167
+ 92,
168
+ 93,
169
+ 359,
170
+ 503,
171
+ 522,
172
+ 542,
173
+ 873,
174
+ 893,
175
+ 902,
176
+ 918,
177
+ 922,
178
+ 931,
179
+ 1350,
180
+ 1853,
181
+ 1982,
182
+ 2460,
183
+ 2627,
184
+ 3246,
185
+ 3253,
186
+ 3268,
187
+ 3536,
188
+ 3846,
189
+ 3961,
190
+ 4183,
191
+ 4667,
192
+ 6585,
193
+ 6647,
194
+ 7273,
195
+ 9061,
196
+ 9383,
197
+ 10428,
198
+ 10929,
199
+ 11938,
200
+ 12033,
201
+ 12331,
202
+ 12562,
203
+ 13793,
204
+ 14157,
205
+ 14635,
206
+ 15265,
207
+ 15618,
208
+ 16553,
209
+ 16604,
210
+ 18362,
211
+ 18956,
212
+ 20075,
213
+ 21675,
214
+ 22520,
215
+ 26130,
216
+ 26161,
217
+ 26435,
218
+ 28279,
219
+ 29464,
220
+ 31650,
221
+ 32302,
222
+ 32470,
223
+ 36865,
224
+ 42863,
225
+ 47425,
226
+ 49870,
227
+ 50254,
228
+ 50258,
229
+ 50358,
230
+ 50359,
231
+ 50360,
232
+ 50361,
233
+ 50362
234
+ ],
235
+ "suppress_ids_begin": [
236
+ 220,
237
+ 50257
238
+ ],
239
  "_name_or_path": "./",
240
  "activation_dropout": 0.1,
241
  "activation_function": "gelu",
 
243
  "architectures": [
244
  "WhisperForConditionalGeneration"
245
  ],
246
+ "attention_dropout": 0,
247
  "begin_suppress_tokens": [
248
  220,
249
  50257
 
253
  "d_model": 768,
254
  "decoder_attention_heads": 12,
255
  "decoder_ffn_dim": 3072,
256
+ "decoder_layerdrop": 0,
257
  "decoder_layers": 12,
258
  "decoder_start_token_id": 50258,
259
+ "dropout": 0,
260
  "encoder_attention_heads": 12,
261
  "encoder_ffn_dim": 3072,
262
+ "encoder_layerdrop": 0,
263
  "encoder_layers": 12,
264
  "eos_token_id": 50257,
265
  "forced_decoder_ids": [
 
280
  "is_encoder_decoder": true,
281
  "mask_feature_length": 10,
282
  "mask_feature_min_masks": 0,
283
+ "mask_feature_prob": 0,
284
  "mask_time_length": 10,
285
  "mask_time_min_masks": 2,
286
  "mask_time_prob": 0.05,
config_hf.json ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./",
3
+ "activation_dropout": 0.1,
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": [
29
+ [
30
+ 1,
31
+ 50259
32
+ ],
33
+ [
34
+ 2,
35
+ 50359
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": 12,
56
+ "num_mel_bins": 80,
57
+ "pad_token_id": 50257,
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
+ 359,
84
+ 503,
85
+ 522,
86
+ 542,
87
+ 873,
88
+ 893,
89
+ 902,
90
+ 918,
91
+ 922,
92
+ 931,
93
+ 1350,
94
+ 1853,
95
+ 1982,
96
+ 2460,
97
+ 2627,
98
+ 3246,
99
+ 3253,
100
+ 3268,
101
+ 3536,
102
+ 3846,
103
+ 3961,
104
+ 4183,
105
+ 4667,
106
+ 6585,
107
+ 6647,
108
+ 7273,
109
+ 9061,
110
+ 9383,
111
+ 10428,
112
+ 10929,
113
+ 11938,
114
+ 12033,
115
+ 12331,
116
+ 12562,
117
+ 13793,
118
+ 14157,
119
+ 14635,
120
+ 15265,
121
+ 15618,
122
+ 16553,
123
+ 16604,
124
+ 18362,
125
+ 18956,
126
+ 20075,
127
+ 21675,
128
+ 22520,
129
+ 26130,
130
+ 26161,
131
+ 26435,
132
+ 28279,
133
+ 29464,
134
+ 31650,
135
+ 32302,
136
+ 32470,
137
+ 36865,
138
+ 42863,
139
+ 47425,
140
+ 49870,
141
+ 50254,
142
+ 50258,
143
+ 50360,
144
+ 50361,
145
+ 50362
146
+ ],
147
+ "torch_dtype": "float32",
148
+ "transformers_version": "4.34.1",
149
+ "use_cache": true,
150
+ "use_weighted_layer_sum": false,
151
+ "vocab_size": 51865
152
+ }
ct2/config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "lang_ids": [
45
+ 50259,
46
+ 50260,
47
+ 50261,
48
+ 50262,
49
+ 50263,
50
+ 50264,
51
+ 50265,
52
+ 50266,
53
+ 50267,
54
+ 50268,
55
+ 50269,
56
+ 50270,
57
+ 50271,
58
+ 50272,
59
+ 50273,
60
+ 50274,
61
+ 50275,
62
+ 50276,
63
+ 50277,
64
+ 50278,
65
+ 50279,
66
+ 50280,
67
+ 50281,
68
+ 50282,
69
+ 50283,
70
+ 50284,
71
+ 50285,
72
+ 50286,
73
+ 50287,
74
+ 50288,
75
+ 50289,
76
+ 50290,
77
+ 50291,
78
+ 50292,
79
+ 50293,
80
+ 50294,
81
+ 50295,
82
+ 50296,
83
+ 50297,
84
+ 50298,
85
+ 50299,
86
+ 50300,
87
+ 50301,
88
+ 50302,
89
+ 50303,
90
+ 50304,
91
+ 50305,
92
+ 50306,
93
+ 50307,
94
+ 50308,
95
+ 50309,
96
+ 50310,
97
+ 50311,
98
+ 50312,
99
+ 50313,
100
+ 50314,
101
+ 50315,
102
+ 50316,
103
+ 50317,
104
+ 50318,
105
+ 50319,
106
+ 50320,
107
+ 50321,
108
+ 50322,
109
+ 50323,
110
+ 50324,
111
+ 50325,
112
+ 50326,
113
+ 50327,
114
+ 50328,
115
+ 50329,
116
+ 50330,
117
+ 50331,
118
+ 50332,
119
+ 50333,
120
+ 50334,
121
+ 50335,
122
+ 50336,
123
+ 50337,
124
+ 50338,
125
+ 50339,
126
+ 50340,
127
+ 50341,
128
+ 50342,
129
+ 50343,
130
+ 50344,
131
+ 50345,
132
+ 50346,
133
+ 50347,
134
+ 50348,
135
+ 50349,
136
+ 50350,
137
+ 50351,
138
+ 50352,
139
+ 50353,
140
+ 50354,
141
+ 50355,
142
+ 50356,
143
+ 50357
144
+ ],
145
+ "suppress_ids": [
146
+ 1,
147
+ 2,
148
+ 7,
149
+ 8,
150
+ 9,
151
+ 10,
152
+ 14,
153
+ 25,
154
+ 26,
155
+ 27,
156
+ 28,
157
+ 29,
158
+ 31,
159
+ 58,
160
+ 59,
161
+ 60,
162
+ 61,
163
+ 62,
164
+ 63,
165
+ 90,
166
+ 91,
167
+ 92,
168
+ 93,
169
+ 359,
170
+ 503,
171
+ 522,
172
+ 542,
173
+ 873,
174
+ 893,
175
+ 902,
176
+ 918,
177
+ 922,
178
+ 931,
179
+ 1350,
180
+ 1853,
181
+ 1982,
182
+ 2460,
183
+ 2627,
184
+ 3246,
185
+ 3253,
186
+ 3268,
187
+ 3536,
188
+ 3846,
189
+ 3961,
190
+ 4183,
191
+ 4667,
192
+ 6585,
193
+ 6647,
194
+ 7273,
195
+ 9061,
196
+ 9383,
197
+ 10428,
198
+ 10929,
199
+ 11938,
200
+ 12033,
201
+ 12331,
202
+ 12562,
203
+ 13793,
204
+ 14157,
205
+ 14635,
206
+ 15265,
207
+ 15618,
208
+ 16553,
209
+ 16604,
210
+ 18362,
211
+ 18956,
212
+ 20075,
213
+ 21675,
214
+ 22520,
215
+ 26130,
216
+ 26161,
217
+ 26435,
218
+ 28279,
219
+ 29464,
220
+ 31650,
221
+ 32302,
222
+ 32470,
223
+ 36865,
224
+ 42863,
225
+ 47425,
226
+ 49870,
227
+ 50254,
228
+ 50258,
229
+ 50358,
230
+ 50359,
231
+ 50360,
232
+ 50361,
233
+ 50362
234
+ ],
235
+ "suppress_ids_begin": [
236
+ 220,
237
+ 50257
238
+ ]
239
+ }
ct2/model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08ada3a880f465890c8168df3b8862a706cfd84889a3c2964849d8a71022dcec
3
+ size 967072097
ct2/vocabulary.json ADDED
The diff for this file is too large to render. See raw diff
 
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08ada3a880f465890c8168df3b8862a706cfd84889a3c2964849d8a71022dcec
3
+ size 967072097
vocabulary.json ADDED
The diff for this file is too large to render. See raw diff