plamo-2-translate-base / playground_api_chat_template.jinja2
imos's picture
Upload folder using huggingface_hub
83a550d verified
raw
history blame contribute delete
552 Bytes
{{- "<|plamo:op|>dataset\ntranslation\n" -}}
{% for message in messages %}
{%- if message['role'] == 'user' %}
{{- '<|plamo:op|>input lang=Japanese|English\n' + message['content'] + '\n' }}
{%- elif message['role'] == 'assistant' %}
{{- '<|plamo:op|>output\n' + message['content']}}
{%- if not loop.last %}
{{- '\n'}}
{%- endif %}
{%- endif %}
{% if loop.last and message['role'] != 'assistant' and add_generation_prompt %}
{{- '<|plamo:op|>output\n' -}}
{% endif %}
{% endfor %}