feihu.hf
commited on
Commit
•
78adb6e
1
Parent(s):
c31f50d
update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
},
|
29 |
"additional_special_tokens": ["<|im_start|>", "<|im_end|>"],
|
30 |
"bos_token": null,
|
31 |
-
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content']
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "<|endoftext|>",
|
34 |
"errors": "replace",
|
|
|
28 |
},
|
29 |
"additional_special_tokens": ["<|im_start|>", "<|im_end|>"],
|
30 |
"bos_token": null,
|
31 |
+
"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']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "<|endoftext|>",
|
34 |
"errors": "replace",
|