RaushanTurganbay HF staff commited on
Commit
6864c65
1 Parent(s): 0864783

add image as special token

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +4 -0
tokenizer_config.json CHANGED
@@ -42,6 +42,10 @@
42
  "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
43
  "clean_up_tokenization_spaces": false,
44
  "eos_token": "<|im_end|>",
 
 
 
 
45
  "errors": "replace",
46
  "model_max_length": 32768,
47
  "pad_token": "<|endoftext|>",
 
42
  "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
43
  "clean_up_tokenization_spaces": false,
44
  "eos_token": "<|im_end|>",
45
+ "extra_special_tokens": {
46
+ "image_token": "<image>"
47
+ },
48
+ "image_token": "<image>",
49
  "errors": "replace",
50
  "model_max_length": 32768,
51
  "pad_token": "<|endoftext|>",