avemio-digital
commited on
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -8025,7 +8025,7 @@
|
|
8025 |
"<|im_end|>"
|
8026 |
],
|
8027 |
"bos_token": "<s>",
|
8028 |
-
"chat_template": "{
|
8029 |
"clean_up_tokenization_spaces": false,
|
8030 |
"eos_token": "</s>",
|
8031 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
8025 |
"<|im_end|>"
|
8026 |
],
|
8027 |
"bos_token": "<s>",
|
8028 |
+
"chat_template": "\n{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{'<|im_start|>user\n' + message['content'].strip() + '<|im_end|>\n<|im_start|>assistant\n' }}\n{% elif message['role'] == 'system' %}\n{{'<s>' + '<|im_start|>system\n' + message['content'].strip() + '<|im_end|>' }}\n{% elif message['role'] == 'tool' %}\n{{'<|im_start|>user\n<tool_response>' + message['content'].strip() + '</tool_response><|im_end|>' }}\n{% elif message['role'] == 'assistant' %}\n{{'<|im_start|>assistant\n' + message['content'].strip() + '<|im_end|>' }}\n{% endif %}\n{% endfor %}\n",
|
8029 |
"clean_up_tokenization_spaces": false,
|
8030 |
"eos_token": "</s>",
|
8031 |
"model_max_length": 1000000000000000019884624838656,
|