garycaokai
commited on
Commit
•
7f45793
1
Parent(s):
9346ad6
add chat_template
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -24,5 +24,6 @@
|
|
24 |
"padding_side": "left",
|
25 |
"remove_space": false,
|
26 |
"tokenizer_class": "ZhinaoTokenizer",
|
|
|
27 |
"unk_token": "<unk>"
|
28 |
}
|
|
|
24 |
"padding_side": "left",
|
25 |
"remove_space": false,
|
26 |
"tokenizer_class": "ZhinaoTokenizer",
|
27 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
28 |
"unk_token": "<unk>"
|
29 |
}
|