Skip to content

[CI][ROCm][Bugfix] DeepSeek V4.1: don't pass expert intermediate padding to AITER - #61960

Merged
AndreasKaratzas merged 5 commits into
vllm-project:mainfrom
ROCm:micah/dsv41-aiter-moe-pad-hotfix
Oct 17, 2026
Merged

AndreasKaratzas merged 5 commits into
vllm-project:mainfrom
ROCm:micah/dsv41-aiter-moe-pad-hotfix

Conversation

@micah-wil

Copy link
Copy Markdown
Collaborator

AITER 0.1.25's FlyDSL MoE (ROCm/aiter#6125 configs) leaves the padded intermediate columns unwritten when told about the padding, so stage 2 reads stale memory and small decode batches (M <= 4 tokens) can come out NaN. This hits DeepSeek V4.1 at TP4, where the per-rank expert intermediate size is padded 576 -> 640.

Pass intermediate_pad=0 for V4.1's routed experts so AITER computes over the zero padding instead of skipping it, which is exact. DeepSeek V4 never pads the expert intermediate size and is unchanged. Revert once vLLM pins an AITER with the fix ROCm/aiter#6598.

This hotfix was developed to resolve the flakiness in the newly added test group (MI355) DeepSeek-V4.1 Mono Decode Numerics

lm-eval results:

Run Concurrency flexible-extract strict-match
DSv4.1-Flash TP4 + hotfix 64 0.9242 ± 0.0073 0.9249 ± 0.0073
DSv4.1-Flash TP4 + hotfix 2 0.9375 ± 0.0121 0.9375 ± 0.0121

micah-wil and others added 2 commits October 15, 2026 22:33
…to AITER

AITER 0.1.25's FlyDSL MoE (ROCm/aiter#6125 configs) leaves the padded
intermediate columns unwritten when told about the padding, so stage 2 reads
stale memory and small decode batches (M <= 4 tokens) can come out NaN. This
hits DeepSeek V4.1 at TP4, where the per-rank expert intermediate size is
padded 576 -> 640.

Pass intermediate_pad=0 for V4.1's routed experts so AITER computes over the
zero padding instead of skipping it, which is exact. DeepSeek V4 never pads
the expert intermediate size and is unchanged. Revert once vLLM pins an AITER
with the stage-1 grid fix.

Signed-off-by: Micah Williamson <micah.williamson@amd.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Micah Williamson <micah.williamson@amd.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

@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.

@micah-wil micah-wil added the ready ONLY add when PR is ready to merge/full CI is needed label Oct 16, 2026
@mergify mergify Bot added the deepseek Related to DeepSeek models label Oct 16, 2026
@micah-wil

Copy link
Copy Markdown
Collaborator Author

/ci run

@mergify mergify Bot added DSv4 DSv4.1 Related to DeepSeek-V4.1 models rocm Related to AMD ROCm bug Something isn't working labels Oct 16, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Oct 16, 2026
@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #95332 for commit f6b397c6731d.

@micah-wil

Copy link
Copy Markdown
Collaborator Author

/ci retry

@github-actions

Copy link
Copy Markdown

✅ The previous CI build is still running: https://buildkite.com/vllm/ci/builds/95332

@micah-wil

Copy link
Copy Markdown
Collaborator Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #95382 for commit 84796dcd8b64.

@AndreasKaratzas

Copy link
Copy Markdown
Member

/ci retry

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #95522 for commit b85c6c2db78a, running 1 failed step(s) from Buildkite CI #95382.

@AndreasKaratzas
AndreasKaratzas merged commit a0e7137 into vllm-project:main Oct 17, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Oct 17, 2026
@AndreasKaratzas
AndreasKaratzas deleted the micah/dsv41-aiter-moe-pad-hotfix branch October 17, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working deepseek Related to DeepSeek models DSv4 DSv4.1 Related to DeepSeek-V4.1 models ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants