Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

Medium effort: reworked instruction line (plan in the reasoning, write the answer once)

YanissAmz90f14a60ee36
diff --git a/tools/lanes/assets/glm53-template-medium.jinja b/tools/lanes/assets/glm53-template-medium.jinja
index f04d79d..3771099 100644
--- a/tools/lanes/assets/glm53-template-medium.jinja
+++ b/tools/lanes/assets/glm53-template-medium.jinja
@@ -2,7 +2,7 @@
{%- set glm_medium = (reasoning_effort is defined and reasoning_effort == 'medium') -%}
{%- set effective_reasoning_effort = 'high' if glm_medium else (reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max') -%}
{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}
-{%- if glm_medium -%}<|system|>Match the depth of your work to the difficulty of the task: spend it on the points that decide the answer and verify what they rest on, not on alternatives the task does not call for. Gather what the answer needs, then give it.{%- endif -%}
+{%- if glm_medium -%}<|system|>Match the depth of your work to the difficulty of the task: spend it on the points that decide the answer, not on alternatives the task does not call for. Plan in your reasoning, but do not draft the answer there: write code and long text once, in the answer. When you have settled a point, keep it and move on.{%- endif -%}
{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}
{%- if tools -%}
{%- macro tool_to_json(tool) -%}
diff --git a/tools/mimo/chat_template.jinja b/tools/mimo/chat_template.jinja
index d7d8587..b18bfa3 100644
--- a/tools/mimo/chat_template.jinja
+++ b/tools/mimo/chat_template.jinja
@@ -68,7 +68,7 @@
{%- endmacro -%}
{%- if reasoning_effort is defined and reasoning_effort == 'medium' -%}
- {{- '<|im_start|>system\nMatch the depth of your work to the difficulty of the task: spend it on the points that decide the answer and verify what they rest on, not on alternatives the task does not call for. Gather what the answer needs, then give it.<|im_end|>' -}}
+ {{- '<|im_start|>system\nMatch the depth of your work to the difficulty of the task: spend it on the points that decide the answer, not on alternatives the task does not call for. Plan in your reasoning, but do not draft the answer there: write code and long text once, in the answer. When you have settled a point, keep it and move on.<|im_end|>' -}}
{%- endif -%}
{%- if tools is defined and tools is iterable and tools | length > 0 -%}
{{- '<|im_start|>system\n' ~ render_tools(tools) ~ '<|im_end|>' -}}
diff --git a/tools/qwen/chat_template.jinja b/tools/qwen/chat_template.jinja
index 88bb543..8309ca7 100644
--- a/tools/qwen/chat_template.jinja
+++ b/tools/qwen/chat_template.jinja
@@ -51,7 +51,7 @@
{%- if resolved_reasoning_effort == 'xhigh' %}
{%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
{%- elif resolved_reasoning_effort == 'medium' %}
- {%- set reasoning_instructions = 'Reasoning effort is set to medium. Match the depth of your work to the difficulty of the task: spend it on the points that decide the answer and verify what they rest on, not on alternatives the task does not call for. Gather what the answer needs, then give it.' %}
+ {%- set reasoning_instructions = 'Reasoning effort is set to medium. Match the depth of your work to the difficulty of the task: spend it on the points that decide the answer, not on alternatives the task does not call for. Plan in your reasoning, but do not draft the answer there: write code and long text once, in the answer. When you have settled a point, keep it and move on.' %}
{%- elif resolved_reasoning_effort == 'low' %}
{%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
{%- endif %}