Skip to content

GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold

Python

Patch 0114: number the tool-tag-mention patch (#134) after the patches already ported (0112 -> 0114)

MiaAI-Lab305225aebc68
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5b44a23..35ef266 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -52,7 +52,7 @@ Every change to this recipe, newest first. Each release names the image it serve
it whole (cache fields 0); the final delta keeps the engine's input/cache_read split, the two totals equal, and
no second render runs. The Mac server's head is written before its render, so it keeps the old zeros (in the
patch header). CPU check: `tools/test_anthropic_stream_head.py`.
-- **A tool call after a quoted `<tool_call>` tag is a call again** (patch `0112-glm-tool-tag-mention`, by
+- **A tool call after a quoted `<tool_call>` tag is a call again** (patch `0114-glm-tool-tag-mention`, by
[kky42](https://github.com/kky42)): every place the server finds GLM calls ran a block from any `<tool_call>` to the
next `</tool_call>`, so a reply that mentioned the tag ("the literal `<tool_call>` markup") before its real call made
one unparseable block of both: across `</think>` in the reasoning (cut at the mention), across the prose in the
diff --git a/patches/0112-glm-tool-tag-mention.patch b/patches/0114-glm-tool-tag-mention.patch
similarity index 100%
rename from patches/0112-glm-tool-tag-mention.patch
rename to patches/0114-glm-tool-tag-mention.patch
diff --git a/tools/test_think_tag_mention.py b/tools/test_think_tag_mention.py
index 79e6e49..e32eeac 100644
--- a/tools/test_think_tag_mention.py
+++ b/tools/test_think_tag_mention.py
@@ -1,9 +1,9 @@
-"""CPU-only test of patch 0112: a ``<tool_call>`` tag a reply mentions is text, not the start of a call.
+"""CPU-only test of patch 0114: a ``<tool_call>`` tag a reply mentions is text, not the start of a call.
python3 -B tools/test_think_tag_mention.py --source-root /path/to/patched/src
No Torch/CUDA, sockets or source writes. Runs replies through the real ``ThinkSplit``, ``parse_tool_calls``,
``hide_tool_calls`` and ``GlmCallStreamer`` as the CUDA server does, whole and streamed one character at a time (with
-and without the call hold), and checks the reasoning, the content and the calls. Before 0112 a mention matched up to
+and without the call hold), and checks the reasoning, the content and the calls. Before 0114 a mention matched up to
the next ``</tool_call>``: in the think block through ``</think>`` to the real call, in the answer through the real
call, so the call came back as content text with no tool_calls (live on v1.10: every time the model quoted the tag)."""
from __future__ import annotations