Updated chat template
Browse files- tokenizer.json +2 -2
- tokenizer_config.json +2 -2
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7dcde72dffd17ac65e06ca5d2f013c99802b0713262541211d485e08377ba20
|
| 3 |
+
size 9087148
|
tokenizer_config.json
CHANGED
|
@@ -2114,7 +2114,7 @@
|
|
| 2114 |
}
|
| 2115 |
},
|
| 2116 |
"bos_token": "<|begin_of_text|>",
|
| 2117 |
-
"chat_template": "
|
| 2118 |
"clean_up_tokenization_spaces": true,
|
| 2119 |
"eos_token": "<|eot_id|>",
|
| 2120 |
"model_input_names": [
|
|
@@ -2123,5 +2123,5 @@
|
|
| 2123 |
],
|
| 2124 |
"model_max_length": 131072,
|
| 2125 |
"pad_token": "<pad>",
|
| 2126 |
-
"tokenizer_class": "
|
| 2127 |
}
|
|
|
|
| 2114 |
}
|
| 2115 |
},
|
| 2116 |
"bos_token": "<|begin_of_text|>",
|
| 2117 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] }}\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 %}",
|
| 2118 |
"clean_up_tokenization_spaces": true,
|
| 2119 |
"eos_token": "<|eot_id|>",
|
| 2120 |
"model_input_names": [
|
|
|
|
| 2123 |
],
|
| 2124 |
"model_max_length": 131072,
|
| 2125 |
"pad_token": "<pad>",
|
| 2126 |
+
"tokenizer_class": "CustomChatTokenizer"
|
| 2127 |
}
|