Ahhhhh. No how are we back here?!
Getting .assistant again with llama3.2
My instruction template is {%- set ns = namespace(found=false) -%}
{%- for message in messages -%}
{%- if message['role'] == 'system' -%}
{%- set ns.found = true -%}
{%- endif -%}
{%- endfor -%}
{%- for message in messages %}
{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}
{% if loop.index0 == 0 %}
{% set content = '<|begin_of_text|>' + content %}
{% endif %}
{{- content -}}
{%- endfor -%}
{%- if add_generation_prompt -%}
{{- '<|start_header_id|>' + 'assistant' + '<|end_header_id|>\n\n' -}}
{%- endif -%}
Help anons! I brain no good with this regex wannabe language