indiejoseph
commited on
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -85,7 +85,7 @@
|
|
85 |
"<|Assistant|>"
|
86 |
],
|
87 |
"bos_token": "<|startoftext|>",
|
88 |
-
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% else %}{% set system_message = \"
|
89 |
"clean_up_tokenization_spaces": false,
|
90 |
"eos_token": "<|im_end|>",
|
91 |
"legacy": true,
|
|
|
85 |
"<|Assistant|>"
|
86 |
],
|
87 |
"bos_token": "<|startoftext|>",
|
88 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% else %}{% set system_message = \"你係由 hon9kon9ize 開發嘅 CantoneseLLM,你係一個好幫得手嘅助理\" %}{% endif %}{% if system_message is defined %}{{ '<|im_start|><|System|>\\n' + system_message + '<|im_end|>\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|><|Human|>\\n' + content + '<|im_end|>\\n<|im_start|><|Assistant|>\\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\\n' }}{% endif %}{% endfor %}",
|
89 |
"clean_up_tokenization_spaces": false,
|
90 |
"eos_token": "<|im_end|>",
|
91 |
"legacy": true,
|