erndgn commited on
Commit
32a1548
1 Parent(s): e650fa9

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 %}{% 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": "{% 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",