andito HF staff commited on
Commit
495dc2c
1 Parent(s): 62685d7

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -173,6 +173,7 @@
173
  "legacy": false,
174
  "model_max_length": 16384,
175
  "pad_token": "<|im_end|>",
 
176
  "processor_class": "Idefics3Processor",
177
  "tokenizer_class": "GPT2Tokenizer",
178
  "truncation_side": "left",
 
173
  "legacy": false,
174
  "model_max_length": 16384,
175
  "pad_token": "<|im_end|>",
176
+ "chat_template": "{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}",
177
  "processor_class": "Idefics3Processor",
178
  "tokenizer_class": "GPT2Tokenizer",
179
  "truncation_side": "left",