Repository navigation
[Config] [gfx1250] DSv4.1 engram wkv / main_proj MXFP8 compute-kernel rows at decode M 928..1536 (after #7827) - #8048
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
…j at decode M 928..1536 Two DSv4.1 dense MXFP8 (32x32 weight scale) shapes at the high-concurrency decode widths: - engram wkv (N=25600, K=6144): M 928 / 960 / 992 / 1024 move from the batched kernel to the 2-D compute kernel t256x256x128 nb2 cm4 cn1; M 1216, 1280, 1344, 1408, 1472, 1536 had no row (they used the M 2048 row) and get the same kernel. - DSpark main_proj (N=5120, K=15360): M 928 / 960 / 992 / 1024 move to the compute kernel t128x256x128 nb3 cm2 cn2; M 1088..1536 (step 64) had no row and get the same kernel. Rows were chosen from measurements inside the decode layer sequence (other large GEMMs before and after), not back-to-back runs of one kernel. Outputs are bit identical to the previous kernels. Prefill rows and other shapes are unchanged. The 32x32-scale compute kernel these rows name is already in main (ROCm#7659, ROCm#7827). Co-Authored-By: Claude Opus 5.5 <[email protected]>
24e2cc7 to
846c20c
Compare
|
Rebased onto current main ( |
Rebased on current main (#7827 has merged). The compute kernel these rows name is in main (#7659, #7827); there is no key overlap with #7827.
Motivation
Exact gfx1250 rows for two DSv4.1-Flash dense MXFP8 GEMMs (32x32 weight scale) at the high-concurrency decode widths (M 928..1536):
At these M the existing rows (or, above M 1024, the M 2048 row they fell back to) use the batched kernel; the 2-D compute kernel is better when measured inside the decode layer sequence (other large GEMMs before and after), which is what these rows are chosen on.
The rows name the 32x32-scale
flydsl_mxfp8_32_bpreshuffle_compute_wmma_*kernel, which is in main since #7659; they were validated on main + #7827 (now merged), and #7827 has no rows at these keys. This PR contains only CSV rows; no code from #7827. The wo_a / wq_b decode rows of the same sweep are already in #7827 and are not repeated here.Technical Details
aiter/configs/model_configs/dsv41_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:t256x256x128 nb2 cm4 cn1t128x256x128 nb3 cm2 cn2Rows are replaced in place or inserted next to their shape; no duplicate keys. Prefill rows and other shapes are unchanged.
Test Plan
On gfx1250, main + #7827 vs main + #7827 + this PR:
gemm_a8w8_blockscale(..., isBpreshuffled=True)(the production entry) at 22 M values (1 .. 2048, including 1025 / 1153 / 1345 / 1535 and every new row) for engram wkv, main_proj and the indexer wq_b, with normal and wide-range activations (zero rows, ±2^6 row scales): tuned-row selection (AITER_LOG_TUNED_CONFIG=1), output hashes, and cosine against an fp32 dequantized reference.Test Result
PR Self-Review
Reviewed revision
846c20c202Behavior and intent
Validation and unverified scope
24e2cc754f(this head846c20c202is a rebase onto current main with the same row changes), main + [FlyDSL] [gfx1250] DSv4.1 Flash 32x32 GEMMs: tune C1024 decode, prefetch a8w8/a4w4 compute kernel code #7827 vs main + [FlyDSL] [gfx1250] DSv4.1 Flash 32x32 GEMMs: tune C1024 decode, prefetch a8w8/a4w4 compute kernel code #7827 + this PR:gemm_a8w8_blockscale(..., isBpreshuffled=True)at 22 M values (1..2048, including 1025 / 1153 / 1345 / 1535 and every new row) for engram wkv, main_proj and the indexer wq_b, normal and wide-range activations, withAITER_LOG_TUNED_CONFIG=1. Result: the new rows are selected at their M; 132/132 outputs byte-identical; cosine against an fp32 dequantized reference at the bf16 level (passed).e9efac0e2, plus [FlyDSL] [gfx1250] DSv4.1 Flash 32x32 GEMMs: tune C1024 decode, prefetch a8w8/a4w4 compute kernel code #7827's code) that passed its accuracy checks.PR-specific question
The keys consumed are
(gfx1250, cu_num 256, 32x32 scale)with(N, K) = (25600, 6144)at M 928/960/992/1024 (replaced) and 1216..1536 step 64 (new), and(5120, 15360)at M 928/960/992/1024 (replaced) and 1088..1536 step 64 (new), indsv41_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv. Unrelated shapes keep their selection: rows are replaced in place or inserted next to their shape, no duplicate keys, no key overlap with #7827, and the 22-M run covered the unchanged indexer wq_b shape with identical selection and outputs.Changed op tests
None. This PR only changes CSV rows; no file under
op_tests/changes.🤖 Generated with Claude Code