erndgn commited on
Commit
c2269da
1 Parent(s): 4d9c8eb

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. 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[-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",
 
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",