Files
r200_8f_xtrt_llm/examples/vllm_test/template_chatml.jinja

1 line
203 B
Plaintext
Raw Normal View History

2025-08-06 15:49:14 +08:00
{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}