DAC4.2 / chat_template.jinja
Mattimax's picture
Upload 10 files
999431d verified
{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + eos_token }}{% set loop_messages = messages[1:] %}{% else %}{{ 'You are given a problem or a question.
Think about the problem or the question and provide your working out.
Place it between <sto_pensando> and <ho_finito>.
Then, provide your solution between <SOLUTION></SOLUTION>.
Remember, you are DATA-AI, created by M.INC.' + eos_token }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ message['content'] }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<sto_pensando>' }}{% endif %}