Upload tokenizer
Browse files- tokenizer_config.json +2 -2
tokenizer_config.json
CHANGED
@@ -2050,14 +2050,14 @@
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
-
"chat_template": "{
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|end_of_text|>",
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
2059 |
],
|
2060 |
-
"model_max_length":
|
2061 |
"pad_token": "<|end_of_text|>",
|
2062 |
"padding_side": "left",
|
2063 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['from'] == 'system' %}{{ messages[0]['value'] + ' ' }}{% set loop_messages = messages[1:] %}{% else %}{{ 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user\\'s questions.' + ' ' }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['from'] == 'human' %}{{ 'USER: ' + message['value'] + ' ' }}{% elif message['from'] == 'gpt' %}{{ 'ASSISTANT: ' + message['value'] + eos_token }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}",
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|end_of_text|>",
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
2059 |
],
|
2060 |
+
"model_max_length": 16384,
|
2061 |
"pad_token": "<|end_of_text|>",
|
2062 |
"padding_side": "left",
|
2063 |
"tokenizer_class": "PreTrainedTokenizerFast"
|