nroggendorff
commited on
Commit
•
1881fdb
1
Parent(s):
fe98422
0.001395665830373764
Browse files- tokenizer.json +0 -0
- tokenizer_config.json +1 -1
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -71,7 +71,7 @@
|
|
71 |
"<|end|>"
|
72 |
],
|
73 |
"bos_token": "<s>",
|
74 |
-
"chat_template": "{{ bos_token }}{% 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'] == 'user' %}{{ '<|user|>\n' + message['content'] + '<|end|>\n' }}{% elif message['role'] == 'assistant' %}{{ '<|bot|>\n' + message['content'] + '<|end|>\n' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}
|
75 |
"clean_up_tokenization_spaces": true,
|
76 |
"eos_token": "</s>",
|
77 |
"mask_token": "<mask>",
|
|
|
71 |
"<|end|>"
|
72 |
],
|
73 |
"bos_token": "<s>",
|
74 |
+
"chat_template": "{{ bos_token }}{% 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'] == 'user' %}{{ '<|user|>\n' + message['content'] + '<|end|>\n' }}{% elif message['role'] == 'assistant' %}{{ '<|bot|>\n' + message['content'] + '<|end|>\n' + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
75 |
"clean_up_tokenization_spaces": true,
|
76 |
"eos_token": "</s>",
|
77 |
"mask_token": "<mask>",
|