manaestras commited on
Commit
5a2a550
·
verified ·
1 Parent(s): 7fe1eae

Upload tokenizer_config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -2
tokenizer_config.json CHANGED
@@ -6547,9 +6547,9 @@
6547
  },
6548
  "bos_token": "<|hy_begin▁of▁sentence|>",
6549
  "clean_up_tokenization_spaces": true,
6550
- "eos_token": "<|hy_place▁holder▁no▁2|>",
6551
  "model_max_length": 1000000000000000019884624838656,
6552
  "pad_token": "<|hy_▁pad▁|>",
6553
  "tokenizer_class": "PreTrainedTokenizerFast",
6554
- "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% if messages[0]['content'] is string %}{% set system_message = messages[0]['content'] %}{% else %}{% set system_message = messages[0]['content']['text'] %}{% endif %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}<|hy_place▁holder▁no▁100|><|hy_place▁holder▁no▁102|><|hy_place▁holder▁no▁101|>{% elif content['type'] == 'video' or 'video' in content %}<|hy_place▁holder▁no▁104|><|hy_place▁holder▁no▁100|><|hy_place▁holder▁no▁102|><|hy_place▁holder▁no▁101|><|hy_place▁holder▁no▁105|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}<|hy_User|>{% elif message['role'] == 'assistant' %}{{ message['content'] }}<|hy_Assistant|>{% endif %}{% endfor %}"
6555
  }
 
6547
  },
6548
  "bos_token": "<|hy_begin▁of▁sentence|>",
6549
  "clean_up_tokenization_spaces": true,
6550
+ "eos_token": "<|hy_Assistant|>",
6551
  "model_max_length": 1000000000000000019884624838656,
6552
  "pad_token": "<|hy_▁pad▁|>",
6553
  "tokenizer_class": "PreTrainedTokenizerFast",
6554
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% if messages[0]['content'] is string %}{% set system_message = messages[0]['content'] %}{% else %}{% set system_message = messages[0]['content']['text'] %}{% endif %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}<|hy_place▁holder▁no▁100|><|hy_place▁holder▁no▁102|><|hy_place▁holder▁no▁101|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}<|hy_User|>{% elif message['role'] == 'assistant' %}{{ message['content'] }}<|hy_Assistant|>{% endif %}{% endfor %}"
6555
  }