yuvraj17 commited on
Commit
03e0ca2
1 Parent(s): 998d15b

Added Chat-Template in Tokenizer_Config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -2052,6 +2052,7 @@
2052
  "bos_token": "<|begin_of_text|>",
2053
  "clean_up_tokenization_spaces": true,
2054
  "eos_token": "<|end_of_text|>",
 
2055
  "model_input_names": [
2056
  "input_ids",
2057
  "attention_mask"
 
2052
  "bos_token": "<|begin_of_text|>",
2053
  "clean_up_tokenization_spaces": true,
2054
  "eos_token": "<|end_of_text|>",
2055
+ "chat_template" = "{% for message in messages %}{{ '<|begin_of_text|>' + message['role'] + '\n' + message['content'] + '<|end_of_text|>\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|begin_of_text|>assistant\n' }}{% endif %}",
2056
  "model_input_names": [
2057
  "input_ids",
2058
  "attention_mask"