HenryJJ
commited on
Commit
•
943e911
1
Parent(s):
e23ffbc
update
Browse files
.ipynb_checkpoints/config-checkpoint.json
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "microsoft/phi-2",
|
3 |
-
"activation_function": "gelu_new",
|
4 |
-
"architectures": [
|
5 |
-
"PhiForCausalLM"
|
6 |
-
],
|
7 |
-
"attn_pdrop": 0.0,
|
8 |
-
"auto_map": {
|
9 |
-
"AutoConfig": "microsoft/phi-2--configuration_phi.PhiConfig",
|
10 |
-
"AutoModelForCausalLM": "microsoft/phi-2--modeling_phi.PhiForCausalLM"
|
11 |
-
},
|
12 |
-
"embd_pdrop": 0.0,
|
13 |
-
"flash_attn": false,
|
14 |
-
"flash_rotary": false,
|
15 |
-
"fused_dense": false,
|
16 |
-
"gradient_checkpointing": false,
|
17 |
-
"img_processor": null,
|
18 |
-
"initializer_range": 0.02,
|
19 |
-
"layer_norm_epsilon": 1e-05,
|
20 |
-
"model_type": "phi-msft",
|
21 |
-
"n_embd": 2560,
|
22 |
-
"n_head": 32,
|
23 |
-
"n_head_kv": null,
|
24 |
-
"n_inner": null,
|
25 |
-
"n_layer": 32,
|
26 |
-
"n_positions": 2048,
|
27 |
-
"resid_pdrop": 0.1,
|
28 |
-
"rotary_dim": 32,
|
29 |
-
"tie_word_embeddings": false,
|
30 |
-
"torch_dtype": "bfloat16",
|
31 |
-
"transformers_version": "4.36.2",
|
32 |
-
"use_cache": false,
|
33 |
-
"vocab_size": 51200
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ipynb_checkpoints/tokenizer_config-checkpoint.json
DELETED
@@ -1,344 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"add_bos_token": false,
|
3 |
-
"add_eos_token": false,
|
4 |
-
"add_prefix_space": false,
|
5 |
-
"added_tokens_decoder": {
|
6 |
-
"50256": {
|
7 |
-
"content": "<|endoftext|>",
|
8 |
-
"lstrip": false,
|
9 |
-
"normalized": false,
|
10 |
-
"rstrip": false,
|
11 |
-
"single_word": false,
|
12 |
-
"special": true
|
13 |
-
},
|
14 |
-
"50257": {
|
15 |
-
"content": " ",
|
16 |
-
"lstrip": false,
|
17 |
-
"normalized": true,
|
18 |
-
"rstrip": false,
|
19 |
-
"single_word": false,
|
20 |
-
"special": false
|
21 |
-
},
|
22 |
-
"50258": {
|
23 |
-
"content": " ",
|
24 |
-
"lstrip": false,
|
25 |
-
"normalized": true,
|
26 |
-
"rstrip": false,
|
27 |
-
"single_word": false,
|
28 |
-
"special": false
|
29 |
-
},
|
30 |
-
"50259": {
|
31 |
-
"content": " ",
|
32 |
-
"lstrip": false,
|
33 |
-
"normalized": true,
|
34 |
-
"rstrip": false,
|
35 |
-
"single_word": false,
|
36 |
-
"special": false
|
37 |
-
},
|
38 |
-
"50260": {
|
39 |
-
"content": " ",
|
40 |
-
"lstrip": false,
|
41 |
-
"normalized": true,
|
42 |
-
"rstrip": false,
|
43 |
-
"single_word": false,
|
44 |
-
"special": false
|
45 |
-
},
|
46 |
-
"50261": {
|
47 |
-
"content": " ",
|
48 |
-
"lstrip": false,
|
49 |
-
"normalized": true,
|
50 |
-
"rstrip": false,
|
51 |
-
"single_word": false,
|
52 |
-
"special": false
|
53 |
-
},
|
54 |
-
"50262": {
|
55 |
-
"content": " ",
|
56 |
-
"lstrip": false,
|
57 |
-
"normalized": true,
|
58 |
-
"rstrip": false,
|
59 |
-
"single_word": false,
|
60 |
-
"special": false
|
61 |
-
},
|
62 |
-
"50263": {
|
63 |
-
"content": " ",
|
64 |
-
"lstrip": false,
|
65 |
-
"normalized": true,
|
66 |
-
"rstrip": false,
|
67 |
-
"single_word": false,
|
68 |
-
"special": false
|
69 |
-
},
|
70 |
-
"50264": {
|
71 |
-
"content": " ",
|
72 |
-
"lstrip": false,
|
73 |
-
"normalized": true,
|
74 |
-
"rstrip": false,
|
75 |
-
"single_word": false,
|
76 |
-
"special": false
|
77 |
-
},
|
78 |
-
"50265": {
|
79 |
-
"content": " ",
|
80 |
-
"lstrip": false,
|
81 |
-
"normalized": true,
|
82 |
-
"rstrip": false,
|
83 |
-
"single_word": false,
|
84 |
-
"special": false
|
85 |
-
},
|
86 |
-
"50266": {
|
87 |
-
"content": " ",
|
88 |
-
"lstrip": false,
|
89 |
-
"normalized": true,
|
90 |
-
"rstrip": false,
|
91 |
-
"single_word": false,
|
92 |
-
"special": false
|
93 |
-
},
|
94 |
-
"50267": {
|
95 |
-
"content": " ",
|
96 |
-
"lstrip": false,
|
97 |
-
"normalized": true,
|
98 |
-
"rstrip": false,
|
99 |
-
"single_word": false,
|
100 |
-
"special": false
|
101 |
-
},
|
102 |
-
"50268": {
|
103 |
-
"content": " ",
|
104 |
-
"lstrip": false,
|
105 |
-
"normalized": true,
|
106 |
-
"rstrip": false,
|
107 |
-
"single_word": false,
|
108 |
-
"special": false
|
109 |
-
},
|
110 |
-
"50269": {
|
111 |
-
"content": " ",
|
112 |
-
"lstrip": false,
|
113 |
-
"normalized": true,
|
114 |
-
"rstrip": false,
|
115 |
-
"single_word": false,
|
116 |
-
"special": false
|
117 |
-
},
|
118 |
-
"50270": {
|
119 |
-
"content": " ",
|
120 |
-
"lstrip": false,
|
121 |
-
"normalized": true,
|
122 |
-
"rstrip": false,
|
123 |
-
"single_word": false,
|
124 |
-
"special": false
|
125 |
-
},
|
126 |
-
"50271": {
|
127 |
-
"content": " ",
|
128 |
-
"lstrip": false,
|
129 |
-
"normalized": true,
|
130 |
-
"rstrip": false,
|
131 |
-
"single_word": false,
|
132 |
-
"special": false
|
133 |
-
},
|
134 |
-
"50272": {
|
135 |
-
"content": " ",
|
136 |
-
"lstrip": false,
|
137 |
-
"normalized": true,
|
138 |
-
"rstrip": false,
|
139 |
-
"single_word": false,
|
140 |
-
"special": false
|
141 |
-
},
|
142 |
-
"50273": {
|
143 |
-
"content": " ",
|
144 |
-
"lstrip": false,
|
145 |
-
"normalized": true,
|
146 |
-
"rstrip": false,
|
147 |
-
"single_word": false,
|
148 |
-
"special": false
|
149 |
-
},
|
150 |
-
"50274": {
|
151 |
-
"content": " ",
|
152 |
-
"lstrip": false,
|
153 |
-
"normalized": true,
|
154 |
-
"rstrip": false,
|
155 |
-
"single_word": false,
|
156 |
-
"special": false
|
157 |
-
},
|
158 |
-
"50275": {
|
159 |
-
"content": " ",
|
160 |
-
"lstrip": false,
|
161 |
-
"normalized": true,
|
162 |
-
"rstrip": false,
|
163 |
-
"single_word": false,
|
164 |
-
"special": false
|
165 |
-
},
|
166 |
-
"50276": {
|
167 |
-
"content": " ",
|
168 |
-
"lstrip": false,
|
169 |
-
"normalized": true,
|
170 |
-
"rstrip": false,
|
171 |
-
"single_word": false,
|
172 |
-
"special": false
|
173 |
-
},
|
174 |
-
"50277": {
|
175 |
-
"content": " ",
|
176 |
-
"lstrip": false,
|
177 |
-
"normalized": true,
|
178 |
-
"rstrip": false,
|
179 |
-
"single_word": false,
|
180 |
-
"special": false
|
181 |
-
},
|
182 |
-
"50278": {
|
183 |
-
"content": " ",
|
184 |
-
"lstrip": false,
|
185 |
-
"normalized": true,
|
186 |
-
"rstrip": false,
|
187 |
-
"single_word": false,
|
188 |
-
"special": false
|
189 |
-
},
|
190 |
-
"50279": {
|
191 |
-
"content": " ",
|
192 |
-
"lstrip": false,
|
193 |
-
"normalized": true,
|
194 |
-
"rstrip": false,
|
195 |
-
"single_word": false,
|
196 |
-
"special": false
|
197 |
-
},
|
198 |
-
"50280": {
|
199 |
-
"content": " ",
|
200 |
-
"lstrip": false,
|
201 |
-
"normalized": true,
|
202 |
-
"rstrip": false,
|
203 |
-
"single_word": false,
|
204 |
-
"special": false
|
205 |
-
},
|
206 |
-
"50281": {
|
207 |
-
"content": " ",
|
208 |
-
"lstrip": false,
|
209 |
-
"normalized": true,
|
210 |
-
"rstrip": false,
|
211 |
-
"single_word": false,
|
212 |
-
"special": false
|
213 |
-
},
|
214 |
-
"50282": {
|
215 |
-
"content": " ",
|
216 |
-
"lstrip": false,
|
217 |
-
"normalized": true,
|
218 |
-
"rstrip": false,
|
219 |
-
"single_word": false,
|
220 |
-
"special": false
|
221 |
-
},
|
222 |
-
"50283": {
|
223 |
-
"content": " ",
|
224 |
-
"lstrip": false,
|
225 |
-
"normalized": true,
|
226 |
-
"rstrip": false,
|
227 |
-
"single_word": false,
|
228 |
-
"special": false
|
229 |
-
},
|
230 |
-
"50284": {
|
231 |
-
"content": " ",
|
232 |
-
"lstrip": false,
|
233 |
-
"normalized": true,
|
234 |
-
"rstrip": false,
|
235 |
-
"single_word": false,
|
236 |
-
"special": false
|
237 |
-
},
|
238 |
-
"50285": {
|
239 |
-
"content": " ",
|
240 |
-
"lstrip": false,
|
241 |
-
"normalized": true,
|
242 |
-
"rstrip": false,
|
243 |
-
"single_word": false,
|
244 |
-
"special": false
|
245 |
-
},
|
246 |
-
"50286": {
|
247 |
-
"content": " ",
|
248 |
-
"lstrip": false,
|
249 |
-
"normalized": true,
|
250 |
-
"rstrip": false,
|
251 |
-
"single_word": false,
|
252 |
-
"special": false
|
253 |
-
},
|
254 |
-
"50287": {
|
255 |
-
"content": "\t\t\t\t\t\t\t\t\t",
|
256 |
-
"lstrip": false,
|
257 |
-
"normalized": true,
|
258 |
-
"rstrip": false,
|
259 |
-
"single_word": false,
|
260 |
-
"special": false
|
261 |
-
},
|
262 |
-
"50288": {
|
263 |
-
"content": "\t\t\t\t\t\t\t\t",
|
264 |
-
"lstrip": false,
|
265 |
-
"normalized": true,
|
266 |
-
"rstrip": false,
|
267 |
-
"single_word": false,
|
268 |
-
"special": false
|
269 |
-
},
|
270 |
-
"50289": {
|
271 |
-
"content": "\t\t\t\t\t\t\t",
|
272 |
-
"lstrip": false,
|
273 |
-
"normalized": true,
|
274 |
-
"rstrip": false,
|
275 |
-
"single_word": false,
|
276 |
-
"special": false
|
277 |
-
},
|
278 |
-
"50290": {
|
279 |
-
"content": "\t\t\t\t\t\t",
|
280 |
-
"lstrip": false,
|
281 |
-
"normalized": true,
|
282 |
-
"rstrip": false,
|
283 |
-
"single_word": false,
|
284 |
-
"special": false
|
285 |
-
},
|
286 |
-
"50291": {
|
287 |
-
"content": "\t\t\t\t\t",
|
288 |
-
"lstrip": false,
|
289 |
-
"normalized": true,
|
290 |
-
"rstrip": false,
|
291 |
-
"single_word": false,
|
292 |
-
"special": false
|
293 |
-
},
|
294 |
-
"50292": {
|
295 |
-
"content": "\t\t\t\t",
|
296 |
-
"lstrip": false,
|
297 |
-
"normalized": true,
|
298 |
-
"rstrip": false,
|
299 |
-
"single_word": false,
|
300 |
-
"special": false
|
301 |
-
},
|
302 |
-
"50293": {
|
303 |
-
"content": "\t\t\t",
|
304 |
-
"lstrip": false,
|
305 |
-
"normalized": true,
|
306 |
-
"rstrip": false,
|
307 |
-
"single_word": false,
|
308 |
-
"special": false
|
309 |
-
},
|
310 |
-
"50294": {
|
311 |
-
"content": "\t\t",
|
312 |
-
"lstrip": false,
|
313 |
-
"normalized": true,
|
314 |
-
"rstrip": false,
|
315 |
-
"single_word": false,
|
316 |
-
"special": false
|
317 |
-
},
|
318 |
-
"50295": {
|
319 |
-
"content": "<|im_end|>",
|
320 |
-
"lstrip": false,
|
321 |
-
"normalized": false,
|
322 |
-
"rstrip": false,
|
323 |
-
"single_word": false,
|
324 |
-
"special": true
|
325 |
-
},
|
326 |
-
"50296": {
|
327 |
-
"content": "<|im_start|>",
|
328 |
-
"lstrip": false,
|
329 |
-
"normalized": false,
|
330 |
-
"rstrip": false,
|
331 |
-
"single_word": false,
|
332 |
-
"special": true
|
333 |
-
}
|
334 |
-
},
|
335 |
-
"bos_token": "<|endoftext|>",
|
336 |
-
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
337 |
-
"clean_up_tokenization_spaces": true,
|
338 |
-
"eos_token": "<|im_end|>",
|
339 |
-
"model_max_length": 2048,
|
340 |
-
"pad_token": "<|endoftext|>",
|
341 |
-
"tokenizer_class": "CodeGenTokenizer",
|
342 |
-
"truncation": true,
|
343 |
-
"unk_token": "<|endoftext|>"
|
344 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tokenizer_config.json
CHANGED
@@ -333,6 +333,7 @@
|
|
333 |
}
|
334 |
},
|
335 |
"bos_token": "<|endoftext|>",
|
|
|
336 |
"clean_up_tokenization_spaces": true,
|
337 |
"eos_token": "<|im_end|>",
|
338 |
"model_max_length": 2048,
|
|
|
333 |
}
|
334 |
},
|
335 |
"bos_token": "<|endoftext|>",
|
336 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
337 |
"clean_up_tokenization_spaces": true,
|
338 |
"eos_token": "<|im_end|>",
|
339 |
"model_max_length": 2048,
|