bofenghuang
commited on
Commit
•
3bb349f
1
Parent(s):
c14b508
Fix alignment_heads
Browse files- ctranslate2/config.json +57 -17
- generation_config.json +0 -42
ctranslate2/config.json
CHANGED
@@ -1,44 +1,84 @@
|
|
1 |
{
|
2 |
"alignment_heads": [
|
3 |
[
|
4 |
-
|
5 |
0
|
6 |
],
|
7 |
[
|
8 |
-
|
9 |
-
|
10 |
],
|
11 |
[
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
],
|
15 |
[
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
12
|
18 |
],
|
19 |
[
|
20 |
-
|
21 |
-
|
22 |
],
|
23 |
[
|
24 |
-
|
25 |
14
|
26 |
],
|
27 |
[
|
28 |
-
|
29 |
-
|
30 |
],
|
31 |
[
|
32 |
-
|
33 |
-
|
34 |
],
|
35 |
[
|
36 |
-
|
37 |
-
|
38 |
],
|
39 |
[
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
42 |
]
|
43 |
],
|
44 |
"lang_ids": [
|
|
|
1 |
{
|
2 |
"alignment_heads": [
|
3 |
[
|
4 |
+
1,
|
5 |
0
|
6 |
],
|
7 |
[
|
8 |
+
1,
|
9 |
+
1
|
10 |
],
|
11 |
[
|
12 |
+
1,
|
13 |
+
2
|
14 |
+
],
|
15 |
+
[
|
16 |
+
1,
|
17 |
+
3
|
18 |
+
],
|
19 |
+
[
|
20 |
+
1,
|
21 |
+
4
|
22 |
+
],
|
23 |
+
[
|
24 |
+
1,
|
25 |
+
5
|
26 |
+
],
|
27 |
+
[
|
28 |
+
1,
|
29 |
+
6
|
30 |
+
],
|
31 |
+
[
|
32 |
+
1,
|
33 |
+
7
|
34 |
+
],
|
35 |
+
[
|
36 |
+
1,
|
37 |
+
8
|
38 |
],
|
39 |
[
|
40 |
+
1,
|
41 |
+
9
|
42 |
+
],
|
43 |
+
[
|
44 |
+
1,
|
45 |
+
10
|
46 |
+
],
|
47 |
+
[
|
48 |
+
1,
|
49 |
+
11
|
50 |
+
],
|
51 |
+
[
|
52 |
+
1,
|
53 |
12
|
54 |
],
|
55 |
[
|
56 |
+
1,
|
57 |
+
13
|
58 |
],
|
59 |
[
|
60 |
+
1,
|
61 |
14
|
62 |
],
|
63 |
[
|
64 |
+
1,
|
65 |
+
15
|
66 |
],
|
67 |
[
|
68 |
+
1,
|
69 |
+
16
|
70 |
],
|
71 |
[
|
72 |
+
1,
|
73 |
+
17
|
74 |
],
|
75 |
[
|
76 |
+
1,
|
77 |
+
18
|
78 |
+
],
|
79 |
+
[
|
80 |
+
1,
|
81 |
+
19
|
82 |
]
|
83 |
],
|
84 |
"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
|