Image-Text-to-Text
Transformers
Safetensors
llava
conversational

Fix Jinja template parsing errors: tuple unpacking and multi-line string concatenation

#9
by QuantPanda - opened
Files changed (1) hide show
  1. chat_template.jinja +4 -3
chat_template.jinja CHANGED
@@ -4,7 +4,8 @@
4
  {%- set messages = messages or [] -%}
5
  {%- set tools = tools or [] -%}
6
  {%- set add_generation_prompt = add_generation_prompt or false -%}
7
- {%- set available_tool_string, add_tool_id = '', true -%}
 
8
  {%- set add_thoughts = false -%} {# whether to include <thinking> reasoning blocks #}
9
  {%- set add_generation_prompt = true -%} {# whether to emit reasoning starter before assistant response #}
10
  {# Optional token placeholders (safe defaults) #}
@@ -14,8 +15,8 @@
14
  {# Core reasoning prompt and assistant reasoning prefix #}
15
  {# ---------------------------------------------------------------------- #}
16
  {%- set reasoning_prompt =
17
- 'You are a thoughtful, systematic AI assistant from ServiceNow Language Models (SLAM) lab. '
18
- 'Analyze each question carefully, present your reasoning step-by-step, then provide the final '
19
  'response after the marker [BEGIN FINAL RESPONSE].'
20
  -%}
21
  {%- set reasoning_asst_turn_start = 'Here are my reasoning steps:\n' -%}
 
4
  {%- set messages = messages or [] -%}
5
  {%- set tools = tools or [] -%}
6
  {%- set add_generation_prompt = add_generation_prompt or false -%}
7
+ {%- set available_tool_string = '' -%}
8
+ {%- set add_tool_id = true -%}
9
  {%- set add_thoughts = false -%} {# whether to include <thinking> reasoning blocks #}
10
  {%- set add_generation_prompt = true -%} {# whether to emit reasoning starter before assistant response #}
11
  {# Optional token placeholders (safe defaults) #}
 
15
  {# Core reasoning prompt and assistant reasoning prefix #}
16
  {# ---------------------------------------------------------------------- #}
17
  {%- set reasoning_prompt =
18
+ 'You are a thoughtful, systematic AI assistant from ServiceNow Language Models (SLAM) lab. ' ~
19
+ 'Analyze each question carefully, present your reasoning step-by-step, then provide the final ' ~
20
  'response after the marker [BEGIN FINAL RESPONSE].'
21
  -%}
22
  {%- set reasoning_asst_turn_start = 'Here are my reasoning steps:\n' -%}