Repository navigation
[Config] [Perf] Tune gfx1250 Kimi K3 TP1 DSpark down at M192 - #8711
ZLkanyo009 wants to merge 1 commit into
Conversation
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 |
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
|
Superseded as the review entry for this tuning batch by #8729 (head Please use the consolidated PR for review of this batch. This source PR remains open for provenance; no merge or closure is performed here, and the two should not be merged independently. |
|
Advisory review with the repo's Verdict:
|
|
This PR's rows were folded into #8729 ("Consolidate Kimi K3 TP1 GEMM tuning on gfx1250", still open), as noted in your earlier comment. Please close this PR so the same |
|
@aiter-bot review |
|
aiter-bot — queued behind 25 review(s); expect to start in about 7.2 h. The box reviews one PR at a time. |
aiter-bot
left a comment
There was a problem hiding this comment.
ROCm/aiter PR #8711 — [Config] [Perf] Tune gfx1250 Kimi K3 TP1 DSpark down at M192
Review (advisory):
Validation (deterministic): NOT RUN — triage found no test target (the PR changes runtime code but ships none), and the changed path IS executed at run time: the tuned table is merged and read by the serving dispatch (aiter/jit/core.py model_config_files → aiter/ops/gemm_op_a8w8.py:1380, reached from aiter/aot/flydsl/gemm.py:165), so unlike a tuner-input CSV this is not a nothing-loads-it data diff and the missing target is reported below; this box is also gfx942-only, so the row could not be exercised here regardless.
Perf (advisory): MEASURED — M=177/192, N=7168, K=14336 on gfx1250/CU256: base 41.84/40.02 us vs head 31.32/25.81 us (−25.40%/−35.45% paired latency, 7 ABBA rounds per shape, both arms, same box) — PR-reported, not re-run here (no gfx1250 on this box; a config row ships no in-repo benchmark entry point).
Size: 1 lines / 1 files
Design (advisory): NONE — one row appended inside the existing per-model tuned-table pattern (the kimik3 file joins the dsv4/dsv41/minimax_m3 siblings of the same family); the kernel choice is a measured tuning result, not a structural decision.
Human: N/A — the diff decides nothing structural (one row inside the existing per-model tuned-table pattern); the blank-cells convention question is carried as an ordinary finding with a concrete case, not as a design routing.
📝 [verified] The author's own comment and the PR state confirm OPEN PR #8729 edits this same file (+22/−9) including this row, with the author stating the two must not be merged independently — merging both re-edits the same file tail, a git conflict at best and a duplicate-shape RuntimeError from the merge dedup at worst. Reviewer should ask that this PR be closed in favor of #8729 and the three fixes above carried over there.
2 finding(s) posted inline, on the lines they are about:
aiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:305— leavesus,tflops,bwanderrRatioblankaiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:305— The row aiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:305 adds is…
| gfx1250,256,32768,12288,1536,128x128,flydsl,262,1,287.2498,flydsl_mxfp8_128_bpreshuffle_wmma_t256x256x128_mw2_nw2_nb4_sk1_cm1_cn1,4306.18,3044.43,0.0034 | ||
| gfx1250,256,128,7168,8192,128x128,flydsl,1195,4,11.482124775648117,flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk4_cm1_cn4,1309.20,5365.20,0.007883344776928425 | ||
| gfx1250,256,128,7168,14336,128x128,flydsl,1195,4,14.264249801635742,flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk4_cm1_cn4,1844.24,7461.34,0.0104642603546381 | ||
| gfx1250,256,192,7168,14336,128x128,flydsl,1112,1,,flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk1_cm1_cn4,,, |
There was a problem hiding this comment.
us, tflops, bw and errRatio blank — unlike all 303 prior rows in this file — and both us-ranked dedups (aiter/ops/gemm_op_a8w8.py:1389 and the config merge at aiter/jit/core.py:667) sort NaN last, so any future row with the same key (gfx1250,256,192,7168,14336,128x128) silently evicts this one (demonstrated in pandas: a populated-us duplicate displaces kernel 1112), while the tuner never produces this state because it writes blanks as literal "Null" (aiter/utility/base_tuner.py:2349); today no collision exists and the row is selected, so this is latent, not live. Author must populate the four cells from the M=192 measurement (25.8095 us / 1528.90 TFLOPS, as lines 303–304 do) or state the blank convention — and note the same blank pattern spans the whole #8729 batch.
| gfx1250,256,32768,12288,1536,128x128,flydsl,262,1,287.2498,flydsl_mxfp8_128_bpreshuffle_wmma_t256x256x128_mw2_nw2_nb4_sk1_cm1_cn1,4306.18,3044.43,0.0034 | ||
| gfx1250,256,128,7168,8192,128x128,flydsl,1195,4,11.482124775648117,flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk4_cm1_cn4,1309.20,5365.20,0.007883344776928425 | ||
| gfx1250,256,128,7168,14336,128x128,flydsl,1195,4,14.264249801635742,flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk4_cm1_cn4,1844.24,7461.34,0.0104642603546381 | ||
| gfx1250,256,192,7168,14336,128x128,flydsl,1112,1,,flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk1_cm1_cn4,,, |
There was a problem hiding this comment.
Add one gfx1250/CU256 Kimi K3 TP1 DSpark down MXFP8/E8M0 tuning row at
M192, N7168, K14336. Native default lookup changes M177-192 from fallback kernel1124 to kernel1112. M176 and M193 retain their original selections. All 303 prior CSV rows and their bytes are preserved; only this row is appended.The comparison uses parent
3fd42598ca239020765f3eb9be84fc5f84cd8d6cand exact candidateaafb867ca261fc1951793564c544aa2eaf22ef14with identical backend source. Hardware and runtime: gfx1250/CU256, native1120 imagesha256:4a4ca99b58fa9a2ea949431cf6063d84532a6c88c6d210cda81d35fbd28c81d0, FlyDSL 0.5.3, NUMA balancing 0.Each BF16-output stage times the complete native backend with FP8/E8M0 inputs and full TP1 N/K. The protocol uses 22 rotating weight copies (2,260,867,840 bytes), 44 graph calls, seven ABBA rounds and seven A/A controls. All seven paired rounds favor the candidate. Maximum absolute null drift is 0.7101% at M177 and 0.6203% at M192. TFLOPS uses pooled per-arm median latency; paired reduction uses the median of round ratios. CSV timing cells stay blank. These measurements cover the affected interval's endpoints; interior points, public-wrapper cost and model/E2E performance were not timed.
Validation of this exact candidate:
Observed upstream main at 2026-11-25T19:51:08.083656+00:00:
8b98c823cccb4be51d1ea0962e76d791907f5b79. Measurements remain bound to the parent and candidate above. The earliera3005ac8exploratory result is separate from this main comparison.Tracking: https://github.com/wuhuikx/LLM-Booster/issues/710