bofenghuang
commited on
Commit
•
a8e3c8f
1
Parent(s):
e4cfdcc
Fix alignment_heads
Browse files- ctranslate2/config.json +292 -12
- generation_config.json +0 -42
ctranslate2/config.json
CHANGED
@@ -1,44 +1,324 @@
|
|
1 |
{
|
2 |
"alignment_heads": [
|
3 |
[
|
4 |
-
|
5 |
0
|
6 |
],
|
7 |
[
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
17
|
10 |
],
|
11 |
[
|
12 |
-
|
13 |
18
|
14 |
],
|
15 |
[
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
],
|
19 |
[
|
20 |
-
|
21 |
1
|
22 |
],
|
23 |
[
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
],
|
27 |
[
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
11
|
30 |
],
|
31 |
[
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
4
|
34 |
],
|
35 |
[
|
36 |
-
|
|
|
|
|
|
|
|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|
44 |
+
4,
|
45 |
+
10
|
46 |
+
],
|
47 |
+
[
|
48 |
+
4,
|
49 |
+
11
|
50 |
+
],
|
51 |
+
[
|
52 |
+
4,
|
53 |
+
12
|
54 |
+
],
|
55 |
+
[
|
56 |
+
4,
|
57 |
+
13
|
58 |
+
],
|
59 |
+
[
|
60 |
+
4,
|
61 |
+
14
|
62 |
+
],
|
63 |
+
[
|
64 |
+
4,
|
65 |
+
15
|
66 |
+
],
|
67 |
+
[
|
68 |
+
4,
|
69 |
+
16
|
70 |
+
],
|
71 |
+
[
|
72 |
+
4,
|
73 |
17
|
74 |
],
|
75 |
[
|
76 |
+
4,
|
77 |
18
|
78 |
],
|
79 |
[
|
80 |
+
4,
|
81 |
+
19
|
82 |
+
],
|
83 |
+
[
|
84 |
+
5,
|
85 |
+
0
|
86 |
],
|
87 |
[
|
88 |
+
5,
|
89 |
1
|
90 |
],
|
91 |
[
|
92 |
+
5,
|
93 |
+
2
|
94 |
+
],
|
95 |
+
[
|
96 |
+
5,
|
97 |
+
3
|
98 |
+
],
|
99 |
+
[
|
100 |
+
5,
|
101 |
+
4
|
102 |
+
],
|
103 |
+
[
|
104 |
+
5,
|
105 |
+
5
|
106 |
+
],
|
107 |
+
[
|
108 |
+
5,
|
109 |
+
6
|
110 |
+
],
|
111 |
+
[
|
112 |
+
5,
|
113 |
+
7
|
114 |
+
],
|
115 |
+
[
|
116 |
+
5,
|
117 |
+
8
|
118 |
+
],
|
119 |
+
[
|
120 |
+
5,
|
121 |
+
9
|
122 |
],
|
123 |
[
|
124 |
+
5,
|
125 |
+
10
|
126 |
+
],
|
127 |
+
[
|
128 |
+
5,
|
129 |
11
|
130 |
],
|
131 |
[
|
132 |
+
5,
|
133 |
+
12
|
134 |
+
],
|
135 |
+
[
|
136 |
+
5,
|
137 |
+
13
|
138 |
+
],
|
139 |
+
[
|
140 |
+
5,
|
141 |
+
14
|
142 |
+
],
|
143 |
+
[
|
144 |
+
5,
|
145 |
+
15
|
146 |
+
],
|
147 |
+
[
|
148 |
+
5,
|
149 |
+
16
|
150 |
+
],
|
151 |
+
[
|
152 |
+
5,
|
153 |
+
17
|
154 |
+
],
|
155 |
+
[
|
156 |
+
5,
|
157 |
+
18
|
158 |
+
],
|
159 |
+
[
|
160 |
+
5,
|
161 |
+
19
|
162 |
+
],
|
163 |
+
[
|
164 |
+
6,
|
165 |
+
0
|
166 |
+
],
|
167 |
+
[
|
168 |
+
6,
|
169 |
+
1
|
170 |
+
],
|
171 |
+
[
|
172 |
+
6,
|
173 |
+
2
|
174 |
+
],
|
175 |
+
[
|
176 |
+
6,
|
177 |
+
3
|
178 |
+
],
|
179 |
+
[
|
180 |
+
6,
|
181 |
4
|
182 |
],
|
183 |
[
|
184 |
+
6,
|
185 |
+
5
|
186 |
+
],
|
187 |
+
[
|
188 |
+
6,
|
189 |
+
6
|
190 |
+
],
|
191 |
+
[
|
192 |
+
6,
|
193 |
+
7
|
194 |
+
],
|
195 |
+
[
|
196 |
+
6,
|
197 |
+
8
|
198 |
+
],
|
199 |
+
[
|
200 |
+
6,
|
201 |
+
9
|
202 |
+
],
|
203 |
+
[
|
204 |
+
6,
|
205 |
+
10
|
206 |
+
],
|
207 |
+
[
|
208 |
+
6,
|
209 |
+
11
|
210 |
+
],
|
211 |
+
[
|
212 |
+
6,
|
213 |
+
12
|
214 |
+
],
|
215 |
+
[
|
216 |
+
6,
|
217 |
+
13
|
218 |
+
],
|
219 |
+
[
|
220 |
+
6,
|
221 |
+
14
|
222 |
+
],
|
223 |
+
[
|
224 |
+
6,
|
225 |
+
15
|
226 |
+
],
|
227 |
+
[
|
228 |
+
6,
|
229 |
+
16
|
230 |
+
],
|
231 |
+
[
|
232 |
+
6,
|
233 |
+
17
|
234 |
+
],
|
235 |
+
[
|
236 |
+
6,
|
237 |
+
18
|
238 |
+
],
|
239 |
+
[
|
240 |
+
6,
|
241 |
+
19
|
242 |
+
],
|
243 |
+
[
|
244 |
+
7,
|
245 |
+
0
|
246 |
+
],
|
247 |
+
[
|
248 |
+
7,
|
249 |
1
|
250 |
],
|
251 |
[
|
252 |
+
7,
|
253 |
+
2
|
254 |
+
],
|
255 |
+
[
|
256 |
+
7,
|
257 |
+
3
|
258 |
+
],
|
259 |
+
[
|
260 |
+
7,
|
261 |
+
4
|
262 |
+
],
|
263 |
+
[
|
264 |
+
7,
|
265 |
+
5
|
266 |
+
],
|
267 |
+
[
|
268 |
+
7,
|
269 |
6
|
270 |
+
],
|
271 |
+
[
|
272 |
+
7,
|
273 |
+
7
|
274 |
+
],
|
275 |
+
[
|
276 |
+
7,
|
277 |
+
8
|
278 |
+
],
|
279 |
+
[
|
280 |
+
7,
|
281 |
+
9
|
282 |
+
],
|
283 |
+
[
|
284 |
+
7,
|
285 |
+
10
|
286 |
+
],
|
287 |
+
[
|
288 |
+
7,
|
289 |
+
11
|
290 |
+
],
|
291 |
+
[
|
292 |
+
7,
|
293 |
+
12
|
294 |
+
],
|
295 |
+
[
|
296 |
+
7,
|
297 |
+
13
|
298 |
+
],
|
299 |
+
[
|
300 |
+
7,
|
301 |
+
14
|
302 |
+
],
|
303 |
+
[
|
304 |
+
7,
|
305 |
+
15
|
306 |
+
],
|
307 |
+
[
|
308 |
+
7,
|
309 |
+
16
|
310 |
+
],
|
311 |
+
[
|
312 |
+
7,
|
313 |
+
17
|
314 |
+
],
|
315 |
+
[
|
316 |
+
7,
|
317 |
+
18
|
318 |
+
],
|
319 |
+
[
|
320 |
+
7,
|
321 |
+
19
|
322 |
]
|
323 |
],
|
324 |
"lang_ids": [
|
generation_config.json
CHANGED
@@ -1,46 +1,4 @@
|
|
1 |
{
|
2 |
-
"alignment_heads": [
|
3 |
-
[
|
4 |
-
7,
|
5 |
-
0
|
6 |
-
],
|
7 |
-
[
|
8 |
-
10,
|
9 |
-
17
|
10 |
-
],
|
11 |
-
[
|
12 |
-
12,
|
13 |
-
18
|
14 |
-
],
|
15 |
-
[
|
16 |
-
13,
|
17 |
-
12
|
18 |
-
],
|
19 |
-
[
|
20 |
-
16,
|
21 |
-
1
|
22 |
-
],
|
23 |
-
[
|
24 |
-
17,
|
25 |
-
14
|
26 |
-
],
|
27 |
-
[
|
28 |
-
19,
|
29 |
-
11
|
30 |
-
],
|
31 |
-
[
|
32 |
-
21,
|
33 |
-
4
|
34 |
-
],
|
35 |
-
[
|
36 |
-
24,
|
37 |
-
1
|
38 |
-
],
|
39 |
-
[
|
40 |
-
25,
|
41 |
-
6
|
42 |
-
]
|
43 |
-
],
|
44 |
"begin_suppress_tokens": [
|
45 |
220,
|
46 |
50257
|
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"begin_suppress_tokens": [
|
3 |
220,
|
4 |
50257
|