Rocketknight1 HF staff commited on
Commit
eeb56b9
1 Parent(s): 843a9bb

Add chat template

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -49,6 +49,7 @@
49
  "</s>"
50
  ],
51
  "bos_token": "<s>",
 
52
  "clean_up_tokenization_spaces": false,
53
  "eos_token": "<|im_end|>",
54
  "legacy": true,
 
49
  "</s>"
50
  ],
51
  "bos_token": "<s>",
52
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
53
  "clean_up_tokenization_spaces": false,
54
  "eos_token": "<|im_end|>",
55
  "legacy": true,