jacobmorrison commited on
Commit
79e8e34
1 Parent(s): 6dc09f9

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -2058,6 +2058,7 @@
2058
  }
2059
  },
2060
  "bos_token": "<|begin_of_text|>",
 
2061
  "clean_up_tokenization_spaces": true,
2062
  "eos_token": "<|end_of_text|>",
2063
  "model_input_names": [
 
2058
  }
2059
  },
2060
  "bos_token": "<|begin_of_text|>",
2061
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|system|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'user' %}{{ '<|user|>\n' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{% if not loop.last %}{{ '<|assistant|>\n' + message['content'] + eos_token + '\n' }}{% else %}{{ '<|assistant|>\n' + message['content'] + eos_token }}{% endif %}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}{% endfor %}",
2062
  "clean_up_tokenization_spaces": true,
2063
  "eos_token": "<|end_of_text|>",
2064
  "model_input_names": [