Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
{
|
2 |
"model_max_length": 8192,
|
3 |
"tokenizer_class": "QWenTokenizer",
|
|
|
4 |
"auto_map": {
|
5 |
"AutoTokenizer": [
|
6 |
"tokenization_qwen.QWenTokenizer",
|
|
|
1 |
{
|
2 |
"model_max_length": 8192,
|
3 |
"tokenizer_class": "QWenTokenizer",
|
4 |
+
"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 %}",
|
5 |
"auto_map": {
|
6 |
"AutoTokenizer": [
|
7 |
"tokenization_qwen.QWenTokenizer",
|