Update tokenizer_config.json
Browse files- tokenizer_config.json +6 -6
tokenizer_config.json
CHANGED
@@ -1756,15 +1756,15 @@
|
|
1756 |
}
|
1757 |
},
|
1758 |
"additional_special_tokens": [
|
1759 |
-
"
|
1760 |
-
"
|
1761 |
],
|
1762 |
-
"bos_token": "
|
1763 |
-
"chat_template": "{% for message in messages %}{{'
|
1764 |
"clean_up_tokenization_spaces": false,
|
1765 |
-
"eos_token": "
|
1766 |
"model_max_length": 1000000000000000019884624838656,
|
1767 |
-
"pad_token": "
|
1768 |
"sp_model_kwargs": {},
|
1769 |
"spaces_between_special_tokens": false,
|
1770 |
"tokenizer_class": "GemmaTokenizer",
|
|
|
1756 |
}
|
1757 |
},
|
1758 |
"additional_special_tokens": [
|
1759 |
+
"<start_of_turn>",
|
1760 |
+
"<end_of_turn>"
|
1761 |
],
|
1762 |
+
"bos_token": "<bos>",
|
1763 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
1764 |
"clean_up_tokenization_spaces": false,
|
1765 |
+
"eos_token": "<eos>",
|
1766 |
"model_max_length": 1000000000000000019884624838656,
|
1767 |
+
"pad_token": "<pad>",
|
1768 |
"sp_model_kwargs": {},
|
1769 |
"spaces_between_special_tokens": false,
|
1770 |
"tokenizer_class": "GemmaTokenizer",
|