bofenghuang
commited on
Commit
•
a0ce74c
1
Parent(s):
439793a
Fix alignment_heads
Browse files- ctranslate2/config.json +134 -14
- generation_config.json +0 -42
ctranslate2/config.json
CHANGED
@@ -1,44 +1,164 @@
|
|
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 |
-
|
30 |
],
|
31 |
[
|
32 |
-
|
33 |
4
|
34 |
],
|
35 |
[
|
36 |
-
|
37 |
-
|
38 |
],
|
39 |
[
|
40 |
-
|
41 |
6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
]
|
43 |
],
|
44 |
"lang_ids": [
|
|
|
1 |
{
|
2 |
"alignment_heads": [
|
3 |
[
|
4 |
+
2,
|
5 |
0
|
6 |
],
|
7 |
[
|
8 |
+
2,
|
9 |
+
1
|
10 |
+
],
|
11 |
+
[
|
12 |
+
2,
|
13 |
+
2
|
14 |
+
],
|
15 |
+
[
|
16 |
+
2,
|
17 |
+
3
|
18 |
+
],
|
19 |
+
[
|
20 |
+
2,
|
21 |
+
4
|
22 |
+
],
|
23 |
+
[
|
24 |
+
2,
|
25 |
+
5
|
26 |
+
],
|
27 |
+
[
|
28 |
+
2,
|
29 |
+
6
|
30 |
+
],
|
31 |
+
[
|
32 |
+
2,
|
33 |
+
7
|
34 |
+
],
|
35 |
+
[
|
36 |
+
2,
|
37 |
+
8
|
38 |
+
],
|
39 |
+
[
|
40 |
+
2,
|
41 |
+
9
|
42 |
+
],
|
43 |
+
[
|
44 |
+
2,
|
45 |
+
10
|
46 |
+
],
|
47 |
+
[
|
48 |
+
2,
|
49 |
+
11
|
50 |
+
],
|
51 |
+
[
|
52 |
+
2,
|
53 |
+
12
|
54 |
+
],
|
55 |
+
[
|
56 |
+
2,
|
57 |
+
13
|
58 |
+
],
|
59 |
+
[
|
60 |
+
2,
|
61 |
+
14
|
62 |
+
],
|
63 |
+
[
|
64 |
+
2,
|
65 |
+
15
|
66 |
+
],
|
67 |
+
[
|
68 |
+
2,
|
69 |
+
16
|
70 |
+
],
|
71 |
+
[
|
72 |
+
2,
|
73 |
17
|
74 |
],
|
75 |
[
|
76 |
+
2,
|
77 |
18
|
78 |
],
|
79 |
[
|
80 |
+
2,
|
81 |
+
19
|
82 |
],
|
83 |
[
|
84 |
+
3,
|
85 |
+
0
|
86 |
+
],
|
87 |
+
[
|
88 |
+
3,
|
89 |
1
|
90 |
],
|
91 |
[
|
92 |
+
3,
|
93 |
+
2
|
94 |
],
|
95 |
[
|
96 |
+
3,
|
97 |
+
3
|
98 |
],
|
99 |
[
|
100 |
+
3,
|
101 |
4
|
102 |
],
|
103 |
[
|
104 |
+
3,
|
105 |
+
5
|
106 |
],
|
107 |
[
|
108 |
+
3,
|
109 |
6
|
110 |
+
],
|
111 |
+
[
|
112 |
+
3,
|
113 |
+
7
|
114 |
+
],
|
115 |
+
[
|
116 |
+
3,
|
117 |
+
8
|
118 |
+
],
|
119 |
+
[
|
120 |
+
3,
|
121 |
+
9
|
122 |
+
],
|
123 |
+
[
|
124 |
+
3,
|
125 |
+
10
|
126 |
+
],
|
127 |
+
[
|
128 |
+
3,
|
129 |
+
11
|
130 |
+
],
|
131 |
+
[
|
132 |
+
3,
|
133 |
+
12
|
134 |
+
],
|
135 |
+
[
|
136 |
+
3,
|
137 |
+
13
|
138 |
+
],
|
139 |
+
[
|
140 |
+
3,
|
141 |
+
14
|
142 |
+
],
|
143 |
+
[
|
144 |
+
3,
|
145 |
+
15
|
146 |
+
],
|
147 |
+
[
|
148 |
+
3,
|
149 |
+
16
|
150 |
+
],
|
151 |
+
[
|
152 |
+
3,
|
153 |
+
17
|
154 |
+
],
|
155 |
+
[
|
156 |
+
3,
|
157 |
+
18
|
158 |
+
],
|
159 |
+
[
|
160 |
+
3,
|
161 |
+
19
|
162 |
]
|
163 |
],
|
164 |
"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
|