Skip to content

[Config] [gfx1250] DSv4.1 indexer wq_b MXFP8 rows at decode M 1088..1536 - #8047

Merged
valarLip merged 2 commits into
ROCm:mainfrom
yhl-amd:hyi/dsv41-mx32-c1024-idx-wq-b-rows
Dec 3, 2026
Merged

valarLip merged 2 commits into
ROCm:mainfrom
yhl-amd:hyi/dsv41-mx32-c1024-idx-wq-b-rows

Conversation

@yhl-amd

@yhl-amd yhl-amd commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

No dependency: independent of the other DSv4.1 PRs (no key overlap with #7827 or #8048) and can merge on its own.

Motivation

The DSv4.1-Flash indexer wq_b GEMM (MXFP8, 32x32 weight scale, N=4096, K=1280) has gfx1250 rows up to M 1024; at the high-concurrency decode widths (M 1088..1536) it ran the M 2048 row. A smaller-M batched tile fits these M better when measured inside the decode layer sequence.

Technical Details

aiter/configs/model_configs/dsv41_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv: eight new gfx1250 rows, M 1088 .. 1536 (step 64), N 4096, K 1280, kernel flydsl_bmm_mxfp8_32_wmma_t192x128x256_mw2_nw2_nb3_sk1_cm1_cn1 (already used by other rows of this table). Inserted after the M 1024 row of the shape; no other rows change.

Test Plan

gfx1250, main vs this PR: gemm_a8w8_blockscale(..., isBpreshuffled=True) at 22 M values (1 .. 2048 including the new rows and odd M such as 1153 / 1345 / 1535) for the indexer wq_b and two other DSv4.1 shapes, normal and wide-range activations: tuned-row selection, output hashes, cosine against an fp32 dequantized reference.

Test Result

  • The new rows are selected at their M; 132/132 outputs are byte-identical to main; cosine against fp32 at the bf16 level.

PR Self-Review

Reviewed revision

2bee784f80

Behavior and intent

  • Adds eight gfx1250 rows for the DSv4.1-Flash indexer wq_b MXFP8 GEMM (32x32 weight scale, N 4096, K 1280) at M 1088..1536 (step 64), all selecting the existing batched kernel flydsl_bmm_mxfp8_32_wmma_t192x128x256_mw2_nw2_nb3_sk1_cm1_cn1.
  • Why: above M 1024 the shape had no row and used the M 2048 row; a smaller-M batched tile fits the high-concurrency decode widths better when measured inside the decode layer sequence.
  • Risk: low. Rows only; the kernel is already used elsewhere in the table and keeps the K accumulation order, so outputs are unchanged. A worse tile would only cost time.
  • Compatibility: gfx1250 / cu_num 256 rows only; other M, other shapes and other architectures are untouched. No API, code or environment-variable change.

Validation and unverified scope

  • gfx1250, at this head (2bee784f80), main vs this PR: gemm_a8w8_blockscale(..., isBpreshuffled=True) at 22 M values (1..2048, including every new row and odd M such as 1153 / 1345 / 1535) for indexer wq_b and two other DSv4.1 shapes, normal and wide-range activations, with AITER_LOG_TUNED_CONFIG=1. Result: the new rows are selected at their M; 132/132 outputs byte-identical to main; cosine against an fp32 dequantized reference at the bf16 level (passed).
  • Tile choice: measured earlier inside a decode layer sequence on an older aiter tree (main e9efac0e2 plus DSv4.1 serving patches); the rows were then part of the gfx1250 DSv4.1-Flash serving stack that passed its accuracy checks.
  • Unverified: not re-run on the current main (gfx1250 validation pending); no op test covers this table, so CI does not exercise the rows.

PR-specific question

The keys consumed are (gfx1250, cu_num 256, M 1088..1536 step 64, N 4096, K 1280, 32x32 scale) in dsv41_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv, used by the DSv4.1 indexer wq_b projection. Unrelated shapes keep their selection: no existing row is edited, no key is duplicated (checked against #7827 and #8048 too), and the 22-M run above covered the two other DSv4.1 shapes with byte-identical outputs and unchanged selection.

Changed op tests

None. This PR only adds CSV rows; no file under op_tests/ changes.

🤖 Generated with Claude Code

The DSv4.1 indexer wq_b (N=4096, K=1280, 32x32 weight scale) had rows up to
M 1024 and ran the M 2048 row above that. Add M 1088..1536 (step 64) on the
batched kernel t192x128x256 mw2 nw2 nb3. Rows were chosen from
measurements inside the decode layer sequence. Outputs are bit identical
to the previous kernel; other rows are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yhl-amd
yhl-amd requested a review from a team November 16, 2026 18:00
@yhl-amd yhl-amd added the Config label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the Radeon R9700 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full 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 8047 --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.

@aiter-bot

aiter-bot commented Nov 16, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 999b76575eb8 · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@zufayu
zufayu requested a review from demonsan November 17, 2026 01:05
@zufayu
zufayu requested review from yifehuan and removed request for demonsan November 17, 2026 01:32
@zufayu zufayu assigned yifehuan and unassigned demonsan Nov 17, 2026

@valarLip valarLip left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

Thanks. These are eight gfx1250 rows for the indexer wq_b GEMM (N 4096, K 1280, 32x32), M 1088..1536, all on flydsl_bmm_mxfp8_32_wmma_t192x128x256_mw2_nw2_nb3_sk1_cm1_cn1. That kernel already serves 15 rows of this table on main.

  • Dependencies and merge: nothing unmerged is needed (#7827 and #8048 are on main). The PR merges cleanly with current main. Across the whole mxscale-bpreshuffle family, no key is duplicated after the merge.
  • Kernel fit: it fits this shape. N % 128 = 0, K % 256 = 0, 5 K-tiles ≥ nb 3, and the batched path requires split-K and cluster 1. Main already runs this kernel at M 1088 for 4608x5120, so the M tail is covered.
  • Lookup replay: I replayed the padded-M lookup on CPU for every shape in the family, M 1..19999. Only this shape changes, for M 1025..1536: those M moved from the M 2048 row to the new rows, with 1025..1087 rounding up to 1088. M ≤ 1024 and M 1537..2048 select the same rows as before.
  • CI: the one red job is infrastructure. "Standard Tests (1 GPU)" shard 0 failed with Unable to download artifact(s): Artifact not found for name: aiter_shards, and the Aiter Test Gate is red only because of that shard. Shards 1-7 pass, and CI runs on gfx950, which never reads these rows. Please re-run the failed jobs before merge.

Root cause vs patch

These are data-only tuned rows filling the gap between the M 1024 row and the M 2048 row. That is the right form for this change. Verdict: root fix.


Reviewed at 2bee784 (round 1, passes A+B, independent).

@valarLip valarLip left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 2bee784. Please re-run the failed shard (missing aiter_shards artifact, infra) before merge.

@yhl-amd yhl-amd closed this Dec 2, 2026
@yhl-amd yhl-amd reopened this Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the Radeon R9700 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full 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 8047 --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.

@valarLip
valarLip merged commit e35e23b into ROCm:main Dec 3, 2026
77 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants