Skip to content

fix(sglang): advertise reasoning gate for multimodal LLM workers (#18… - #18451

Merged
nv-nmailhot merged 1 commit into
release/1.7.0from
ibhosale/cherry-pick-18053-v1.7.0
Nov 9, 2026
Merged

nv-nmailhot merged 1 commit into
release/1.7.0from
ibhosale/cherry-pick-18053-v1.7.0

Conversation

@indrajit96

@indrajit96 indrajit96 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Cherry-pick #18053 into release/1.7.0 from commit 1dd1eefd9d94e2228fbf1caf2e873eb5ca73cf6e.

Fix required tool calls with thinking on SGLang workers using --enable-multimodal --frontend-decoding. These workers use the regular LLM handlers, but missing reasoning-gate metadata made the frontend and engine both expect the reasoning boundary, causing plain-text responses instead of the required tool call.

Key Changes

Core logic: 5 added lines, excluding comments and tests.

  • register.py: advertise reasoning-gate support according to worker role, including frontend-decoded media. Dedicated multimodal workers, multimodal encoders, and DLLM handlers retain their exclusions.
  • test_runtime_metadata.py: cover 11 worker configurations and check reasoning-gate metadata independently of disaggregated cancellation capabilities.

Validation

Source-PR reproducer on H100 with Qwen/Qwen3.5-4B, thinking enabled, and tool_choice: "required":

Mode Before fix, default boundary After fix, without boundary override
Non-streaming 0/3 passed 3/3 passed
Streaming 0/3 passed 3/3 passed

The source PR also passed all 11 focused runtime-metadata cases. Reproduction details and controls are recorded in #18054.

For this release backport, the cherry-pick applied without conflicts and its stable patch ID matches the merged main commit. Local lint, formatting, syntax, and whitespace checks passed. Local pytest collection was blocked by an existing vLLM/Transformers aimv2 configuration-registration conflict; the H100 results above are source-PR evidence.

Issues and Ongoing Work

Pull Request Checklist
  • I used Dynamo's /pr-checklist skill.

)

Signed-off-by: Indrajit Bhosale <[email protected]>
(cherry picked from commit 1dd1eef)
Signed-off-by: Indrajit Bhosale <[email protected]>
@indrajit96
indrajit96 requested a review from a team as a code owner November 9, 2026 19:06
@github-actions github-actions Bot added fix backend::sglang Relates to the sglang backend labels Nov 9, 2026
@nv-nmailhot
nv-nmailhot merged commit 37003e9 into release/1.7.0 Nov 9, 2026
116 of 117 checks passed
@nv-nmailhot
nv-nmailhot deleted the ibhosale/cherry-pick-18053-v1.7.0 branch November 9, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend::sglang Relates to the sglang backend fix size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants