Add chat_template to tokenizer_config.json
#11
by
bethrezen
- opened
Chat template is provided only in chat_template.json while some libraries expect it directly in tokenizer_config.json
Refer to this code snippet: https://github.com/huggingface/transformers/blob/3017536ebf3f215130cf4925a574c19fb4854cae/docs/source/en/model_doc/mistral3.md#inference-on-a-single-image
prompt = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
but have encounterd this issue:
TypeError: can only concatenate str (not "list") to str