Draft
perf: N-based tile selection for XPU bf16/fp16 MoE grouped GEMM#2079
Conversation
Copilot created this pull request from a session on behalf of
a32543254
July 23, 2026 02:41
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The XPU bf16/fp16 MoE grouped GEMM (
ark.moe_gemm, the accumulation path for MoE prefill) used a single hard-coded256x128(8x2) work-group tile for every shape, leaving the large-Nup/down projections that dominate prefill under-tiled. Following thew16a16large-M tile-policy heuristic invllm-project/vllm-xpu-kernels, the launcher now selects the tile from the output widthN.Changes (
auto_round_extension/ark/auto_round_kernel/wrapper/include/sycl_tla_moe.hpp):moe_gemm_launcher/choose_tiled_mmaare now parameterized overWGTile/SGLayout; the schedulerTileShapetracks the sameWGTile.moe_gemm, mirroring vLLM's large-M branch:N ≤ 64→256x64x32, SGLayout8x1N ≤ 512→256x128x32, SGLayout8x2(historical default)N > 512→256x256x32, SGLayout8x432x64x32and the existingXE_LOAD_2D/XE_LOAD_2D_VNNI/XE_STORE_2Datoms remain valid (vLLM uses the identicalXE_STORE_2D<16,8,32>for its 256x256 policy).ARK_MOE_GEMM_FIXED_TILE=1forces the historical fixed256x128tile for per-device tuning/regressions.README_MOE_PREFILL_PERF.mdand its CN counterpart.The benchmarked shapes in
test_moe_prefill_perf.py(N=1536up-proj,N=3072down-proj) both fall in theN>512bucket and now use the256x256tile.Type of Change
Performance
Related Issues
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.