Locutusque
commited on
Commit
•
0931dda
1
Parent(s):
02c50d4
Update tokenizer_config.json
Browse files- tokenizer_config.json +2 -1
tokenizer_config.json
CHANGED
@@ -2051,8 +2051,9 @@
|
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
"clean_up_tokenization_spaces": true,
|
|
|
2054 |
"eos_token": "<|end_of_text|>",
|
2055 |
-
"max_length":
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
|
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
"clean_up_tokenization_spaces": true,
|
2054 |
+
"chat_template": "{%- set ns = namespace(found=false) -%}{%- for message in messages -%}{%- if message['role'] == 'system' -%}{%- set ns.found = true -%}{%- endif -%}{%- endfor -%}{%- for message in messages %}{%- if message['role'] == 'system' -%}{{- '<|im_start|>system\n' + message['content'].rstrip() + '<|im_end|>\n' -}}{%- else -%}{%- if message['role'] == 'user' -%}{{-'<|im_start|>user\n' + message['content'].rstrip() + '<|im_end|>\n'-}}{%- else -%}{{-'<|im_start|>assistant\n' + message['content'] + '<|im_end|>\n' -}}{%- endif -%}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{-'<|im_start|>assistant\n'-}}{%- endif -%}",
|
2055 |
"eos_token": "<|end_of_text|>",
|
2056 |
+
"max_length": 4096,
|
2057 |
"model_input_names": [
|
2058 |
"input_ids",
|
2059 |
"attention_mask"
|