jymcc commited on
Commit
be62208
1 Parent(s): 7d75020
pytorch_model.bin → pytorch_model-00001-of-00002.bin RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8de0d9b8db8c13fb04529f99e9c5c98c0a413bf4eb4ec7c79735688cca23f5c8
3
- size 30023921125
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9eef772cb719086350d65ad3dc0bb117962ab2b8b59550a9fdfeb731b36df44
3
+ size 9934623283
pytorch_model-00002-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:946dd7bc0e41ae16176902913b756c8122e18b20c774d0245aaa9522877d0da6
3
+ size 5077401650
pytorch_model.bin.index.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 15011946496
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "pytorch_model-00002-of-00002.bin",
7
+ "model.embed_tokens.weight": "pytorch_model-00001-of-00002.bin",
8
+ "model.layers.0.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
9
+ "model.layers.0.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
10
+ "model.layers.0.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
11
+ "model.layers.0.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
12
+ "model.layers.0.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
13
+ "model.layers.0.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
14
+ "model.layers.0.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
15
+ "model.layers.1.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
16
+ "model.layers.1.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
17
+ "model.layers.1.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
18
+ "model.layers.1.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
19
+ "model.layers.1.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
20
+ "model.layers.1.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
21
+ "model.layers.1.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
22
+ "model.layers.10.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
23
+ "model.layers.10.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
24
+ "model.layers.10.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
25
+ "model.layers.10.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
26
+ "model.layers.10.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
27
+ "model.layers.10.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
28
+ "model.layers.10.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
29
+ "model.layers.11.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
30
+ "model.layers.11.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
31
+ "model.layers.11.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
32
+ "model.layers.11.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
33
+ "model.layers.11.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
34
+ "model.layers.11.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
35
+ "model.layers.11.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
36
+ "model.layers.12.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
37
+ "model.layers.12.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
38
+ "model.layers.12.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
39
+ "model.layers.12.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
40
+ "model.layers.12.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
41
+ "model.layers.12.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
42
+ "model.layers.12.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
43
+ "model.layers.13.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
44
+ "model.layers.13.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
45
+ "model.layers.13.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
46
+ "model.layers.13.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
47
+ "model.layers.13.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
48
+ "model.layers.13.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
49
+ "model.layers.13.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
50
+ "model.layers.14.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
51
+ "model.layers.14.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
52
+ "model.layers.14.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
53
+ "model.layers.14.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
54
+ "model.layers.14.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
55
+ "model.layers.14.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
56
+ "model.layers.14.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
57
+ "model.layers.15.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
58
+ "model.layers.15.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
59
+ "model.layers.15.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
60
+ "model.layers.15.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
61
+ "model.layers.15.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
62
+ "model.layers.15.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
63
+ "model.layers.15.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
64
+ "model.layers.16.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
65
+ "model.layers.16.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
66
+ "model.layers.16.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
67
+ "model.layers.16.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
68
+ "model.layers.16.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
69
+ "model.layers.16.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
70
+ "model.layers.16.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
71
+ "model.layers.17.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
72
+ "model.layers.17.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
73
+ "model.layers.17.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
74
+ "model.layers.17.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
75
+ "model.layers.17.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
76
+ "model.layers.17.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
77
+ "model.layers.17.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
78
+ "model.layers.18.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
79
+ "model.layers.18.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
80
+ "model.layers.18.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
81
+ "model.layers.18.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
82
+ "model.layers.18.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
83
+ "model.layers.18.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
84
+ "model.layers.18.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
85
+ "model.layers.19.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
86
+ "model.layers.19.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
87
+ "model.layers.19.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
88
+ "model.layers.19.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
89
+ "model.layers.19.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
90
+ "model.layers.19.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
91
+ "model.layers.19.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
92
+ "model.layers.2.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
93
+ "model.layers.2.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
94
+ "model.layers.2.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
95
+ "model.layers.2.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
96
+ "model.layers.2.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
97
+ "model.layers.2.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
98
+ "model.layers.2.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
99
+ "model.layers.20.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
100
+ "model.layers.20.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
101
+ "model.layers.20.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
102
+ "model.layers.20.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
103
+ "model.layers.20.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
104
+ "model.layers.20.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
105
+ "model.layers.20.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
106
+ "model.layers.21.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
107
+ "model.layers.21.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
108
+ "model.layers.21.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
109
+ "model.layers.21.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
110
+ "model.layers.21.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
111
+ "model.layers.21.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
112
+ "model.layers.21.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
113
+ "model.layers.22.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
114
+ "model.layers.22.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
115
+ "model.layers.22.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
116
+ "model.layers.22.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
117
+ "model.layers.22.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
118
+ "model.layers.22.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
119
+ "model.layers.22.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
120
+ "model.layers.23.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
121
+ "model.layers.23.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
122
+ "model.layers.23.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
123
+ "model.layers.23.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
124
+ "model.layers.23.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
125
+ "model.layers.23.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
126
+ "model.layers.23.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
127
+ "model.layers.24.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
128
+ "model.layers.24.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
129
+ "model.layers.24.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
130
+ "model.layers.24.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
131
+ "model.layers.24.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
132
+ "model.layers.24.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
133
+ "model.layers.24.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
134
+ "model.layers.25.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
135
+ "model.layers.25.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
136
+ "model.layers.25.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
137
+ "model.layers.25.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
138
+ "model.layers.25.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
139
+ "model.layers.25.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
140
+ "model.layers.25.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
141
+ "model.layers.26.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
142
+ "model.layers.26.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
143
+ "model.layers.26.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
144
+ "model.layers.26.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
145
+ "model.layers.26.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
146
+ "model.layers.26.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
147
+ "model.layers.26.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
148
+ "model.layers.27.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
149
+ "model.layers.27.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
150
+ "model.layers.27.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
151
+ "model.layers.27.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
152
+ "model.layers.27.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
153
+ "model.layers.27.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
154
+ "model.layers.27.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
155
+ "model.layers.28.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
156
+ "model.layers.28.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
157
+ "model.layers.28.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
158
+ "model.layers.28.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
159
+ "model.layers.28.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
160
+ "model.layers.28.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
161
+ "model.layers.28.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
162
+ "model.layers.29.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
163
+ "model.layers.29.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
164
+ "model.layers.29.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
165
+ "model.layers.29.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
166
+ "model.layers.29.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
167
+ "model.layers.29.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
168
+ "model.layers.29.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
169
+ "model.layers.3.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
170
+ "model.layers.3.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
171
+ "model.layers.3.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
172
+ "model.layers.3.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
173
+ "model.layers.3.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
174
+ "model.layers.3.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
175
+ "model.layers.3.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
176
+ "model.layers.30.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
177
+ "model.layers.30.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
178
+ "model.layers.30.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
179
+ "model.layers.30.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
180
+ "model.layers.30.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
181
+ "model.layers.30.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
182
+ "model.layers.30.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
183
+ "model.layers.31.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
184
+ "model.layers.31.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
185
+ "model.layers.31.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
186
+ "model.layers.31.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
187
+ "model.layers.31.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
188
+ "model.layers.31.self_attn.W_pack.weight": "pytorch_model-00002-of-00002.bin",
189
+ "model.layers.31.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
190
+ "model.layers.4.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
191
+ "model.layers.4.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
192
+ "model.layers.4.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
193
+ "model.layers.4.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
194
+ "model.layers.4.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
195
+ "model.layers.4.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
196
+ "model.layers.4.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
197
+ "model.layers.5.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
198
+ "model.layers.5.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
199
+ "model.layers.5.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
200
+ "model.layers.5.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
201
+ "model.layers.5.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
202
+ "model.layers.5.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
203
+ "model.layers.5.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
204
+ "model.layers.6.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
205
+ "model.layers.6.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
206
+ "model.layers.6.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
207
+ "model.layers.6.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
208
+ "model.layers.6.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
209
+ "model.layers.6.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
210
+ "model.layers.6.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
211
+ "model.layers.7.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
212
+ "model.layers.7.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
213
+ "model.layers.7.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
214
+ "model.layers.7.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
215
+ "model.layers.7.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
216
+ "model.layers.7.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
217
+ "model.layers.7.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
218
+ "model.layers.8.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
219
+ "model.layers.8.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
220
+ "model.layers.8.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
221
+ "model.layers.8.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
222
+ "model.layers.8.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
223
+ "model.layers.8.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
224
+ "model.layers.8.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
225
+ "model.layers.9.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
226
+ "model.layers.9.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
227
+ "model.layers.9.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
228
+ "model.layers.9.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
229
+ "model.layers.9.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
230
+ "model.layers.9.self_attn.W_pack.weight": "pytorch_model-00001-of-00002.bin",
231
+ "model.layers.9.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
232
+ "model.norm.weight": "pytorch_model-00002-of-00002.bin"
233
+ }
234
+ }
tokenization_baichuan.py CHANGED
@@ -43,7 +43,6 @@ PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {}
43
  class BaichuanTokenizer(PreTrainedTokenizer):
