TakalaWang commited on
Commit
36d4350
·
verified ·
1 Parent(s): 76072eb

Upload processor

Browse files
Files changed (2) hide show
  1. chat_template.json +3 -0
  2. preprocessor_config.json +0 -0
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'system' and 'tools' in message and message['tools'] is not none %}{{ '<|' + message['role'] + '|>' + message['content'] + '<|tool|>' + message['tools'] + '<|/tool|>' + '<|end|>' }}{% else %}{{ '<|' + message['role'] + '|>' + message['content'] + '<|end|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>' }}{% else %}{{ eos_token }}{% endif %}"
3
+ }
preprocessor_config.json CHANGED
The diff for this file is too large to render. See raw diff