Skip to content

[vLLM][MoE] Update kernel grid to use autotune selected BLOCK_M and BLOCK_N values - #7776

Open
sarah12121212 wants to merge 20 commits into
mainfrom
batched-moe-td-autotune-key
Open

[vLLM][MoE] Update kernel grid to use autotune selected BLOCK_M and BLOCK_N values#7776
sarah12121212 wants to merge 20 commits into
mainfrom
batched-moe-td-autotune-key

Conversation

@sarah12121212

@sarah12121212 sarah12121212 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Batched MoE Kernel launch grid still used the old vLLM BLOCK_SIZE_M and BLOCK_SIZE_N values returned by vLLM's configuration lookup, instead of the BLOCK_M and BLOCK_N values chosen by the Triton autotuner. This lead to accuracy failures, for example if too few programs were launched compared to the number of programs required for the selected autotuned dimensions.

This PR creates the grid from the selected autotune metadata so that the launch MxN dimension matches the kernel’s actual tile sizes.

All bmg and pvc vllm_tdesc tests pass: https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/32497175599/job/96828939774

Closes #7753

@sarah12121212 sarah12121212 changed the title [vLLM][MoE] Add use_TD as a MoE autotune key [vLLM][MoE] Add USE_TD as a MoE autotune key Aug 17, 2026
@sarah12121212 sarah12121212 changed the title [vLLM][MoE] Add USE_TD as a MoE autotune key [vLLM][MoE] Update kernel grid to use autotune selected MxN values Aug 18, 2026
@sarah12121212 sarah12121212 changed the title [vLLM][MoE] Update kernel grid to use autotune selected MxN values [vLLM][MoE] Update kernel grid to use autotune selected BLOCK_M and BLOCK_N values Aug 18, 2026
@sarah12121212
sarah12121212 marked this pull request as ready for review August 21, 2026 14:49
@sarah12121212
sarah12121212 marked this pull request as ready for review August 24, 2026 12:55
@sarah12121212
sarah12121212 requested a review from quinnlp August 24, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[vLLM] Tensor descriptor patched batched_triton_kernel: Tensor-likes are not equal

2 participants