44
  """
45
  Construct a Baichuan tokenizer. Based on byte-level Byte-Pair-Encoding.
46
-
47
  Args:
48
  vocab_file (`str`):
49
  Path to the vocabulary file.
@@ -72,6 +71,13 @@ class BaichuanTokenizer(PreTrainedTokenizer):
72
  eos_token = AddedToken(eos_token, lstrip=False, rstrip=False) if isinstance(eos_token, str) else eos_token
73
  unk_token = AddedToken(unk_token, lstrip=False, rstrip=False) if isinstance(unk_token, str) else unk_token
74
  pad_token = AddedToken(pad_token, lstrip=False, rstrip=False) if isinstance(pad_token, str) else pad_token
 
 
 
 
 
 
 
75
  super().__init__(
76
  bos_token=bos_token,
77
  eos_token=eos_token,
@@ -82,12 +88,7 @@ class BaichuanTokenizer(PreTrainedTokenizer):
82
  sp_model_kwargs=self.sp_model_kwargs,
83
  clean_up_tokenization_spaces=clean_up_tokenization_spaces,
84
  **kwargs,
85
- )
86
- self.vocab_file = vocab_file
87
- self.add_bos_token = add_bos_token
88
- self.add_eos_token = add_eos_token
89
- self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs)
90
- self.sp_model.Load(vocab_file)
91
 
92
  def __getstate__(self):
93
  state = self.__dict__.copy()
@@ -145,11 +146,9 @@ class BaichuanTokenizer(PreTrainedTokenizer):
145
  def save_vocabulary(self, save_directory, filename_prefix: Optional[str] = None) -> Tuple[str]:
146
  """
