Upload tokenizer
Browse files- chat_template.jinja +3 -4
- tokenizer.json +1 -6
chat_template.jinja
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'assistant') %}{% set role = '
|
2 |
-
|
3 |
-
' }}{% endfor %}{% if add_generation_prompt %}{{'
|
4 |
-
'}}{% endif %}
|
|
|
1 |
+
{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'assistant') %}{% set role = 'Model' %}{% elif (message['role'] == 'user') %}{% set role = 'User' %}{% else %}{% set role = message['role'] %}{% endif %}{{ role + ':' + message['content'] | trim + '
|
2 |
+
|
3 |
+
' }}{% endfor %}{% if add_generation_prompt %}{{'Model:'}}{% endif %}
|
|
tokenizer.json
CHANGED
@@ -1,11 +1,6 @@
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
-
"truncation":
|
4 |
-
"direction": "Right",
|
5 |
-
"max_length": 2014,
|
6 |
-
"strategy": "LongestFirst",
|
7 |
-
"stride": 0
|
8 |
-
},
|
9 |
"padding": null,
|
10 |
"added_tokens": [
|
11 |
{
|
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
+
"truncation": null,
|
|
|
|
|
|
|
|
|
|
|
4 |
"padding": null,
|
5 |
"added_tokens": [
|
6 |
{
|