Patil commited on
Commit
c3288f0
1 Parent(s): 2af6b05

Upload tokenizer

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -2050,6 +2050,7 @@
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
 
2053
  "clean_up_tokenization_spaces": true,
2054
  "eos_token": "<|end_of_text|>",
2055
  "model_input_names": [
 
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
2053
+ "chat_template": "{% if messages[0]['role' == 'system'] %}{% set system_message = messages[0]['content'] %}{% else %}{% set system_message = 'Act as a helpful assistant and respond to the user with the best of your knowledge.' %}{% endif %}{{ 'System: ' + system_message.strip() }}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ 'User: ' + content.strip() + '\n' }}{% elif message['role'] == 'assistant' %}{{ 'Assistant: ' + content.strip() + '\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant: ' }}{% endif %}",
2054
  "clean_up_tokenization_spaces": true,
2055
  "eos_token": "<|end_of_text|>",
2056
  "model_input_names": [