alicecomfy
commited on
Commit
•
88fea41
1
Parent(s):
06128af
Replace Tokenizer_config with ChatML for expermientation
Browse files- tokenizer_config.json +18 -2
tokenizer_config.json
CHANGED
@@ -25,12 +25,28 @@
|
|
25 |
"rstrip": false,
|
26 |
"single_word": false,
|
27 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
},
|
30 |
"bos_token": "<s>",
|
31 |
-
"chat_template": "{
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
-
"eos_token": "
|
34 |
"legacy": false,
|
35 |
"model_max_length": 1000000000000000019884624838656,
|
36 |
"pad_token": "<unk>",
|
|
|
25 |
"rstrip": false,
|
26 |
"single_word": false,
|
27 |
"special": true
|
28 |
+
},
|
29 |
+
"32000": {
|
30 |
+
"content": "<|im_end|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"32001": {
|
38 |
+
"content": "<|im_start|>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": false
|
44 |
}
|
45 |
},
|
46 |
"bos_token": "<s>",
|
47 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
48 |
"clean_up_tokenization_spaces": false,
|
49 |
+
"eos_token": "<|im_end|>",
|
50 |
"legacy": false,
|
51 |
"model_max_length": 1000000000000000019884624838656,
|
52 |
"pad_token": "<unk>",
|