Skip to content

[Config] Tune Kimi-K3 BF16 GEMMs for gfx950 - #5702

Merged
XiaobingSuper merged 1 commit into
ROCm:mainfrom
XiaobingSuper:kimik3-new-bf16-gemm-tuning
Sep 21, 2026
Merged

XiaobingSuper merged 1 commit into
ROCm:mainfrom
XiaobingSuper:kimik3-new-bf16-gemm-tuning

Conversation

@XiaobingSuper

@XiaobingSuper XiaobingSuper commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add matching untuned shapes and gfx950 BF16 tuned configs for five new Kimi-K3 GEMM families:
    • q_b_proj: N=1536, K=1536
    • kv_b_proj: N=2048, K=512
    • o_proj: N=7168, K=1024
    • mlp.gate_up_proj: N=3584, K=7168
    • mlp.down_proj: N=7168, K=1792
  • cover M=1,2,4,8,16,32,48,64,...,32768 (85 shapes total)
  • do not modify any pre-existing tuned row

Tuning

Measured on an otherwise idle 8x MI355X (gfx950, 256 CU/GPU) node. --shape_grouped --mp 8 kept every shape's complete candidate set on one GPU.

The 85 shapes selected 61 FlyDSL, 12 torch, 8 Triton, 3 ASM, and 1 Opus winners.

Validation

  • tuned 134,936 candidates grouped into 85 per-shape task groups
  • 85/85 production dispatches passed accuracy and benchmark checks
  • maximum recorded tuning error ratio: 0.0216 (threshold: 0.05)
  • tuned and untuned CSV keys are unique
  • git diff --check

@XiaobingSuper
XiaobingSuper requested review from a team and a lite review from Copilot September 20, 2026 09:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot changed the title [Config] Tune Kimi-K3 BF16 GEMMs for gfx950 [FlyDSL] Tune Kimi-K3 BF16 GEMMs for gfx950 Sep 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
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; main branch always runs both MI35X and MI300X
multigpu 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: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
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 5702 --add-label <label>

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 opt this PR out.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@XiaobingSuper
XiaobingSuper force-pushed the kimik3-new-bf16-gemm-tuning branch from 9d07235 to 32bd04a Compare September 21, 2026 01:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 21, 2026 01:59
@XiaobingSuper
XiaobingSuper force-pushed the kimik3-new-bf16-gemm-tuning branch from 32bd04a to 3ac967a Compare September 21, 2026 01:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot changed the title [FlyDSL] Tune Kimi-K3 BF16 GEMMs for gfx950 [Config] Tune Kimi-K3 BF16 GEMMs for gfx950 Sep 21, 2026
@github-actions github-actions Bot added Config and removed FlyDSL labels Sep 21, 2026
Copilot AI review requested due to automatic review settings September 21, 2026 02:41
@XiaobingSuper
XiaobingSuper force-pushed the kimik3-new-bf16-gemm-tuning branch from 3ac967a to 94b3b1b Compare September 21, 2026 02:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

xytpai
xytpai previously approved these changes Sep 21, 2026
@XiaobingSuper
XiaobingSuper marked this pull request as draft September 21, 2026 02:47
@XiaobingSuper
XiaobingSuper force-pushed the kimik3-new-bf16-gemm-tuning branch from 94b3b1b to 0898e72 Compare September 21, 2026 02:49
@XiaobingSuper
XiaobingSuper marked this pull request as ready for review September 21, 2026 02:49
Copilot AI review requested due to automatic review settings September 21, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@XiaobingSuper
XiaobingSuper marked this pull request as draft September 21, 2026 03:08
@XiaobingSuper
XiaobingSuper force-pushed the kimik3-new-bf16-gemm-tuning branch from 0898e72 to 307ada7 Compare September 21, 2026 03:12
@XiaobingSuper
XiaobingSuper marked this pull request as ready for review September 21, 2026 03:13
Copilot AI review requested due to automatic review settings September 21, 2026 03:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zufayu

zufayu commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

old shape must check if it has perf drop

@XiaobingSuper
XiaobingSuper marked this pull request as draft September 21, 2026 06:40
@XiaobingSuper
XiaobingSuper force-pushed the kimik3-new-bf16-gemm-tuning branch from 307ada7 to efeb63d Compare September 21, 2026 06:41
@XiaobingSuper
XiaobingSuper marked this pull request as ready for review September 21, 2026 06:42
Copilot AI review requested due to automatic review settings September 21, 2026 06:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@XiaobingSuper
XiaobingSuper merged commit 5337bf2 into ROCm:main Sep 21, 2026
69 checks passed
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.

4 participants