anthonymeo
commited on
Commit
•
38ca0a1
1
Parent(s):
3afa270
Update tokenizer_config.json
Browse files- tokenizer_config.json +2 -0
tokenizer_config.json
CHANGED
@@ -2050,6 +2050,7 @@
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
|
|
2053 |
"clean_up_tokenization_spaces": true,
|
2054 |
"eos_token": "<|eot_id|>",
|
2055 |
"model_input_names": [
|
@@ -2062,3 +2063,4 @@
|
|
2062 |
"split_special_tokens": false,
|
2063 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
2064 |
}
|
|
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
+
"chat_template": "{{ '<|begin_of_text|>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ '<|start_header_id|>system<|end_header_id|>\n\n' + system_message + '<|eot_id|>' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|>\n\n' + content + '<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|eot_id|>' }}{% endif %}{% endfor %}",
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|eot_id|>",
|
2056 |
"model_input_names": [
|
|
|
2063 |
"split_special_tokens": false,
|
2064 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
2065 |
}
|
2066 |
+
|