vulkan: GEMM/Group GEMM optimizations and optional load-time weight compression for Intel MoE path (3/3, Xe-LPG Plus/Xe2/Xe3)#24407
Draft
fish-jiang wants to merge 2 commits into
Draft
Conversation
…PG Plus (1/3, Xe1-ARLH) Co-authored-by: Xia, Jie <jie.xia@intel.com> Co-authored-by: Liu, Russell <russell.liu@intel.com>
…n for Intel MoE path (3/3, Xe-LPG Plus/Xe2/Xe3) Co-authored-by: Xia, Jie <jie.xia@intel.com> Co-authored-by: Liu, Russell <russell.liu@intel.com>
|
Hi @fish-jiang, thanks for your contribution! Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:
Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below. |
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.
Overview
Co-authors: @jxia4intel, @sliu39
PR 3/3 of the Intel Xe optimization series — see #24408 (mega PR, draft) for the full feature set.
Target platforms: Xe-LPG Plus, Xe2, Xe3
This PR adds GEMM/Group GEMM kernel optimizations and load-time weight compression for the Intel quick MoE path. Dependency: builds on top of #24404 (Xe-LPG Plus coopmat1 enable). Independent of #24406 (FA).
GEMM kernel optimizations (Intel Xe)
LOAD_A_OPTpath: SLM-based A-matrix layout optimization for coopmat1bitfieldExtractoptimizationl_alt/a_l_alt, BM=128 warptile) for runtime selection when problem dimensions are smallvulkan-shaders-gen.cpp: registers all new pipeline variantsMoE optimizations (Intel Xe)
mul_mm.compshader optimization forMUL_MAT_ID: reduces unnecessary memory loads and matrix core operations for MoE modelsn_ubatchauto-raised to 2048 for MoE models with flash attention on Intel Xe2 to match the optimal tile sizerms_norm + mulinto a singleRMS_NORM_MULkernel dispatch for the expert gate input calculationOptional load-time weight compression for fast Intel MoE path (Intel Xe2+)
Performance (Panther Lake B390 + Windows OS)
Requirements