Update tokenizer_config.json
#10
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": "{% for message in messages %}{% if message
|
24 |
"clean_up_tokenization_spaces": true,
|
25 |
"eos_token": "<|stop|>",
|
26 |
"errors": "replace",
|
|
|
20 |
}
|
21 |
},
|
22 |
"bos_token": "<|endoftext|>",
|
23 |
+
"chat_template": "{% for message in (messages[-4:] if messages|length >= 4 and messages[-4].role == 'user' else messages[-3:] if messages|length > 3 else 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",
|