Skip to content

[ROCm][DSv4.1] Lift the skinny-GEMM cap in the gfx942 draft lm_head test - #64532

Merged
alexm-redhat merged 3 commits into
vllm-project:mainfrom
frida-andersson:fix-gfx942-draft-lm-head-skinny-cap
Oct 29, 2026
Merged

alexm-redhat merged 3 commits into
vllm-project:mainfrom
frida-andersson:fix-gfx942-draft-lm-head-skinny-cap

Conversation

@frida-andersson

@frida-andersson frida-andersson commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Overview

The gfx942 draft lm_head test still counts wvSplitK after #63179. The 315 MiB shard is over the skinny-GEMM cap, so 4- and 5-row calls leave wvSplitK and the monokernel pad is no longer visible.

Claims

  • test_draft_lm_head_takes_5_rows_off_wvsplitk again sees wvSplitK for up to 5 rows, and no wvSplitK for the 5-row --monokernel pad.
  • The guard's own tests are unchanged. This test sets VLLM_SKINNY_GEMM_MAX_WEIGHT_BYTES to the shard and clears the cached cap on the way out.

Validation

The failure is the three assertions on MI300 in CI #98321 and CI #98239. The same cases passed in CI #97749, before #63179. Ruff check and format pass on the file. The test skips off gfx942, so it was not rerun here.

Details

#63179 skips wvSplitK when the weight is over the memory-side cache and 1 < n <= 5. This shard is 32320×5120 bf16, 315 MiB, and the MI300 cap is 256 MiB. #60731's test still expects those calls. The cap in this test is the shard itself, so the row count still shows the pad. Noted on #63179 with no follow-up yet.


Pull Request Checklist
  • I used vLLM's /pr-checklist skill. (Mandatory for agents, optional for humans).

  • AI assistance was used during the creation of this PR.

  • Design Fit: Minimizes impact on core components, reuses existing functionality, and justifies added complexity.

  • Testing and Validation: Validates the change and ensures any added tests are meaningful and reliable, with CI coverage or documented CI resource constraints and validation performed outside CI.

  • Code Quality and Style: Keeps code and comments clear and concise, and updates relevant documentation and examples.

  • Pull Request Contents: Includes a brief summary and relevant links, supports claims with evidence, explains root causes and implementation trade-offs, and follows the contributing guide.

The 315 MiB shard is over MI300 and MI355 L3, so the guard skips
wvSplitK for n > 1 and the monokernel pad is no longer visible. Set the
cap to this shard. The guard has its own tests.

Signed-off-by: Frida Andersson <fanderss@amd.com>
@mergify mergify Bot added DSv4.1 Related to DeepSeek-V4.1 models rocm Related to AMD ROCm labels Oct 29, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Oct 29, 2026

@alexm-redhat alexm-redhat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@frida-andersson thanks for the quick fix, LGTM!

This test runs on gfx942. The shard is over the 256 MiB cap that
skipped wvSplitK there.

Signed-off-by: Frida Andersson <fanderss@amd.com>
@alexm-redhat

Copy link
Copy Markdown
Contributor

@frida-andersson verified this PR on my side, looks good.

@frida-andersson
frida-andersson marked this pull request as ready for review October 29, 2026 15:31

@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 pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@frida-andersson

Copy link
Copy Markdown
Contributor Author

@frida-andersson verified this PR on my side, looks good.

Thanks for testing it, I'll start CI

@frida-andersson

Copy link
Copy Markdown
Contributor Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #98362 for commit 7ad3b7009eaf.

ℹ️ This PR is 2 commits behind upstream main. Merged upstream main into this branch as 7ad3b7009eaf before starting CI. Pull the branch before pushing more changes.

@AndreasKaratzas

Copy link
Copy Markdown
Member

Cc @amd-hhashemi

@frida-andersson

Copy link
Copy Markdown
Contributor Author

CI is green @alexm-redhat

@alexm-redhat
alexm-redhat merged commit de83f55 into vllm-project:main Oct 29, 2026
27 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Oct 29, 2026
@hmellor hmellor mentioned this pull request Oct 29, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DSv4.1 Related to DeepSeek-V4.1 models rocm Related to AMD ROCm

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants