updated chat_template
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -3839,7 +3839,7 @@
|
|
3839 |
"AutoProcessor": "preprocessing_molmo.MolmoProcessor"
|
3840 |
},
|
3841 |
"bos_token": null,
|
3842 |
-
"chat_template": "{% for message in messages
|
3843 |
"clean_up_tokenization_spaces": false,
|
3844 |
"eos_token": "<|endoftext|>",
|
3845 |
"errors": "replace",
|
|
|
3839 |
"AutoProcessor": "preprocessing_molmo.MolmoProcessor"
|
3840 |
},
|
3841 |
"bos_token": null,
|
3842 |
+
"chat_template": "{% for message in messages -%}\n {%- if (loop.index % 2 == 1 and message['role'] != 'user') or \n (loop.index % 2 == 0 and message['role'].lower() != 'assistant') -%}\n {{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif -%}\n {{ message['role'].capitalize() + ': ' + message['content'] }}\n {%- if not loop.last -%}\n {{ ' ' }}\n {%- endif %}\n {%- endfor -%}\n {%- if add_generation_prompt -%}\n {{ ' Assistant:' }}\n {%- endif %}",
|
3843 |
"clean_up_tokenization_spaces": false,
|
3844 |
"eos_token": "<|endoftext|>",
|
3845 |
"errors": "replace",
|