Add Kimi K2.5/K2.6 FP4 fused MoE tunings for TP2 (inter_dim=1024, 385 experts, top-9)#3287
Open
xaguilar-amd wants to merge 1 commit into
Open
Add Kimi K2.5/K2.6 FP4 fused MoE tunings for TP2 (inter_dim=1024, 385 experts, top-9)#3287xaguilar-amd wants to merge 1 commit into
xaguilar-amd wants to merge 1 commit into
Conversation
Signed-off-by: Xavier Aguilar <Xavier.AguilarFruto@amd.com>
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
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.
Summary
Adds tuned fused-MoE kernel selections for the Kimi K2.5 / K2.6 FP4 TP2
shape group
(cu_num=256, inter_dim=1024, expert=385, topk=9)toaiter/configs/model_configs/kimik2_fp4_tuned_fmoe.csv, tuned on MI355X.This shape group was previously missing from the config (the file only covered
the TP4 / TP8 shapes).
What changed
(256, *, 7168, 1024, 385, 9):1024, 2048, 4096, 8192, 16384, 32768).
flydsl_fallbackrows (pure CK two-stage GEMMs) for runtimepaths where FlyDSL is unavailable.
Motivation
Inference deployments of Kimi K2.5 / K2.6 MXFP4 on TP2 / 256 CU (MI355X)
currently fall through to untuned defaults for
inter_dim=1024, since thetable only carries TP4 (
inter_dim=512) and TP8 (inter_dim=256) entriesfor the 385/9 expert geometry. Adding the TP2 rows lets the existing
fused-MoE dispatch pick the tuned FlyDSL kernels (or the CK fallback) for
this geometry instead.
Technical details
aiter/configs/model_configs/kimik2_fp4_tuned_fmoe.csv.main:1 file changed, 32 insertions(+), 0 deletions(-).inter_dim=512) or TP8 (inter_dim=256) row — neitherthe FlyDSL nor the
flydsl_fallbackvariant — is modified, renamed, orreordered.