Issue with the oss model template

#7
by SDpendyam - opened

examples/python/model-chat.py", line 146, in main
tokenizer_input_system_prompt = tokenizer.apply_chat_template(messages=messages, add_generation_prompt=False, template_str=template_str)
RuntimeError: Object is not callable: null at row 198, column 40:
{{- "Knowledge cutoff: 2024-06\n" }}
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
^
{%- if reasoning_effort is not defined %}
at row 198, column 52:
{{- "Knowledge cutoff: 2024-06\n" }}
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
^
{%- if reasoning_effort is not defined %}
at row 198, column 62:
{{- "Knowledge cutoff: 2024-06\n" }}
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
^
{%- if reasoning_effort is not defined %}
at row 198, column 5:
{{- "Knowledge cutoff: 2024-06\n" }}
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
^
{%- if reasoning_effort is not defined %}
at row 191, column 37:
{#- System Message Construction ============================================ #}
{%- macro build_system_message() -%}
^
{%- if model_identity is not defined %}
at row 243, column 25:
{{- "<|start|>system<|message|>" }}
{{- build_system_message() }}
^
{{- "<|end|>" }}
at row 243, column 1:
{{- "<|start|>system<|message|>" }}
{{- build_system_message() }}
^
{{- "<|end|>" }}
at row 7, column 4:

  • "reasoning_effort": A string that describes the reasoning effort, defaults to "medium".

#}

Sign up or log in to comment