147
  Save the vocabulary and special tokens file to a directory.
148
-
149
  Args:
150
  save_directory (`str`):
151
  The directory in which to save the vocabulary.
152
-
153
  Returns:
154
  `Tuple(str)`: Paths to the files saved.
155
  """
@@ -186,7 +185,6 @@ class BaichuanTokenizer(PreTrainedTokenizer):
186
  """
187
  Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
188
  special tokens using the tokenizer `prepare_for_model` method.
189
-
190
  Args:
191
  token_ids_0 (`List[int]`):
192
  List of IDs.
@@ -194,7 +192,6 @@ class BaichuanTokenizer(PreTrainedTokenizer):
194
  Optional second list of IDs for sequence pairs.
195
  already_has_special_tokens (`bool`, *optional*, defaults to `False`):
196
  Whether or not the token list is already formatted with special tokens for the model.
197
-
198
  Returns:
199
  `List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
200
  """
@@ -223,20 +220,16 @@ class BaichuanTokenizer(PreTrainedTokenizer):
223
  """
224
  Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT
225
  sequence pair mask has the following format:
226
-
227
  ```
228
  0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
229
  | first sequence | second sequence |
230
  ```
231
-
232
  if token_ids_1 is None, only returns the first portion of the mask (0s).
233
-
234
  Args:
235
  token_ids_0 (`List[int]`):
236
  List of ids.
237
  token_ids_1 (`List[int]`, *optional*):
238
  Optional second list of IDs for sequence pairs.
239
-
240
  Returns:
241
  `List[int]`: List of [token type IDs](../glossary#token-type-ids) according to the given sequence(s).
242
  """
 
43
  class BaichuanTokenizer(PreTrainedTokenizer):
44
  """
45
  Construct a Baichuan tokenizer. Based on byte-level Byte-Pair-Encoding.
 
46
  Args:
47
  vocab_file (`str`):
48
  Path to the vocabulary file.
 
71
  eos_token = AddedToken(eos_token, lstrip=False, rstrip=False) if isinstance(eos_token, str) else eos_token
72
  unk_token = AddedToken(unk_token, lstrip=False, rstrip=False) if isinstance(unk_token, str) else unk_token
73
  pad_token = AddedToken(pad_token, lstrip=False, rstrip=False) if isinstance(pad_token, str) else pad_token
74
+
75
+ self.vocab_file = vocab_file
76
+ self.add_bos_token = add_bos_token
77
+ self.add_eos_token = add_eos_token
78
+ self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs)
79
+ self.sp_model.Load(vocab_file)
80
+
81
  super().__init__(
82
  bos_token=bos_token,
83
  eos_token=eos_token,
 
88
  sp_model_kwargs=self.sp_model_kwargs,
89
  clean_up_tokenization_spaces=clean_up_tokenization_spaces,
90
  **kwargs,
91
+ )
 
 
 
 
 
92
 
93
  def __getstate__(self):
94
  state = self.__dict__.copy()
 
146
  def save_vocabulary(self, save_directory, filename_prefix: Optional[str] = None) -> Tuple[str]:
147
  """
148
  Save the vocabulary and special tokens file to a directory.
 
149
  Args:
150
  save_directory (`str`):
151
  The directory in which to save the vocabulary.
 
152
  Returns:
153
  `Tuple(str)`: Paths to the files saved.
154
  """
 
185
  """
186
  Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
187
  special tokens using the tokenizer `prepare_for_model` method.
 
188
  Args:
189
  token_ids_0 (`List[int]`):
190
  List of IDs.
 
192
  Optional second list of IDs for sequence pairs.
193
  already_has_special_tokens (`bool`, *optional*, defaults to `False`):
194
  Whether or not the token list is already formatted with special tokens for the model.
 
195
  Returns:
196
  `List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
197
  """
 
220
  """
221
  Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT
222
  sequence pair mask has the following format:
 
223
  ```
224
  0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
225
  | first sequence | second sequence |
226
  ```
 
227
  if token_ids_1 is None, only returns the first portion of the mask (0s).
 
228
  Args:
229
  token_ids_0 (`List[int]`):
230
  List of ids.
231
  token_ids_1 (`List[int]`, *optional*):
232
  Optional second list of IDs for sequence pairs.
 
233
  Returns:
234
  `List[int]`: List of [token type IDs](../glossary#token-type-ids) according to the given sequence(s).
235
  """