prince-canuma commited on
Commit
235e119
1 Parent(s): fd45719

Upload tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +3 -2
tokenizer_config.json CHANGED
@@ -123,7 +123,7 @@
123
  "special": false
124
  },
125
  "100015": {
126
- "content": "<image_placeholder>",
127
  "lstrip": false,
128
  "normalized": false,
129
  "rstrip": false,
@@ -132,10 +132,11 @@
132
  }
133
  },
134
  "additional_special_tokens": [
135
- "<image_placeholder>"
136
  ],
137
  "bos_token": "<|begin▁of▁sentence|>",
138
  "clean_up_tokenization_spaces": false,
 
139
  "eos_token": "<|end▁of▁sentence|>",
140
  "model_max_length": 16384,
141
  "pad_token": null,
 
123
  "special": false
124
  },
125
  "100015": {
126
+ "content": "<image>",
127
  "lstrip": false,
128
  "normalized": false,
129
  "rstrip": false,
 
132
  }
133
  },
134
  "additional_special_tokens": [
135
+ "<image>"
136
  ],
137
  "bos_token": "<|begin▁of▁sentence|>",
138
  "clean_up_tokenization_spaces": false,
139
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n\\n'%}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + 'You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.\n\n' + 'User: ' + content.strip() + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ 'Assistant: ' + content.strip() + '\n\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}",
140
  "eos_token": "<|end▁of▁sentence|>",
141
  "model_max_length": 16384,
142
  "pad_token": null,