Skip to content

[Triton/Gluon] [Config] Tune gfx1250 Gluon a16w16 GEMMs for Llama4 Maverick - #6650

Merged
azaidy merged 2 commits into
mainfrom
satya/tuning_1250_llama4_maverick_gluon
Oct 21, 2026
Merged

azaidy merged 2 commits into
mainfrom
satya/tuning_1250_llama4_maverick_gluon

Conversation

@Boss2002n

@Boss2002n Boss2002n commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
Kernel N K M main (µs) new (µs) speedup main TFLOPS new TFLOPS main TB/s new TB/s
a16w16 128 5120 1 4.97 4.97 1.00x 0.3 0.3 0.27 0.27
a16w16 128 5120 4 4.92 4.92 1.00x 1.1 1.1 0.28 0.28
a16w16 128 5120 8 5.20 5.20 1.00x 2.0 2.0 0.27 0.27
a16w16 128 5120 16 6.95 6.19 1.12x 3.0 3.4 0.21 0.24
a16w16 128 5120 32 8.09 5.51 1.47x 5.2 7.6 0.20 0.30
a16w16 128 5120 64 10.48 5.67 1.85x 8.0 14.8 0.19 0.35
a16w16 128 5120 128 13.01 5.45 2.39x 12.9 30.8 0.20 0.49
a16w16 128 5120 256 11.30 5.73 1.97x 29.7 58.6 0.35 0.70
a16w16 128 5120 512 14.43 6.75 2.14x 46.5 99.4 0.46 0.99
a16w16 128 5120 1024 14.99 8.59 1.75x 89.5 156.3 0.80 1.40
a16w16 128 5120 2048 28.73 10.30 2.79x 93.4 260.5 0.79 2.21
a16w16 128 5120 4096 30.19 16.19 1.87x 177.8 331.6 1.47 2.74
a16w16 128 5120 8192 32.01 17.65 1.81x 335.4 608.2 2.73 4.94
a16w16 persistent 128 5120 1 9.26 4.37 2.12x 0.1 0.3 0.14 0.30
a16w16 persistent 128 5120 4 9.18 5.38 1.70x 0.6 1.0 0.15 0.25
a16w16 persistent 128 5120 8 9.29 4.78 1.94x 1.1 2.2 0.15 0.29
a16w16 persistent 128 5120 16 9.68 5.37 1.80x 2.2 3.9 0.15 0.28
a16w16 persistent 128 5120 32 22.80 5.33 4.28x 1.8 7.9 0.07 0.31
a16w16 persistent 128 5120 64 23.72 5.65 4.20x 3.5 14.8 0.08 0.35
a16w16 persistent 128 5120 128 44.60 5.49 8.13x 3.8 30.6 0.06 0.48
a16w16 persistent 128 5120 256 47.01 6.25 7.52x 7.1 53.7 0.09 0.64
a16w16 persistent 128 5120 512 47.41 6.66 7.12x 14.2 100.8 0.14 1.00
a16w16 persistent 128 5120 1024 24.53 8.75 2.80x 54.7 153.3 0.49 1.38
a16w16 persistent 128 5120 2048 25.19 10.37 2.43x 106.6 258.9 0.91 2.20
a16w16 persistent 128 5120 4096 26.04 13.71 1.90x 206.2 391.6 1.70 3.23
a16w16 persistent 128 5120 8192 27.59 17.53 1.57x 389.1 612.4 3.16 4.98

@Boss2002n Boss2002n self-assigned this Oct 17, 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 (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 gfx1201 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 6650 --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.

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.

🔵 Needs a closer look

Shape-specific regression coverage is missing, and correctness and latency need verification on gfx1250.

1 open issue
What changed in this PR

Tunes gfx1250 Gluon A16W16 GEMMs for Llama4 Maverick’s N=128, K=5120 shape.

Changes:

  • Adds non-persistent settings by M bucket, including kernel variant selection.
  • Retunes persistent tile sizes, buffer counts, and launch settings.
File Description
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​gemm/​gemm_a16w16/​GEMM-A16W16-N=128-K=5120.json Adds shape-specific non-persistent tuning.
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​gemm/​gemm_a16w16_persistent/​GEMM-A16W16-PERSISTENT-N=128-K=5120.json Expands and retunes persistent M buckets.

Review effort: Balanced

@Boss2002n
Boss2002n marked this pull request as ready for review October 18, 2026 02:01
@Boss2002n
Boss2002n requested a review from a team October 18, 2026 02:01
@zufayu
zufayu requested review from a team and Dewei-Wang-sh October 19, 2026 00:15

@azaidy azaidy 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.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants