Skip to content

[Config] [Perf] Tune gfx1250 Kimi K3 TP1 q_b at M3072 - #8703

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

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

Conversation

@ZLkanyo009

Copy link
Copy Markdown
Contributor

Add one gfx1250/CU256 Kimi K3 TP1 MXFP8/E8M0 tuning row for M3072, N18432, K1536. The row selects kernel 1069 (compute_wmma_t256x256x128_mw2_nw2_nb4_sk1_cm4_cn4_ps2) instead of the existing M4096 selection, kernel 1060 (cm4_cn2). Native lookup applies the new row only to M3009-3072; M3008 and M3073 keep their existing selection. No backend or dispatcher code changes.

Paired measurements use parent 3fd42598ca239020765f3eb9be84fc5f84cd8d6c and this one-row candidate 15bdebaa0c8701789498ecfb779078cc317a333c, with identical backend source. On gfx1250/CU256, native1120 image (sha256:4a4ca99b58fa9a2ea949431cf6063d84532a6c88c6d210cda81d35fbd28c81d0), FlyDSL 0.5.3 and NUMA balancing 0:

M Baseline us Candidate us Baseline TFLOPS Candidate TFLOPS Throughput increase Paired latency reduction
3009 48.3024 45.3608 3527.34 3756.08 6.48% 6.14%
3072 44.4459 41.2320 3913.66 4218.72 7.79% 7.46%

The BF16-output measurements time the complete native backend with FP8 inputs, E8M0 scales and full TP1 dimensions. Each case uses 78 rotating weight copies (2,208,435,840 bytes), 156 graph calls, seven ABBA rounds and seven A/A controls. Every paired round favors the candidate; maximum absolute null drift is 0.472% at M3009 and 0.587% at M3072. TFLOPS comes from pooled median latency; the paired reduction is a separate median-of-rounds statistic. These are backend measurements at the affected bucket endpoints. Interior M values, public-wrapper cost and model/E2E performance were not timed. CSV measurement cells remain blank to keep this protocol separate from inherited tuning data.

Validation on the exact candidate:

  • Native no-device checks verify both complete source trees (9,029 files each), all five default table inputs, 4,292 parent / 4,293 candidate merged keys, and the two actual selected configurations. Only the single added CSV row differs; all original table bytes remain.
  • The real public allocating and out= APIs pass at M3008/3009/3072/3073 with both BF16 and FP16 output: 32 full-output checks and 1,793,359,872 compared elements, including eager execution and NaN-poisoned graph replay. The actual Python/JIT padding path is exercised; M3073 preserves its existing cluster-M fallback.
  • The paired stages add eight complete-output checks. All references use full K, TF32 disabled, rtol=atol 0.01 and a maximum allowed mismatch fraction of 5%. Observed mismatches are nonzero; the public maxima are 0.335030% (BF16) and 0.311821% (FP16). This is tolerance-based correctness, not bit-exact equality.
  • Both public dtype stages and both paired stages exit 0, preserve their raw results, and remove their exact owned containers. No new matching fault lines appeared in the retained intervals. CI and reviewer assessment remain separate.

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

Table-only candidate for targeted current-main validation; no measured main gain claim.
@ZLkanyo009
ZLkanyo009 requested a review from a team November 25, 2026 17:23
@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 8703 --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 q_b at M3072 [Config] [Perf] Tune gfx1250 Kimi K3 TP1 q_b at M3072 Nov 25, 2026
@aiter-bot

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 15bdebaa0c87 · 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 15bdebaa0c8701789498ecfb779078cc317a333c 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.

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