Repository navigation
fix(config): keep GLM-5.3-Flash reasoning private on every route - #326
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe GLM-5.3-Flash configuration documents text-only support, enables private thinking, retains unsupported grammar and tool calling, increases the startup timeout, expands startup timing notes, and adds the ChangesGLM-5.3-Flash configuration
Suggested reviewers: Priority: ⬇️ Low Merge Risk: 🔵 Low · up to The cold-start allowance is 2,400 seconds instead of the stated 3,600 seconds; although it exceeds the documented roughly 36-minute startup, the intended deployment timeout should be confirmed before merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
GLM-5.3-Flash's chat template always opens a thinking block and never reads enable_thinking. The queued worker hides reasoning only when a model declares chat_template_kwargs.enable_thinking, so a queued response carried the reasoning and its closing </think> tag in front of the answer. Declaring it true marks that reasoning private there. On the direct route the glm45 reasoning parser splits it off in the engine, and the proxy already drops the split field. The image comment named the wrong cause. The pinned engine resolves transformers 5.12.1, which has no glm5_next processor, so SGLang falls back to a bare tokenizer and never expands an image (sgl-project/sglang#39831). The engine's transformers bump (sgl-project/sglang#39012) is the fix to wait for. A cold start on eight H100s exceeded the 1800 s startup budget when reading the 306 GiB checkpoint took 25 minutes. The budget is now 3600 s. Grammar and tool calling stay unclaimed, and the comment now says why.
…sured cold start Two cold starts on slow hosts took about 32 and 36 minutes, most of it reading the checkpoint. 2400 s covers both without doubling the budget.
369f8f5 to
5d73aed
Compare
Summary
enable_thinking. The queued worker hides reasoning only when a model declareschat_template_kwargs.enable_thinking, so a queued response carried the reasoning and its closing</think>tag in front of the answer. Declaringenable_thinking: truemarks that reasoning private. On the direct route,reasoning_parser: glm45has the engine split it off, and the proxy already drops the split field. The template ignores the flag itself, so the rendered prompt is unchanged.empty_model_output, instead of returning the partial reasoning as content. Budgets must leave room for the reasoning. A one-token chat probe can no longer succeed on this model; a raw-promptgenerateprobe still can.glm5_nextprocessor, so SGLang falls back to a bare tokenizer and never expands an image ([Bug] GLM-5.3-Flash vision silently broken on main: pinned transformers==5.12.1 lacks glm5_next, AutoProcessor degrades to TokenizersBackend sgl-project/sglang#39831). The fix to wait for is the engine's transformers bump ([Deps] Bump transformers to 5.17.0 sgl-project/sglang#39012).inputs.imagestaysfalse.Verification
On eight H100s, through a local gateway, NATS, sidecar and worker, with this YAML plus #327 and #328:
391, no<think>/</think>, no reasoning field,finish_reason: stop, 44 completion tokens391over 7 chunks, no reasoning textjson_schemaresponse format{"capital": "Paris"}after the hidden reasoningempty_model_output, as described above.packages/sie_server/tests/config,core/test_loader.pyandcore/test_revision_identity.pypass. Fourtest_serving_artifactscases fail on macOS because they need Linux's atomic no-replace rename; CI runs them on Linux.Summary by CodeRabbit
New Features
Bug Fixes
Documentation