liswei commited on
Commit
4f0b55a
·
verified ·
1 Parent(s): e930523

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -227,7 +227,7 @@
227
  "<|video_pad|>"
228
  ],
229
  "bos_token": null,
230
- "chat_template": "{%- for message in messages[::-1] %}\n{%- if message.role == \"user\" %}\n{{ message.content }}\n{%- break %}\n{%- endif %}\n{%- endfor %}",
231
  "clean_up_tokenization_spaces": false,
232
  "eos_token": "<|im_end|>",
233
  "errors": "replace",
 
227
  "<|video_pad|>"
228
  ],
229
  "bos_token": null,
230
+ "chat_template": "{{ messages | selectattr(\"role\", \"equalto\", \"user\") | map(attribute=\"content\") | list | last }}",
231
  "clean_up_tokenization_spaces": false,
232
  "eos_token": "<|im_end|>",
233
  "errors": "replace",