mayank-mishra commited on
Commit
9f8823b
1 Parent(s): 9470857

apply chat template

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -176,6 +176,7 @@
176
  "<reponame>"
177
  ],
178
  "bos_token": "<|endoftext|>",
 
179
  "clean_up_tokenization_spaces": true,
180
  "eos_token": "<|endoftext|>",
181
  "model_max_length": 9223372036854775807,
 
176
  "<reponame>"
177
  ],
178
  "bos_token": "<|endoftext|>",
179
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ 'Question:\n' + message['content'] + '\n\n' }}{% elif message['role'] == 'system' %}\n{{ 'System:\n' + message['content'] + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ 'Answer:\n' + message['content'] + '\n\n' }}{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ 'Answer:\n' }}{% endif %}{% endfor %}",
180
  "clean_up_tokenization_spaces": true,
181
  "eos_token": "<|endoftext|>",
182
  "model_max_length": 9223372036854775807,