Repository navigation
[Config] Tune seven gfx1250 K3 TP1 DSpark rows - #8672
ZLkanyo009 wants to merge 2 commits into
Conversation
Add seven rows for DSpark gate_up, o_proj and down and replace the q_b M256 selection. All selected IDs and names exist in the main catalog, and exact shapes pass its kernel_fits_shape checks. Keep the q_b M128 wide-cluster candidate separate because it requires the unmerged ROCm#8246 catalog and implementation. Preserve all other model rows and leave measurement cells blank. The candidates have paired performance and BF16/FP16 public validation on the k3-455-dev integration. The distinct main implementation still requires native public correctness and performance validation. Refs: wuhuikx/LLM-Booster#710 Signed-off-by: Ling Zhang <[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 |
|
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 — the box reviews one PR at a time and is 31 deep right now (roughly 8.9 h of work ahead). This request was not queued: a job that waits more than 24 h is cancelled silently, so saying no now is better than losing it later. Re-comment |
Tune seven Kimi K3 TP1 DSpark MXFP8 model-table rows on gfx1250/CU256. The final change is one CSV file: six additions and the existing q_b M256 replacement, with blank measurement cells and all unrelated rows preserved. It adds no kernel implementation or runtime guard.
The pinned preparation parent is main
d0b5acd3fba19f07b2db33851e1517cc72bbb557. These IDs and exact names already exist in its 1,231-entry catalog; the underfilled compute-tile guard from merged #8566 is present. The separate q_b M128 expanded-catalog candidate remains excluded pending #8246. The dev integration #8635 is a separate track; this PR has not been rebased onto newer main.One proposed gate_up M256 row was removed after paired main measurements found a regression at its lower bucket boundary. The row was selected for every M129-256. At M129 it replaced the native compute WMMA 128x256x128 cluster 2x4 with cluster 1x4: 25.853 to 31.363 us, a 20.75% paired latency increase; one independent confirmation measured 25.719 to 31.501 us, a 22.69% increase. Both runs passed the stated numerical checks. The original M256 point showed a 5.37% reduction with maximum A/A drift 2.75%; that potential benefit is also deferred so the entire M129-256 range keeps its native fallback.
Follow-up
e64036cbc624f6d4052ad41d6d6e331dff5c3fabdeletes exactly that one row from measured candidate36f572cc1eb0170f290bd2a9afcb40111b16a495. Two isolated no-device native CPU processes verified all 8,948 source files per arm, the complete 4,215/4,221-key parent/corrected default merges, and 142 shapes per arm. Every integer M129-256 now selects the identical parent fallback; M128/M257 and the seven retained rows preserve their previous selections. Both processes exited 0 and their exact containers were removed. This validates the configuration restoration; it is not a fresh GPU or performance run of the follow-up commit. The runtime files are unchanged.Public GPU correctness was validated on the preceding main candidate
36f572cc1eb0170f290bd2a9afcb40111b16a495: 48 dtype cases, 96 allocating/out forms and 192 complete-output eager/NaN-poisoned graph checks across BF16 and FP16 outputs. Inputs and weights were FP8 E4M3 with E8M0 scales. With rtol=atol 0.01 and allowed mismatch fraction <=5%, maxima were 1.043701171875% for BF16 and 0.9930499188311688% for FP16. These are nonzero tolerance mismatches, not bit-exact equality. The fixed native1120 image, FlyDSL 0.5.3, gfx1250/CU256 and NUMA balancing 0 were used; all 14 exact GPU containers exited 0 and were removed. These historical GPU checks retain that commit attribution. The restored M129/M256 parent-selected complete backends also passed the full-output BF16 checks in the paired measurements; no complete public BF16/FP16 matrix was rerun after deleting the row.The retained selections have the following paired main evidence, collected on
36f572cc1eb0170f290bd2a9afcb40111b16a495before the one-row deletion. Their CSV entries and runtime implementation are unchanged in the follow-up. Both arms execute complete explicit backends in the same candidate-source process; separate native CPU default lookups bind the choices of pinned parentd0b5acd3fba19f07b2db33851e1517cc72bbb557and the candidate. This is a same-source complete-backend comparison, not two branch executions, public-default dispatch timing or model/E2E timing.Each case used FP8 inputs, BF16 output, warm activations and at least 2.2 GB of distinct rotating weight/scale storage. Quantization and reference generation were outside timing. Seven ABBA paired rounds and seven A/A null rounds used GPU events around graphs of complete calls. Latency columns are medians of 14 samples per arm; reductions are medians of seven within-round comparisons. These are descriptive exact-M observations, not a confidence interval, measured cache-cold guarantee or unmeasured bucket-wide speedup. The q_b M256 result has the larger 3.57% maximum A/A drift shown above.
All original 15 timing cases passed 60 complete-output endpoint checks, with maximum mismatch fraction 1.06449537% under the same .01/.01 and <=5% contract. The separate M129 confirmation passed four further checks. These numerical/protocol passes do not waive its measured performance regression, which is why the row is absent from this PR. All original timings, including the removed row and its confirmation, remain retained at their measured commit.
The completed seven-row change is ready for review. No model/E2E improvement or newer-main validation is claimed.
Related: https://github.com/wuhuikx/LLM-Booster/issues/710