SorenDreano commited on
Commit
5a9fee3
·
verified ·
1 Parent(s): b7361da

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. chat_template.jinja +4 -4
chat_template.jinja CHANGED
@@ -101,10 +101,10 @@
101
  {%- elif message.role == 'user' and message.name != "example" -%}
102
  {%- set content = render_content(message.content, true)|trim %}
103
  {{- content + '\n' -}}
104
- {%- elif message.role == 'assistant' and not loop.last %}
105
- {# llama.cpp renders a synthetic init example with an assistant turn in
106
- the middle; ignore it so valid NuExtract prompts render unchanged.
107
- {{- raise_exception('Assistant message must be at the end.') }} #}
108
  {%- endif %}
109
  {%- endfor -%}
110
  {{- '【document_end】<|im_end|>\n' -}}
 
101
  {%- elif message.role == 'user' and message.name != "example" -%}
102
  {%- set content = render_content(message.content, true)|trim %}
103
  {{- content + '\n' -}}
104
+ {# {%- elif message.role == 'assistant' and not loop.last %}
105
+ llama.cpp renders a synthetic init example with an assistant turn in
106
+ the middle; ignore it so valid NuExtract prompts render unchanged.
107
+ {{- raise_exception('Assistant message must be at the end.') }} #}
108
  {%- endif %}
109
  {%- endfor -%}
110
  {{- '【document_end】<|im_end|>\n' -}}