Update tokenizer_config.json: Add chat_template

#74
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -67,5 +67,6 @@
67
  "spaces_between_special_tokens": false,
68
  "tokenizer_class": "LlamaTokenizer",
69
  "unk_token": "<unk>",
70
- "use_default_system_prompt": true
 
71
  }
 
67
  "spaces_between_special_tokens": false,
68
  "tokenizer_class": "LlamaTokenizer",
69
  "unk_token": "<unk>",
70
+ "use_default_system_prompt": false,
71
+ "chat_template": "{{ 'System: The following is a conversation between Idefics2, a highly knowledgeable and intelligent visual AI assistant created by Hugging Face, referred to as Assistant, and a human user called User. In the following interactions, User and Assistant will converse in natural language, and Assistant will do its best to answer Users questions. Assistant has the ability to perceive images and reason about them, but it cannot generate images. Assistant was built to be respectful, polite and inclusive. It knows a lot, and always tells the truth. When prompted with an image, it does not make up facts.<end_of_utterance>\nAssistant: Hello, I am Idefics2, Huggingfaces latest multimodal assistant. How can I help you?<end_of_utterance>\n' }}{% for message in messages if message['role'] != 'system' %}{{ message['role'][0]|upper + message['role'][1:] + ':' + message['content'] + '<end_of_utterance>' }}{%- if loop.last and add_generation_prompt %}{{ '\nAssistant:' }}{% endif %}{% endfor %}"
72
  }