You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm
vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all
All standard extended tests (excludes ci:atom_full)
Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 8296 --add-label <label>
One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.
PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.
Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.
github-actionsBot
changed the title
Gfx950/dsv41 flydsl mxfp8 perf optimization
[FlyDSL] Gfx950/dsv41 flydsl mxfp8 perf optimization
Nov 19, 2026
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical stride-handling defects can corrupt split-tail outputs and drop single-row output columns, while default CI does not execute the new regression tests.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The bounds check rejects valid strided outputs, new regression tests are not executed by default CI, and several tuning replacements record slower latencies.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Validate strided output size separately from logical dimensions
aiter/ops/flydsl/gemm_a8w8_mxfp8_8wave.py:256
_validate also checks N * K, so passing the output row stride as N rejects valid strided outputs even when every buffer fits. For example, M=2, N=256, K=8192 and Out stride (262144, 1) need only 524800 output bytes and 2097152 weight bytes, but ldc * K == 2**31 causes a ValueError. Keep logical N for the input bounds and check M * ldc * 2 separately for the output descriptor.
Use elementwise FP32 tolerances for the regression comparison
op_tests/test_gemm_group32_interface.py:838
This new FlyDSL regression uses the local _assert_matches comparator, whose absolute tolerance is 0.01 * ref.abs().max(). With the widely varying E8M0 scales generated here, the largest output sets the allowance for every tail element, weakening detection of incorrect scales or missing writes in smaller-magnitude outputs. Use the required checkAllclose comparison in FP32 with justified elementwise tolerances, and assert that its returned mismatch ratio is zero.
Conflicts in the two launchers main changed under #8296:
- mxscale_preshuffle_kernels: the split-K reduce gained row_dw/ldc_dw
and a strided Constexpr; _bound_reduce_exe binds strided and takes the
new runtime arguments, and its cache key includes strided.
- gemm_a8w8_mxfp8_8wave: the launcher gained ldc and Out may be a
column slice; the tail split's K-split GEMM and strided reduce go
through the AOT caches like the unsplit launch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
iraj465
added a commit
to iraj465/aiter
that referenced
this pull request
Nov 24, 2026
Measured again on main 82b6b4f (after ROCm#8296 reworked the FlyDSL MXFP8
kernels, with FlyDSL 0.5.3) on an MI355X and an MI350X. The 186 rows from
M = 48 keep their gain on both. Of the 18 rows for M up to 32, nine no
longer reach 1.03x over the kernel the heuristic picks on both devices, one
of them (N = 6400, M = 16) is slower on both. Those nine now name that
kernel, with the values the tuner profiled for it, as the rows for M = 32 at
N = 12800 and 3200 already do. The rows stay because vLLM routes these
layers to AITER only when a row exists at M = 1 and at M = 8192.
Signed-off-by: Saptarshi Majumder <[email protected]>
… and 3200 (K = 6144) (#8159)
* [Config] Add gfx950 DeepSeek-V4.1 MXFP8 GEMM rows for N = 12800, 6400 and 3200 (K = 6144)
Add 204 gfx950 rows (cu_num 256, w_scale_block 32x32) for N = 12800, 6400
and 3200 at K = 6144 to
aiter/configs/model_configs/dsv41_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv,
at the 68 M values the table already uses. These N are N = 25600 / P for
P = 2, 4 and 8: the per-rank shards, in vLLM under tensor parallel without
sequence parallelism, of the N = 25600, K = 6144 weight the table already
tunes. They had no row. A direct gemm_a8w8_blockscale_bpreshuffle call ran
the FlyDSL batched-GEMM heuristic, and vLLM kept its own Triton GEMM for
these layers, because it routes a 32x32 layer to AITER only when rows exist
at M = 1 and M = 8192.
Rows only. No existing row changes.
Signed-off-by: Saptarshi Majumder <[email protected]>
* Nine decode rows now name the kernel main's heuristic picks
Measured again on main 82b6b4f (after #8296 reworked the FlyDSL MXFP8
kernels, with FlyDSL 0.5.3) on an MI355X and an MI350X. The 186 rows from
M = 48 keep their gain on both. Of the 18 rows for M up to 32, nine no
longer reach 1.03x over the kernel the heuristic picks on both devices, one
of them (N = 6400, M = 16) is slower on both. Those nine now name that
kernel, with the values the tuner profiled for it, as the rows for M = 32 at
N = 12800 and 3200 already do. The rows stay because vLLM routes these
layers to AITER only when a row exists at M = 1 and at M = 8192.
Signed-off-by: Saptarshi Majumder <[email protected]>
---------
Signed-off-by: Saptarshi Majumder <[email protected]>
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
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.
optimization1:
optimization 2:
Decode: grouped by N, K and M range (only M values with changes are counted; all other M values are unchanged)
Prefill: grouped by N, K and M range (using the 8w rows)
optimization 3:
Decode (M < 2048), by N, K and M range
Prefill (M >= 2048), by N, K and M range