move all configs#4379
Open
Boss2002n wants to merge 2 commits into
Open
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates Triton GEMM tuning configs to a new per-arch, per-backend directory layout under aiter/ops/triton/configs/<arch>/<backend>/gemm/, updates config resolution to prefer the new layout (with legacy fallback), and adds new AFP4WFP4 tuned configs for gfx950/gfx1250.
Changes:
- Update
get_gemm_config()resolution to search<arch>/<backend>/gemm/(prefix-less) first, then fall back to legacyconfigs/gemm/(arch-prefixed) files. - Switch Gluon AFP4WFP4 to read its config from the new directory layout, and enable the gfx1250 Gluon preshuffle path in the Triton AFP4WFP4 wrapper.
- Add a large set of AFP4WFP4 tuning JSONs under the new gfx950/gfx1250 config directories (plus
.gitkeepplaceholders for MoE dirs).
Reviewed changes
Copilot reviewed 4 out of 47 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| aiter/ops/triton/utils/gemm_config_utils.py | Prefer new <arch>/<backend>/gemm/ config layout with legacy fallback for unmigrated configs. |
| aiter/ops/triton/gluon/gemm_afp4wfp4.py | Load Gluon AFP4WFP4 config from new per-arch/per-backend path. |
| aiter/ops/triton/gemm/basic/gemm_afp4wfp4.py | Enable gfx1250 Gluon preshuffle path selection logic for AFP4WFP4 preshuffle wrapper. |
| aiter/ops/triton/configs/gfx950/triton/moe/.gitkeep | Create/keep gfx950 Triton MoE config directory in-tree. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4.json | New gfx950 Triton default AFP4WFP4 tuning config (new layout). |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=9216-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=8192-K=8192.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=8192-K=28672.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=7168-K=256.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=7168-K=2304.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=7168-K=2048.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=7168-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=57344-K=8192.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=53248-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=512-K=7168.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=512-K=128.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=4608-K=7168.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=4608-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=4096-K=7168.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=4096-K=14336.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=36864-K=7168.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=32768-K=512.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=3072-K=1536.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=28672-K=4096.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=26624-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=24576-K=1536.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=2304-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=2112-K=7168.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=18432-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=8192.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=6656.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=53248.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=4096.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=26624.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=2048.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=16384-K=13312.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=13312-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=1280-K=8192.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/triton/gemm/GEMM-AFP4WFP4-N=106496-K=16384.json | New gfx950 Triton N/K-specialized AFP4WFP4 config. |
| aiter/ops/triton/configs/gfx950/gluon/moe/.gitkeep | Create/keep gfx950 Gluon MoE config directory in-tree. |
| aiter/ops/triton/configs/gfx950/gluon/gemm/GEMM-AFP4WFP4.json | New gfx950 Gluon AFP4WFP4 tuning config (new layout). |
| aiter/ops/triton/configs/gfx1250/triton/moe/.gitkeep | Create/keep gfx1250 Triton MoE config directory in-tree. |
| aiter/ops/triton/configs/gfx1250/triton/gemm/.gitkeep | Create/keep gfx1250 Triton GEMM config directory in-tree. |
| aiter/ops/triton/configs/gfx1250/gluon/moe/.gitkeep | Create/keep gfx1250 Gluon MoE config directory in-tree. |
| aiter/ops/triton/configs/gfx1250/gluon/gemm/GEMM-AFP4WFP4.json | New gfx1250 Gluon AFP4WFP4 tuning config (new layout). |
| aiter/ops/triton/_triton_kernels/gemm/basic/gemm_afp4wfp4.py | Simplify _get_config() return paths (but currently drops required default meta-param filling). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
447
to
451
| assert arch_info.is_fp4_avail(), "MXFP4 is not available on your device" | ||
| use_gluon = False # arch_info.get_arch() == "gfx1250" TODO: (Satya) revert after upstream triton is fixed | ||
| use_gluon = arch_info.get_arch() == "gfx1250" | ||
|
|
||
| M, K_bytes = x_fp4.shape | ||
| n16, _ = w_preshuf.shape |
Comment on lines
724
to
728
| # Note: Config files use K=2*K in their naming | ||
| K = 2 * K | ||
| if shuffle: | ||
| cfg, is_tuned = get_gemm_config( | ||
| return get_gemm_config( | ||
| "GEMM-AFP4WFP4_PRESHUFFLED", |
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.
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist