Skip to content

[Fix] hunyuan_v4_flash: Read TP size and rank through get_parallel() and list its fusion gate - #51969

Merged
hnyls2002 merged 1 commit into
mainfrom
lsyin/fix-hyv4flash-ci
Nov 20, 2026
Merged

hnyls2002 merged 1 commit into
mainfrom
lsyin/fix-hyv4flash-ci

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator
  • [Feat] models: Hunyuan-4-Flash text model #51668 left two CPU unit tests failing on main, so every PR's base-a-test-cpu fails on them.
  • test_runtime_context.py: hunyuan_v4_flash.py read the TP size and rank through get_tensor_model_parallel_world_size() / get_tensor_model_parallel_rank(). They now come from get_parallel().tp_size / get_parallel().tp_rank, which return the same values.
  • test_draft_entry_hook_parity.py: HYV4FlashForConditionalGeneration exposes shared_experts_fusion_disable_reason without num_fusable_shared_experts. Its gate always disables fusion, as HYV4's does, so it joins GATE_WITHOUT_COUNT.
  • No behavior change.
  • Both test files pass locally on CPU (167 passed); both fail on main.

CI States

Latest PR Test (Base): ⊘ Skipped -- add the run-ci label to run CI tests.
Latest PR Test (Extra): ⊘ Skipped -- add the run-ci label to run CI tests.
Latest PR Test (AMD ROCm 10): ⊘ Skipped -- add the run-ci label to run CI tests.

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

…its always-off fusion gate in GATE_WITHOUT_COUNT

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@hnyls2002

Copy link
Copy Markdown
Collaborator Author

/rerun-test registered/unit/test_runtime_context.py test_draft_entry_hook_parity.py

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🚀 ubuntu-latest (2 tests): ✅ View workflow run

cd test/ && python3 registered/unit/test_runtime_context.py  # base-a
cd test/ && python3 registered/unit/models/test_draft_entry_hook_parity.py  # base-a

@hnyls2002
hnyls2002 merged commit d2d70c6 into main Nov 20, 2026
137 of 139 checks passed
@hnyls2002
hnyls2002 deleted the lsyin/fix-hyv4flash-ci branch November 20, 2026 23:57
jasperjiaguo added a commit to jasperjiaguo/sglang that referenced this pull request Nov 21, 2026
Pick up the upstream fixes for the Hunyuan-4-Flash test breakage (sgl-project#51969) and
the DFLASH / DSpark request-penalty change (sgl-project#47020); no conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant