Skip to content

[Bugfix] Fix packed GDN decode launch for large batch-head grids - #52030

Merged
vllm-bot merged 1 commit into
vllm-project:mainfrom
neuralmagic:fused-recurrent-ceiling
Aug 13, 2026
Merged

vllm-bot merged 1 commit into
vllm-project:mainfrom
neuralmagic:fused-recurrent-ceiling

Conversation

@mgoin

@mgoin mgoin commented Aug 12, 2026

Copy link
Copy Markdown
Member

Purpose

Avoid a CUDA launch failure in packed GDN decode when batch_size * num_value_heads exceeds the maximum CUDA grid Y/Z dimension of 65,535.

The existing launch is preserved for normal sizes. Only overflowing cases use a split (value_tiles, value_heads, batch) grid.

Test Plan

Test Result

  • Verified the failing Qwen shape (B=1024, HV=64, K=V=128) launches successfully.
  • Running vllm serve mgoin/Qwen3.8-2.4T-A95B-NVFP4-pruned94 -tp=2 doesn't crash anymore

Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Signed-off-by: mgoin <mgoin64@gmail.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.

@mergify mergify Bot added the bug Something isn't working label Aug 12, 2026
@mgoin mgoin added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 12, 2026
@mgoin

mgoin commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #83590 for commit 7a005c3f772d.

@mgoin

mgoin commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

/ci retry

@github-actions

Copy link
Copy Markdown

✅ Queued 8 failed job(s) for retry in Buildkite CI #83590.

@vllm-bot
vllm-bot merged commit 2d24355 into vllm-project:main Aug 13, 2026
62 of 66 checks passed
pmanczak added a commit to pmanczak/vllm that referenced this pull request Aug 19, 2026
The test hardcoded a CUDA device and skipped everywhere else, so the
packed-decode kernel and its gated-delta-rule reference had no coverage
on non-CUDA accelerators even though both are pure Triton and already
build there. Resolve the device via current_platform and gate on
CUDA-alike or XPU, matching the pattern already used by sibling Triton
kernel tests such as tests/kernels/mamba/test_mamba_ssm_ssd.py.

The gate becomes a module-level pytestmark so it also covers
test_packed_decode_supports_large_batch_head_grid (added in vllm-project#52030),
whose own torch.cuda.is_available() skip and hardcoded device string are
dropped as redundant. That test is not a no-op off CUDA: B * HV = 65536
selects the SPLIT_BATCH_HEAD_GRID branch on XPU as well, so it is the
only coverage this platform has for the 3D-grid launch path.

Verified on Intel Arc Pro B70 (torch 2.13.0+xpu, Triton 3.7.2):
7 passed, six covering float16/bfloat16/float32 x strided/non-strided
and one the large batch-head grid launch.

Signed-off-by: pmanczak <pawel.manczak@intel.com>
pmanczak added a commit to pmanczak/vllm that referenced this pull request Aug 20, 2026
The test hardcoded a CUDA device and skipped everywhere else, so the
packed-decode kernel and its gated-delta-rule reference had no coverage
on non-CUDA accelerators even though both are pure Triton and already
build there. Resolve the device via current_platform and gate on
CUDA-alike or XPU, matching the pattern already used by sibling Triton
kernel tests such as tests/kernels/mamba/test_mamba_ssm_ssd.py.

The gate becomes a module-level pytestmark so it also covers
test_packed_decode_supports_large_batch_head_grid (added in vllm-project#52030),
whose own torch.cuda.is_available() skip and hardcoded device string are
dropped as redundant. That test is not a no-op off CUDA: B * HV = 65536
selects the SPLIT_BATCH_HEAD_GRID branch on XPU as well, so it is the
only coverage this platform has for the 3D-grid launch path.

Verified on Intel Arc Pro B70 (torch 2.13.0+xpu, Triton 3.7.2):
7 passed, six covering float16/bfloat16/float32 x strided/non-strided
and one the large batch-head grid launch.

Signed-off-by: pmanczak <pawel.manczak@intel.com>
zyp2014 pushed a commit to zyp2014/vllm that referenced this pull request Aug 21, 2026
zufangzhu pushed a commit to zufangzhu/vllm that referenced this pull request Aug 24, 2026
…m-project#52030)

Signed-off-by: mgoin <mgoin64@gmail.com>
Signed-off-by: Zhu, Zufang <zufang.zhu@intel.com>
khushali9 pushed a commit to khushali9/vllm that referenced this pull request Aug 29, 2026
…m-project#52030)

Signed-off-by: mgoin <mgoin64@gmail.com>
Signed-off-by: khushali9 <khushali.desai9@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants