Update tokenizer_config.json
Browse files- tokenizer_config.json +2 -2
tokenizer_config.json
CHANGED
@@ -28,12 +28,12 @@
|
|
28 |
}
|
29 |
},
|
30 |
"bos_token": "<s>",
|
31 |
-
"chat_template": "{%
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "</s>",
|
34 |
"legacy": false,
|
35 |
"model_max_length": 1000000000000000019884624838656,
|
36 |
-
"pad_token":
|
37 |
"padding_side": "right",
|
38 |
"sp_model_kwargs": {},
|
39 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
28 |
}
|
29 |
},
|
30 |
"bos_token": "<s>",
|
31 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "</s>",
|
34 |
"legacy": false,
|
35 |
"model_max_length": 1000000000000000019884624838656,
|
36 |
+
"pad_token": "</s>",
|
37 |
"padding_side": "right",
|
38 |
"sp_model_kwargs": {},
|
39 |
"tokenizer_class": "LlamaTokenizer",
|