NickyNicky
commited on
Commit
•
28e0984
1
Parent(s):
c392761
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -335,7 +335,7 @@
|
|
335 |
"<|/inst|>"
|
336 |
],
|
337 |
"bos_token": "<s>",
|
338 |
-
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role']
|
339 |
"clean_up_tokenization_spaces": false,
|
340 |
"eos_token": "<|endoftext|>",
|
341 |
"max_length": 2048,
|
|
|
335 |
"<|/inst|>"
|
336 |
],
|
337 |
"bos_token": "<s>",
|
338 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|system|>' + '\n' + message['content'] + '<|end|>' + '\n'}}{% elif (message['role'] == 'user') %}{{'<|user|>' + '\n' + message['content'] + '<|end|>' + '\n' + '<|assistant|>' + '\n'}}{% elif message['role'] == 'assistant' %}{{message['content'] + '<|end|>' + '\n'}}{% endif %}{% endfor %}",
|
339 |
"clean_up_tokenization_spaces": false,
|
340 |
"eos_token": "<|endoftext|>",
|
341 |
"max_length": 2048,
|