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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
temp/llama2.c $ ./quantize ../../downloads/llama2.c/bins/llama2_7b_chat.bin
|
2 |
vocab size = 32000 shared_weights=0
|
3 |
Model file size = 25706MB
|
|
|
1 |
+
|
2 |
+
# convert meta llama2 *.pth file to llama2.c *.bin file
|
3 |
+
downloads/llama2.c $ python export_meta_llama_bin.py Downloads/llama2_7b_chat bins/llama2_7b_chat.bin
|
4 |
+
{'dim': 4096, 'multiple_of': 256, 'n_heads': 32, 'n_layers': 32, 'norm_eps': 1e-06, 'vocab_size': -1}
|
5 |
+
writing tok_embeddings...
|
6 |
+
writing tok_embeddings.weight...
|
7 |
+
writing layers.0.attention_norm.weight...
|
8 |
+
writing layers.1.attention_norm.weight...
|
9 |
+
writing layers.2.attention_norm.weight...
|
10 |
+
writing layers.3.attention_norm.weight...
|
11 |
+
writing layers.4.attention_norm.weight...
|
12 |
+
writing layers.5.attention_norm.weight...
|
13 |
+
writing layers.6.attention_norm.weight...
|
14 |
+
writing layers.7.attention_norm.weight...
|
15 |
+
writing layers.8.attention_norm.weight...
|
16 |
+
writing layers.9.attention_norm.weight...
|
17 |
+
writing layers.10.attention_norm.weight...
|
18 |
+
writing layers.11.attention_norm.weight...
|
19 |
+
writing layers.12.attention_norm.weight...
|
20 |
+
writing layers.13.attention_norm.weight...
|
21 |
+
writing layers.14.attention_norm.weight...
|
22 |
+
writing layers.15.attention_norm.weight...
|
23 |
+
writing layers.16.attention_norm.weight...
|
24 |
+
writing layers.17.attention_norm.weight...
|
25 |
+
writing layers.18.attention_norm.weight...
|
26 |
+
writing layers.19.attention_norm.weight...
|
27 |
+
writing layers.20.attention_norm.weight...
|
28 |
+
writing layers.21.attention_norm.weight...
|
29 |
+
writing layers.22.attention_norm.weight...
|
30 |
+
writing layers.23.attention_norm.weight...
|
31 |
+
writing layers.24.attention_norm.weight...
|
32 |
+
writing layers.25.attention_norm.weight...
|
33 |
+
writing layers.26.attention_norm.weight...
|
34 |
+
writing layers.27.attention_norm.weight...
|
35 |
+
writing layers.28.attention_norm.weight...
|
36 |
+
writing layers.29.attention_norm.weight...
|
37 |
+
writing layers.30.attention_norm.weight...
|
38 |
+
writing layers.31.attention_norm.weight...
|
39 |
+
writing layers.0.attention.wq.weight...
|
40 |
+
writing layers.1.attention.wq.weight...
|
41 |
+
writing layers.2.attention.wq.weight...
|
42 |
+
writing layers.3.attention.wq.weight...
|
43 |
+
writing layers.4.attention.wq.weight...
|
44 |
+
writing layers.5.attention.wq.weight...
|
45 |
+
writing layers.6.attention.wq.weight...
|
46 |
+
writing layers.7.attention.wq.weight...
|
47 |
+
writing layers.8.attention.wq.weight...
|
48 |
+
writing layers.9.attention.wq.weight...
|
49 |
+
writing layers.10.attention.wq.weight...
|
50 |
+
writing layers.11.attention.wq.weight...
|
51 |
+
writing layers.12.attention.wq.weight...
|
52 |
+
writing layers.13.attention.wq.weight...
|
53 |
+
writing layers.14.attention.wq.weight...
|
54 |
+
writing layers.15.attention.wq.weight...
|
55 |
+
writing layers.16.attention.wq.weight...
|
56 |
+
writing layers.17.attention.wq.weight...
|
57 |
+
writing layers.18.attention.wq.weight...
|
58 |
+
writing layers.19.attention.wq.weight...
|
59 |
+
writing layers.20.attention.wq.weight...
|
60 |
+
writing layers.21.attention.wq.weight...
|
61 |
+
writing layers.22.attention.wq.weight...
|
62 |
+
writing layers.23.attention.wq.weight...
|
63 |
+
writing layers.24.attention.wq.weight...
|
64 |
+
writing layers.25.attention.wq.weight...
|
65 |
+
writing layers.26.attention.wq.weight...
|
66 |
+
writing layers.27.attention.wq.weight...
|
67 |
+
writing layers.28.attention.wq.weight...
|
68 |
+
writing layers.29.attention.wq.weight...
|
69 |
+
writing layers.30.attention.wq.weight...
|
70 |
+
writing layers.31.attention.wq.weight...
|
71 |
+
writing layers.0.attention.wk.weight...
|
72 |
+
writing layers.1.attention.wk.weight...
|
73 |
+
writing layers.2.attention.wk.weight...
|
74 |
+
writing layers.3.attention.wk.weight...
|
75 |
+
writing layers.4.attention.wk.weight...
|
76 |
+
writing layers.5.attention.wk.weight...
|
77 |
+
writing layers.6.attention.wk.weight...
|
78 |
+
writing layers.7.attention.wk.weight...
|
79 |
+
writing layers.8.attention.wk.weight...
|
80 |
+
writing layers.9.attention.wk.weight...
|
81 |
+
writing layers.10.attention.wk.weight...
|
82 |
+
writing layers.11.attention.wk.weight...
|
83 |
+
writing layers.12.attention.wk.weight...
|
84 |
+
writing layers.13.attention.wk.weight...
|
85 |
+
writing layers.14.attention.wk.weight...
|
86 |
+
writing layers.15.attention.wk.weight...
|
87 |
+
writing layers.16.attention.wk.weight...
|
88 |
+
writing layers.17.attention.wk.weight...
|
89 |
+
writing layers.18.attention.wk.weight...
|
90 |
+
writing layers.19.attention.wk.weight...
|
91 |
+
writing layers.20.attention.wk.weight...
|
92 |
+
writing layers.21.attention.wk.weight...
|
93 |
+
writing layers.22.attention.wk.weight...
|
94 |
+
writing layers.23.attention.wk.weight...
|
95 |
+
writing layers.24.attention.wk.weight...
|
96 |
+
writing layers.25.attention.wk.weight...
|
97 |
+
writing layers.26.attention.wk.weight...
|
98 |
+
writing layers.27.attention.wk.weight...
|
99 |
+
writing layers.28.attention.wk.weight...
|
100 |
+
writing layers.29.attention.wk.weight...
|
101 |
+
writing layers.30.attention.wk.weight...
|
102 |
+
writing layers.31.attention.wk.weight...
|
103 |
+
writing layers.0.attention.wv.weight...
|
104 |
+
writing layers.1.attention.wv.weight...
|
105 |
+
writing layers.2.attention.wv.weight...
|
106 |
+
writing layers.3.attention.wv.weight...
|
107 |
+
writing layers.4.attention.wv.weight...
|
108 |
+
writing layers.5.attention.wv.weight...
|
109 |
+
writing layers.6.attention.wv.weight...
|
110 |
+
writing layers.7.attention.wv.weight...
|
111 |
+
writing layers.8.attention.wv.weight...
|
112 |
+
writing layers.9.attention.wv.weight...
|
113 |
+
writing layers.10.attention.wv.weight...
|
114 |
+
writing layers.11.attention.wv.weight...
|
115 |
+
writing layers.12.attention.wv.weight...
|
116 |
+
writing layers.13.attention.wv.weight...
|
117 |
+
writing layers.14.attention.wv.weight...
|
118 |
+
writing layers.15.attention.wv.weight...
|
119 |
+
writing layers.16.attention.wv.weight...
|
120 |
+
writing layers.17.attention.wv.weight...
|
121 |
+
writing layers.18.attention.wv.weight...
|
122 |
+
writing layers.19.attention.wv.weight...
|
123 |
+
writing layers.20.attention.wv.weight...
|
124 |
+
writing layers.21.attention.wv.weight...
|
125 |
+
writing layers.22.attention.wv.weight...
|
126 |
+
writing layers.23.attention.wv.weight...
|
127 |
+
writing layers.24.attention.wv.weight...
|
128 |
+
writing layers.25.attention.wv.weight...
|
129 |
+
writing layers.26.attention.wv.weight...
|
130 |
+
writing layers.27.attention.wv.weight...
|
131 |
+
writing layers.28.attention.wv.weight...
|
132 |
+
writing layers.29.attention.wv.weight...
|
133 |
+
writing layers.30.attention.wv.weight...
|
134 |
+
writing layers.31.attention.wv.weight...
|
135 |
+
writing layers.0.attention.wo.weight...
|
136 |
+
writing layers.1.attention.wo.weight...
|
137 |
+
writing layers.2.attention.wo.weight...
|
138 |
+
writing layers.3.attention.wo.weight...
|
139 |
+
writing layers.4.attention.wo.weight...
|
140 |
+
writing layers.5.attention.wo.weight...
|
141 |
+
writing layers.6.attention.wo.weight...
|
142 |
+
writing layers.7.attention.wo.weight...
|
143 |
+
writing layers.8.attention.wo.weight...
|
144 |
+
writing layers.9.attention.wo.weight...
|
145 |
+
writing layers.10.attention.wo.weight...
|
146 |
+
writing layers.11.attention.wo.weight...
|
147 |
+
writing layers.12.attention.wo.weight...
|
148 |
+
writing layers.13.attention.wo.weight...
|
149 |
+
writing layers.14.attention.wo.weight...
|
150 |
+
writing layers.15.attention.wo.weight...
|
151 |
+
writing layers.16.attention.wo.weight...
|
152 |
+
writing layers.17.attention.wo.weight...
|
153 |
+
writing layers.18.attention.wo.weight...
|
154 |
+
writing layers.19.attention.wo.weight...
|
155 |
+
writing layers.20.attention.wo.weight...
|
156 |
+
writing layers.21.attention.wo.weight...
|
157 |
+
writing layers.22.attention.wo.weight...
|
158 |
+
writing layers.23.attention.wo.weight...
|
159 |
+
writing layers.24.attention.wo.weight...
|
160 |
+
writing layers.25.attention.wo.weight...
|
161 |
+
writing layers.26.attention.wo.weight...
|
162 |
+
writing layers.27.attention.wo.weight...
|
163 |
+
writing layers.28.attention.wo.weight...
|
164 |
+
writing layers.29.attention.wo.weight...
|
165 |
+
writing layers.30.attention.wo.weight...
|
166 |
+
writing layers.31.attention.wo.weight...
|
167 |
+
writing layers.0.ffn_norm.weight...
|
168 |
+
writing layers.1.ffn_norm.weight...
|
169 |
+
writing layers.2.ffn_norm.weight...
|
170 |
+
writing layers.3.ffn_norm.weight...
|
171 |
+
writing layers.4.ffn_norm.weight...
|
172 |
+
writing layers.5.ffn_norm.weight...
|
173 |
+
writing layers.6.ffn_norm.weight...
|
174 |
+
writing layers.7.ffn_norm.weight...
|
175 |
+
writing layers.8.ffn_norm.weight...
|
176 |
+
writing layers.9.ffn_norm.weight...
|
177 |
+
writing layers.10.ffn_norm.weight...
|
178 |
+
writing layers.11.ffn_norm.weight...
|
179 |
+
writing layers.12.ffn_norm.weight...
|
180 |
+
writing layers.13.ffn_norm.weight...
|
181 |
+
writing layers.14.ffn_norm.weight...
|
182 |
+
writing layers.15.ffn_norm.weight...
|
183 |
+
writing layers.16.ffn_norm.weight...
|
184 |
+
writing layers.17.ffn_norm.weight...
|
185 |
+
writing layers.18.ffn_norm.weight...
|
186 |
+
writing layers.19.ffn_norm.weight...
|
187 |
+
writing layers.20.ffn_norm.weight...
|
188 |
+
writing layers.21.ffn_norm.weight...
|
189 |
+
writing layers.22.ffn_norm.weight...
|
190 |
+
writing layers.23.ffn_norm.weight...
|
191 |
+
writing layers.24.ffn_norm.weight...
|
192 |
+
writing layers.25.ffn_norm.weight...
|
193 |
+
writing layers.26.ffn_norm.weight...
|
194 |
+
writing layers.27.ffn_norm.weight...
|
195 |
+
writing layers.28.ffn_norm.weight...
|
196 |
+
writing layers.29.ffn_norm.weight...
|
197 |
+
writing layers.30.ffn_norm.weight...
|
198 |
+
writing layers.31.ffn_norm.weight...
|
199 |
+
writing layers.0.feed_forward.w1.weight...
|
200 |
+
writing layers.1.feed_forward.w1.weight...
|
201 |
+
writing layers.2.feed_forward.w1.weight...
|
202 |
+
writing layers.3.feed_forward.w1.weight...
|
203 |
+
writing layers.4.feed_forward.w1.weight...
|
204 |
+
writing layers.5.feed_forward.w1.weight...
|
205 |
+
writing layers.6.feed_forward.w1.weight...
|
206 |
+
writing layers.7.feed_forward.w1.weight...
|
207 |
+
writing layers.8.feed_forward.w1.weight...
|
208 |
+
writing layers.9.feed_forward.w1.weight...
|
209 |
+
writing layers.10.feed_forward.w1.weight...
|
210 |
+
writing layers.11.feed_forward.w1.weight...
|
211 |
+
writing layers.12.feed_forward.w1.weight...
|
212 |
+
writing layers.13.feed_forward.w1.weight...
|
213 |
+
writing layers.14.feed_forward.w1.weight...
|
214 |
+
writing layers.15.feed_forward.w1.weight...
|
215 |
+
writing layers.16.feed_forward.w1.weight...
|
216 |
+
writing layers.17.feed_forward.w1.weight...
|
217 |
+
writing layers.18.feed_forward.w1.weight...
|
218 |
+
writing layers.19.feed_forward.w1.weight...
|
219 |
+
writing layers.20.feed_forward.w1.weight...
|
220 |
+
writing layers.21.feed_forward.w1.weight...
|
221 |
+
writing layers.22.feed_forward.w1.weight...
|
222 |
+
writing layers.23.feed_forward.w1.weight...
|
223 |
+
writing layers.24.feed_forward.w1.weight...
|
224 |
+
writing layers.25.feed_forward.w1.weight...
|
225 |
+
writing layers.26.feed_forward.w1.weight...
|
226 |
+
writing layers.27.feed_forward.w1.weight...
|
227 |
+
writing layers.28.feed_forward.w1.weight...
|
228 |
+
writing layers.29.feed_forward.w1.weight...
|
229 |
+
writing layers.30.feed_forward.w1.weight...
|
230 |
+
writing layers.31.feed_forward.w1.weight...
|
231 |
+
writing layers.0.feed_forward.w2.weight...
|
232 |
+
writing layers.1.feed_forward.w2.weight...
|
233 |
+
writing layers.2.feed_forward.w2.weight...
|
234 |
+
writing layers.3.feed_forward.w2.weight...
|
235 |
+
writing layers.4.feed_forward.w2.weight...
|
236 |
+
writing layers.5.feed_forward.w2.weight...
|
237 |
+
writing layers.6.feed_forward.w2.weight...
|
238 |
+
writing layers.7.feed_forward.w2.weight...
|
239 |
+
writing layers.8.feed_forward.w2.weight...
|
240 |
+
writing layers.9.feed_forward.w2.weight...
|
241 |
+
writing layers.10.feed_forward.w2.weight...
|
242 |
+
writing layers.11.feed_forward.w2.weight...
|
243 |
+
writing layers.12.feed_forward.w2.weight...
|
244 |
+
writing layers.13.feed_forward.w2.weight...
|
245 |
+
writing layers.14.feed_forward.w2.weight...
|
246 |
+
writing layers.15.feed_forward.w2.weight...
|
247 |
+
writing layers.16.feed_forward.w2.weight...
|
248 |
+
writing layers.17.feed_forward.w2.weight...
|
249 |
+
writing layers.18.feed_forward.w2.weight...
|
250 |
+
writing layers.19.feed_forward.w2.weight...
|
251 |
+
writing layers.20.feed_forward.w2.weight...
|
252 |
+
writing layers.21.feed_forward.w2.weight...
|
253 |
+
writing layers.22.feed_forward.w2.weight...
|
254 |
+
writing layers.23.feed_forward.w2.weight...
|
255 |
+
writing layers.24.feed_forward.w2.weight...
|
256 |
+
writing layers.25.feed_forward.w2.weight...
|
257 |
+
writing layers.26.feed_forward.w2.weight...
|
258 |
+
writing layers.27.feed_forward.w2.weight...
|
259 |
+
writing layers.28.feed_forward.w2.weight...
|
260 |
+
writing layers.29.feed_forward.w2.weight...
|
261 |
+
writing layers.30.feed_forward.w2.weight...
|
262 |
+
writing layers.31.feed_forward.w2.weight...
|
263 |
+
writing layers.0.feed_forward.w3.weight...
|
264 |
+
writing layers.1.feed_forward.w3.weight...
|
265 |
+
writing layers.2.feed_forward.w3.weight...
|
266 |
+
writing layers.3.feed_forward.w3.weight...
|
267 |
+
writing layers.4.feed_forward.w3.weight...
|
268 |
+
writing layers.5.feed_forward.w3.weight...
|
269 |
+
writing layers.6.feed_forward.w3.weight...
|
270 |
+
writing layers.7.feed_forward.w3.weight...
|
271 |
+
writing layers.8.feed_forward.w3.weight...
|
272 |
+
writing layers.9.feed_forward.w3.weight...
|
273 |
+
writing layers.10.feed_forward.w3.weight...
|
274 |
+
writing layers.11.feed_forward.w3.weight...
|
275 |
+
writing layers.12.feed_forward.w3.weight...
|
276 |
+
writing layers.13.feed_forward.w3.weight...
|
277 |
+
writing layers.14.feed_forward.w3.weight...
|
278 |
+
writing layers.15.feed_forward.w3.weight...
|
279 |
+
writing layers.16.feed_forward.w3.weight...
|
280 |
+
writing layers.17.feed_forward.w3.weight...
|
281 |
+
writing layers.18.feed_forward.w3.weight...
|
282 |
+
writing layers.19.feed_forward.w3.weight...
|
283 |
+
writing layers.20.feed_forward.w3.weight...
|
284 |
+
writing layers.21.feed_forward.w3.weight...
|
285 |
+
writing layers.22.feed_forward.w3.weight...
|
286 |
+
writing layers.23.feed_forward.w3.weight...
|
287 |
+
writing layers.24.feed_forward.w3.weight...
|
288 |
+
writing layers.25.feed_forward.w3.weight...
|
289 |
+
writing layers.26.feed_forward.w3.weight...
|
290 |
+
writing layers.27.feed_forward.w3.weight...
|
291 |
+
writing layers.28.feed_forward.w3.weight...
|
292 |
+
writing layers.29.feed_forward.w3.weight...
|
293 |
+
writing layers.30.feed_forward.w3.weight...
|
294 |
+
writing layers.31.feed_forward.w3.weight...
|
295 |
+
writing norm.weight...
|
296 |
+
writing freqs_cos...
|
297 |
+
writing freqs_sin...
|
298 |
+
writing output.weight...
|
299 |
+
wrote bins/llama2_7b_chat.bin
|
300 |
+
|
301 |
+
# quantize
|
302 |
temp/llama2.c $ ./quantize ../../downloads/llama2.c/bins/llama2_7b_chat.bin
|
303 |
vocab size = 32000 shared_weights=0
|
304 |
Model file size = 25706MB
|