Update tokenizer_config.json (#30)
Browse files- Update tokenizer_config.json (fd4b04525644b0d6def17a98a969800db7266754)
Co-authored-by: Zelin He <[email protected]>
- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
|
@@ -203,6 +203,7 @@
|
|
| 203 |
"AutoProcessor": "processing_qwen2_ts.Qwen2TSProcessor"
|
| 204 |
},
|
| 205 |
"bos_token": null,
|
|
|
|
| 206 |
"clean_up_tokenization_spaces": false,
|
| 207 |
"eos_token": "<|im_end|>",
|
| 208 |
"errors": "replace",
|
|
|
|
| 203 |
"AutoProcessor": "processing_qwen2_ts.Qwen2TSProcessor"
|
| 204 |
},
|
| 205 |
"bos_token": null,
|
| 206 |
+
"chat_template": "{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\n' + content + '<|im_end|>\n<|im_start|>assistant\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\n' }}{% endif %}{% endfor %}",
|
| 207 |
"clean_up_tokenization_spaces": false,
|
| 208 |
"eos_token": "<|im_end|>",
|
| 209 |
"errors": "replace",
|