Repository navigation
[Triton/Gluon] [Config] k3 gfx950 tuning bf16 tp8 shapes - #6019
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
All six M_LEQ_2 profiles are unreachable, and one updated dispatch row records a substantial slowdown.
Review effort: Balanced
Findings: 7
Open (7)
Avoid replacing faster gfx950 FlyDSL kernel · New Declare bounds so M_LEQ_2 is reachable · New Declare bounds so M_LEQ_2 is reachable · New Declare bounds so M_LEQ_2 is reachable · New Declare bounds so M_LEQ_2 is reachable · New Declare bounds so M_LEQ_2 is reachable · New Declare bounds so M_LEQ_2 is reachable · New
What changed in this PR
Adds gfx950 BF16 Kimi K3 TP8 tuning data for A16W16 GEMM dispatch.
Changes:
- Adds six shape-specific Triton configurations.
- Expands the Kimi K3 tuning-shape manifest.
- Refreshes model-level backend selections and measurements.
| File | Description |
|---|---|
.../GEMM-A16W16-N=7168-K=768.json |
Adds per-M Triton tuning. |
.../GEMM-A16W16-N=7168-K=4224.json |
Adds per-M Triton tuning. |
.../GEMM-A16W16-N=7168-K=1536.json |
Adds per-M Triton tuning. |
.../GEMM-A16W16-N=3072-K=512.json |
Adds per-M Triton tuning. |
.../GEMM-A16W16-N=2304-K=1536.json |
Adds per-M Triton tuning. |
.../GEMM-A16W16-N=1536-K=128.json |
Adds per-M Triton tuning. |
kimik3_bf16_untuned_gemm.csv |
Adds Kimi K3 benchmark shapes. |
kimik3_bf16_tuned_gemm.csv |
Updates and adds selected implementations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
9b95109 to
bfa55fa
Compare
bfa55fa to
55b95b4
Compare
…ws on gfx950 (#8915) The rows of 6016 x 7168 and of 6288 x 7168 at 1, 2, 4, 8, 16 and 32 rows name the same tile with _bnt. They are older than the option (#5145, #6019 and #5903; the option is #7546), so the tuner never raced it for them. A decode step reads the weights of every layer once, and the tuner measures that: run_perftest gives every timed launch its own copy of the tensors. MI355X, one GPU, FlyDSL 0.5.3, the tuner's method (10 warm-up and 101 timed eager launches), 3 runs per kernel, the two kernels alternate, median, microseconds, row today -> _bnt: 1 x 6016 x 7168 16.31 -> 15.40 2 x 6016 x 7168 16.39 -> 15.53 4 x 6016 x 7168 16.46 -> 15.70 8 x 6016 x 7168 16.62 -> 16.02 16 x 6016 x 7168 17.93 -> 17.20 32 x 6016 x 7168 18.30 -> 16.93 1 x 6288 x 7168 16.78 -> 15.63 2 x 6288 x 7168 16.96 -> 15.57 4 x 6288 x 7168 17.00 -> 15.68 8 x 6288 x 7168 17.33 -> 16.27 16 x 6288 x 7168 18.34 -> 17.46 32 x 6288 x 7168 20.41 -> 19.68 That is 3.6 % to 8.2 % less time per launch. The six rows of 6016 x 7168 and the row of 32 x 6288 x 7168 were measured on main b4d0133. The other five rows were measured in a second session, on main 8b6b4b4 with those seven rows changed. solidx is the index of the new name in the tuner catalog; us, err_ratio, tflops and bw are the _bnt measurements. tgemm.mm selects these rows for 1 to 32 rows of both shapes. A caller that launches one weight tensor back to back while it fits the last-level cache can get slower. Measured with one weight tensor: +7.7 % for 32 x 6288 x 7168, +11.5 % and +12.8 % for 16 x 6016 x 7168, -3.9 % and -2.8 % for 32 x 6016 x 7168. The other nine rows were not measured in that state. Signed-off-by: Jin Pan <[email protected]>

Motivation
Perf tuning for Kimi K3 bf16 gemm kernels on gfx950 TP8 shapes. Includes multiple concurrencies configs and retunes several existing rows
Technical Details