nosuchjihyun commited on
Commit
d5cd67b
·
verified ·
1 Parent(s): d8d1c2b

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -252,6 +252,7 @@
252
  }
253
  },
254
  "bos_token": "<bos>",
 
255
  "clean_up_tokenization_spaces": false,
256
  "cls_token": "<classification>",
257
  "eos_token": "<eos>",
 
252
  }
253
  },
254
  "bos_token": "<bos>",
255
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
256
  "clean_up_tokenization_spaces": false,
257
  "cls_token": "<classification>",
258
  "eos_token": "<eos>",