Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -2051,6 +2051,7 @@
|
|
2051 |
}
|
2052 |
},
|
2053 |
"bos_token": "<|begin_of_text|>",
|
|
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|end_of_text|>",
|
2056 |
"extra_special_tokens": {},
|
|
|
2051 |
}
|
2052 |
},
|
2053 |
"bos_token": "<|begin_of_text|>",
|
2054 |
+
"chat_template": "{{- bos_token }}\n{%- if not date_string is defined %}\n{%- if strftime_now is defined %}\n {%- set date_string = strftime_now(\"%d %b %Y\") %}\n{%- else %}\n {%- set date_string = \"26 Jul 2024\" %}\n{%- endif %}\n{%- endif %}\n\n{#- Remove system message handling entirely #}\n{%- if messages[0]['role'] == 'system' %}\n{%- set messages = messages[1:] %}\n{%- endif %}\n\n{#- Process messages with role mapping #}\n{%- for message in messages %}\n{%- if message['role'] == 'user' %}\n {{- '<|start_header_id|>text<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}\n{%- elif message['role'] == 'assistant' %}\n {{- '<|start_header_id|>corrected<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}\n{%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n{{- '<|start_header_id|>corrected<|end_header_id|>\n\n' }}\n{%- endif %}",
|
2055 |
"clean_up_tokenization_spaces": true,
|
2056 |
"eos_token": "<|end_of_text|>",
|
2057 |
"extra_special_tokens": {},
|