Update chat template for strict monotonicity and tool support
Browse files- tokenizer_config.json +2 -2
tokenizer_config.json
CHANGED
|
@@ -143,7 +143,7 @@
|
|
| 143 |
"<|im_end|>"
|
| 144 |
],
|
| 145 |
"bos_token": "<|im_start|>",
|
| 146 |
-
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 147 |
"clean_up_tokenization_spaces": false,
|
| 148 |
"eos_token": "<|im_end|>",
|
| 149 |
"model_max_length": 8192,
|
|
@@ -151,4 +151,4 @@
|
|
| 151 |
"tokenizer_class": "GPT2Tokenizer",
|
| 152 |
"unk_token": "<|endoftext|>",
|
| 153 |
"vocab_size": 49152
|
| 154 |
-
}
|
|
|
|
| 143 |
"<|im_end|>"
|
| 144 |
],
|
| 145 |
"bos_token": "<|im_start|>",
|
| 146 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + (message['content'] | default('')) + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 147 |
"clean_up_tokenization_spaces": false,
|
| 148 |
"eos_token": "<|im_end|>",
|
| 149 |
"model_max_length": 8192,
|
|
|
|
| 151 |
"tokenizer_class": "GPT2Tokenizer",
|
| 152 |
"unk_token": "<|endoftext|>",
|
| 153 |
"vocab_size": 49152
|
| 154 |
+
}
|