Skip to content

[Config] [Perf] Tune gfx1250 Kimi K3 TP1 DSpark q_b at M192 - #8705

Open
ZLkanyo009 wants to merge 1 commit into
ROCm:mainfrom
ZLkanyo009:tune/kimi-tp1-dspark-qb-m192-20261125
Open

ZLkanyo009 wants to merge 1 commit into
ROCm:mainfrom
ZLkanyo009:tune/kimi-tp1-dspark-qb-m192-20261125

Conversation

@ZLkanyo009

Copy link
Copy Markdown
Contributor

Add one gfx1250/CU256 Kimi K3 TP1 DSpark q_b MXFP8/E8M0 tuning row at M192, N12288, K1536. Native lookup changes only M177-192 from kernel209 (the existing M256 row) to kernel210; M176 and M193 retain their original selections. All prior CSV bytes are preserved and no backend or dispatcher code changes.

The paired comparison uses parent 3fd42598ca239020765f3eb9be84fc5f84cd8d6c and exact candidate 9601e4b16bc8076ff61dc735ba621d0f2360c152, with identical backend source. gfx1250/CU256, native1120 image sha256:4a4ca99b58fa9a2ea949431cf6063d84532a6c88c6d210cda81d35fbd28c81d0, FlyDSL 0.5.3, NUMA balancing 0:

M Baseline us Candidate us Baseline TFLOPS Candidate TFLOPS Throughput increase Paired latency reduction
177 5.9015 5.5347 1132.18 1207.21 6.63% 6.13%
192 5.8977 5.4793 1228.91 1322.75 7.64% 7.48%

Each BF16-output stage measures the complete native backend with FP8/E8M0 inputs and full TP1 N/K. It uses 117 rotating weight copies (2,208,435,840 bytes), 234 graph calls, seven ABBA rounds and seven A/A controls. All seven paired rounds favor the candidate. Maximum absolute null drift is 1.1506% at M177 and 0.9750% at M192. TFLOPS comes from pooled per-arm median latency; the paired reduction is the median of round ratios. CSV measurement cells remain blank. These are affected-bucket endpoint measurements; bucket interiors, public-wrapper cost and model/E2E performance were not timed.

Validation on this exact candidate:

  • The actual public allocating and out APIs pass at M176/177/192/193 with BF16 and FP16 output: 32 full-output checks and 72,548,352 compared elements, including eager execution and NaN-poisoned graph replay. Real Python/JIT padding is exercised.
  • Native no-device checks verify 9,029 source files per arm, all five default table inputs, 4,292 parent / 4,293 candidate merged keys and the two selected configurations. Only one CSV row differs. Scalar padding is reused from its accepted native build.
  • The paired stages add eight full-output checks. References use full K with TF32 disabled; rtol=atol=0.01 and maximum mismatch fraction 5%. Public maximum mismatch is 0.330792% for BF16 and 0.307719% for FP16. Observed mismatches are nonzero; correctness is tolerance-based.
  • The initial a1 validation packet failed a schema binding assertion in its no-device CPU stage and launched no GPU. The isolated a2 packet corrected that binding, passed the actual CPU entry chain and produced the accepted public results above. The measured candidate/source did not change.
  • Both dtype and both paired GPU stages exited 0, preserved raw results and removed their exact owned containers. No new matching fault lines appeared in the retained intervals. CI and reviewer assessment remain separate.

Observed upstream main at 2026-11-25T17:48:45.947378+00:00: 8b98c823cccb4be51d1ea0962e76d791907f5b79. All measurements remain bound to the explicit parent and candidate above; later main changes are outside these results. The earlier a3005ac8 exploratory gain is not substituted for this main comparison.

Tracking: https://github.com/wuhuikx/LLM-Booster/issues/710

@ZLkanyo009
ZLkanyo009 requested a review from a team November 25, 2026 17:48
@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 8705 --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.

@github-actions github-actions Bot changed the title [Perf] Tune gfx1250 Kimi K3 TP1 DSpark q_b at M192 [Config] [Perf] Tune gfx1250 Kimi K3 TP1 DSpark q_b at M192 Nov 25, 2026
@aiter-bot

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 9601e4b16bc8 · 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 — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer

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

@ZLkanyo009

Copy link
Copy Markdown
Contributor Author

Superseded as the review entry for this tuning batch by #8729 (head 0cbdcc3ea501d0cf2c957af7e5c65dea51147add). The consolidated main PR includes this PR's final changes at 9601e4b16bc8076ff61dc735ba621d0f2360c152 and links the original validation and review history. Its CPU composition checks preserve the final configuration choices; the original GPU results keep their measured-source and protocol limits.

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.

@demonsan

Copy link
Copy Markdown
Contributor

Advisory review with the repo's .claude/skills/review-pr skill, run locally against head 9601e4b16. All 8 gates passed and an independent reader refuted each finding before it was kept. [verified] means the finding was checked against the code; [inferred] means it is a question for the author to confirm.

Verdict: ⚠️ NEEDS WORK

  1. ⚠️ [verified] aiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:305 leaves us, tflops, bw, and errRatio blank unlike all 303 existing rows in the file (and all 4,522 rows across the 5 family CSVs), which causes NaN to sort last under sort_values("us") in aiter/jit/core.py:676 and aiter/ops/gemm_op_a8w8.py:1389 so any future colliding row with a finite latency would silently drop kernelId 210 even when slower. Author must populate us, tflops, bw, and errRatio from the M192 measurement or justify leaving them blank.
  2. ⚠️ [verified] The 6.13%–7.48% latency reduction and 32 public correctness checks claimed for aiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:305 cite only an internal native1120 image digest without any benchmark script, CLI command, or ROCm version (and aiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_untuned_gemm.csv:235-251 omits M=192), so maintainers cannot reproduce the measurement or regenerate this row via the repo tuner. Author must add the exact benchmark/validation command and ROCm version (and include M=192 in the untuned CSV if it should persist across re-tunes).
  3. 📝 [verified] Author comment marks PR [Config] [Perf] Tune gfx1250 Kimi K3 TP1 DSpark q_b at M192 #8705 superseded by consolidated PR [FlyDSL] [Perf] Consolidate Kimi K3 TP1 GEMM tuning on gfx1250 #8729 while leaving this PR open for provenance, so merging it independently risks a merge conflict on aiter/configs/model_configs/kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv:305 or a runtime duplicate-shape RuntimeError in aiter/jit/core.py:_raise_on_duplicate_shapes. Question for the author: the author to close PR [Config] [Perf] Tune gfx1250 Kimi K3 TP1 DSpark q_b at M192 #8705 or convert it to draft so only PR [FlyDSL] [Perf] Consolidate Kimi K3 TP1 GEMM tuning on gfx1250 #8729 can merge.

@demonsan

Copy link
Copy Markdown
Contributor

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 kimik3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv edits are reviewed only once, and carry the fixes from my previous comment over to #8729: fill us / tflops / bw / errRatio for every row, and give per-row speedups from repeated rounds.

@demonsan

demonsan commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@aiter-bot review

@aiter-bot

Copy link
Copy Markdown

aiter-bot — the box reviews one PR at a time and is 30 deep right now (roughly 8.6 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 @aiter-bot review once the queue is shorter.

This branch has not been deployed

No deployments
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.

3 participants