youjunhyeok
commited on
Commit
•
4ee2f95
1
Parent(s):
8e19405
Upload tokenizer
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -135,7 +135,7 @@
|
|
135 |
null
|
136 |
]
|
137 |
},
|
138 |
-
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{{
|
139 |
"clean_up_tokenization_spaces": false,
|
140 |
"do_lower_case": false,
|
141 |
"eos_token": "<|endoftext|>",
|
|
|
135 |
null
|
136 |
]
|
137 |
},
|
138 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ system_message + '\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ 'Human: ' + content + '\nAssistant: ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|endoftext|>' + '\n' }}{% endif %}{% endfor %}",
|
139 |
"clean_up_tokenization_spaces": false,
|
140 |
"do_lower_case": false,
|
141 |
"eos_token": "<|endoftext|>",
|