Update tokenizer_config.json
#11
by
erndgn
- opened
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
}
|
21 |
},
|
22 |
"bos_token": "<|endoftext|>",
|
23 |
-
"chat_template": "{%
|
24 |
"clean_up_tokenization_spaces": true,
|
25 |
"eos_token": "<|stop|>",
|
26 |
"errors": "replace",
|
|
|
20 |
}
|
21 |
},
|
22 |
"bos_token": "<|endoftext|>",
|
23 |
+
"chat_template": "{% set message_count = messages|length %}{% if message_count >= 4 and messages[-4].role == 'user' %}{% set recent_messages = messages[-4:] %}{% elif message_count > 3 %}{% set recent_messages = messages[-3:] %}{% else %}{% set recent_messages = messages %}{% endif %}{% for message in recent_messages %}{% if message.role == 'user' %}### Kullanıcı:\n{{ message.content }}\n{% elif message.role == 'assistant' %}### Asistan:\n{{ message.content }}\n{% endif %}{% endfor %}{% if messages[-1]['role'] == 'user' %}### Asistan:\n{% endif %}",
|
24 |
"clean_up_tokenization_spaces": true,
|
25 |
"eos_token": "<|stop|>",
|
26 |
"errors": "replace",
|