Skip to content

[Test] [AMD] deepseek-v4.1: Fix the HIP breakable-graph unit tests for the default prefill context limit and the DSpark draft ring - #45507

Merged
HaiShaw merged 1 commit into
sgl-project:mainfrom
michaelzhang-ai:ci-fix/dsv4-hip-bcg-tests
Oct 22, 2026
Merged

HaiShaw merged 1 commit into
sgl-project:mainfrom
michaelzhang-ai:ci-fix/dsv4-hip-bcg-tests

Conversation

@michaelzhang-ai

@michaelzhang-ai michaelzhang-ai commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What

Test-only fix for the two unit tests that keep stage-b-test-1-gpu-small-amd-mi35x red on main.

Why

Both partitions fail on every scheduled run since Oct 19, e.g. partition 0 and partition 1.

Fix

  • test_dsv41_bcg_hip.py: take the limit from backend._graph_metadata_max_seq_len(capture_batch), which is what capture and replay actually use. Build the eager reference at that limit and expect ceil(min(limit, req_to_token width) / page_size) columns. This also turns on the existing limit branch (eager rebuild at the limit, overflow raises), which had no caller before.
  • test_dsv4_hip_bcg_metadata.py: add swa_req_ring_size=None and swa_valid_from=None to the mock pool. These match the real pool's paged-SWA defaults.

No library code changes.

Test plan


CI States

Latest PR Test (Base): ❌ Run #39542002257
Latest PR Test (Extra): ❌ Run #39542002294
Latest PR Test (AMD ROCm 10): ❌ Run #39542002188

…t prefill context limit and the DSpark draft ring

test_dsv41_bcg_hip.py: since sgl-project#43733 the HIP backend captures and replays the
DeepSeek-V4.1 prefill graph at its default context limit, so build the eager
reference and the expected page-table width at that limit.

test_dsv4_hip_bcg_metadata.py: since sgl-project#44673 the DSpark draft SWA path reads
swa_req_ring_size / swa_valid_from from the pool; give the mock pool the paged
defaults (None).
@michaelzhang-ai michaelzhang-ai changed the title [AMD] [CI] Fix DSv4 HIP breakable-graph unit tests after the default prefill context limit and DSpark draft ring [Test] [AMD] deepseek-v4.1: Fix the HIP breakable-graph unit tests for the default prefill context limit and the DSpark draft ring Oct 21, 2026
@michaelzhang-ai
michaelzhang-ai marked this pull request as ready for review October 21, 2026 09:58
@michaelzhang-ai michaelzhang-ai added the run-ci CI: run the baseline test suite on this PR label Oct 21, 2026

@1am9trash 1am9trash left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@HaiShaw
HaiShaw merged commit 0a87f16 into sgl-project:main Oct 22, 2026
327 of 350 checks passed
@michaelzhang-ai
michaelzhang-ai deleted the ci-fix/dsv4-hip-bcg-tests branch October 22, 2026 16:00
maocheng23 pushed a commit to maocheng23/sglang that referenced this pull request Oct 23, 2026
Include the upstream lm_head shared-buffer precision fix (sgl-project#45855), AMD kernel import and graph fixture fixes (sgl-project#45676, sgl-project#45507), and NIXL device selection fix (sgl-project#45722). Preserve the auxiliary hidden-state capture diff unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants