Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

fix(config): keep GLM-5.3-Flash reasoning private on every route (#326)

Krisztian Gajdar1ffb19c4a8b1
diff --git a/packages/sie_server/models/zai-org__GLM-5.3-Flash.yaml b/packages/sie_server/models/zai-org__GLM-5.3-Flash.yaml
index 384a095a8..ea72cb575 100644
--- a/packages/sie_server/models/zai-org__GLM-5.3-Flash.yaml
+++ b/packages/sie_server/models/zai-org__GLM-5.3-Flash.yaml
@@ -8,9 +8,12 @@ hf_revision: eb9eb208eb0d988989d07a6a12d0fdeb5f52574a
# processor. The weights need eight 80 GB accelerators.
inputs:
text: true
- # The architecture reads images, but on the pinned engine its answers about
- # them are wrong (the colours arrive permuted), through the engine's own chat
- # endpoint too. Text only until that is fixed and measured again.
+ # The architecture reads images, but the pinned engine resolves transformers
+ # 5.12.1, which has no glm5_next processor. SGLang then falls back to a bare
+ # tokenizer and never turns an image into visual tokens, so an answer about
+ # an image is a guess from the text (sgl-project/sglang#39831). Text only
+ # until the engine moves to transformers 5.16.1 or later
+ # (sgl-project/sglang#39012) and images are measured again.
image: false
audio: false
video: false
@@ -23,9 +26,16 @@ tasks:
# what was measured on eight 80 GB accelerators.
context_length: 16384
max_output_tokens: 4096
- # The chat template always opens a thinking block, so without a reasoning
- # parser the answer follows the reasoning and its closing </think> tag.
- # Grammar and tool calling are not measured on this engine yet.
+ # The chat template always opens a thinking block and never reads
+ # enable_thinking. Declaring it true marks that reasoning private: the
+ # queued worker drops everything before </think>, and the direct route
+ # has the engine's glm45 parser split it off.
+ chat_template_kwargs:
+ enable_thinking: true
+ # Grammar and tool calling are not claimed yet. On the queued route the
+ # engine applies a grammar from the first generated token, which is inside
+ # the open thinking block, and the worker does not parse this template's
+ # <arg_key>/<arg_value> tool calls.
capabilities:
grammar: []
streaming: true
@@ -43,14 +53,16 @@ profiles:
# The first request after a cold start compiled kernels for 91 s before
# its first byte, measured on eight H100s.
request_read_timeout_s: 300
- # A cold start took 884 s on eight H100s, most of it kernel compilation
- # and decode CUDA-graph capture.
- startup_timeout_s: 1800
+ # Cold starts on eight H100s took from 684 s to about 36 minutes.
+ # Reading the 306 GiB checkpoint took from a few minutes to 25 minutes,
+ # and decode CUDA-graph capture about 7.5 more.
+ startup_timeout_s: 2400
max_seq_length: 16384
mem_fraction_static: 0.85
served_model_name: zai-org/GLM-5.3-Flash
trust_remote_code: false
grammar_backend: xgrammar
+ reasoning_parser: glm45
speculative:
enabled: false
runtime: