Repository navigation
[Config] [gfx1250] DSv4.1 indexer wq_b MXFP8 rows at decode M 1088..1536 - #8047
Conversation
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]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR Self-ReviewRevision 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
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
valarLip
left a comment
There was a problem hiding this comment.
✅ 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).
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
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, kernelflydsl_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
PR Self-Review
Reviewed revision
2bee784f80Behavior and intent
flydsl_bmm_mxfp8_32_wmma_t192x128x256_mw2_nw2_nb3_sk1_cm1_cn1.Validation and unverified scope
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, withAITER_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).e9efac0e2plus DSv4.1 serving patches); the rows were then part of the gfx1250 DSv4.1-Flash serving stack that passed its accuracy checks.PR-specific question
The keys consumed are
(gfx1250, cu_num 256, M 1088..1536 step 64, N 4096, K 1280, 32x32 scale)indsv41_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