Skip to content

[Triton/Gluon] [Config] Tune gfx1250 Gluon MXFP4 GEMMs for Llama3 70B - #6653

Merged
azaidy merged 1 commit into
mainfrom
satya/tuning_1250_llama3_70b_gluon
Oct 21, 2026
Merged

azaidy merged 1 commit into
mainfrom
satya/tuning_1250_llama3_70b_gluon

Conversation

@Boss2002n

@Boss2002n Boss2002n commented Oct 18, 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
MXFP4 8192 8192 4 16.58 5.54 2.99x 32.4 97.0 2.16 6.45
MXFP4 8192 8192 8 16.64 5.92 2.81x 64.5 181.5 2.15 6.06
MXFP4 8192 8192 16 17.00 7.08 2.40x 126.3 303.2 2.12 5.08
MXFP4 8192 8192 31 16.60 8.19 2.03x 250.6 508.2 2.19 4.43
MXFP4 8192 8192 32 23.27 7.29 3.19x 184.5 589.0 1.56 4.98
MXFP4 8192 8192 64 23.77 9.23 2.58x 361.3 931.0 1.56 4.01
MXFP4 8192 8192 128 24.59 10.37 2.37x 698.5 1656.1 1.56 3.69
MXFP4 8192 8192 256 27.26 13.78 1.98x 1260.4 2493.6 1.50 2.97
MXFP4 8192 8192 512 27.68 16.67 1.66x 2483.1 4123.1 1.67 2.78
MXFP4 8192 8192 1024 29.12 23.80 1.22x 4718.9 5775.7 1.95 2.39
MXFP4 8192 8192 2048 35.15 32.94 1.07x 7821.0 8345.3 2.22 2.37
MXFP4 8192 8192 4096 65.47 60.18 1.09x 8397.3 9134.7 1.84 2.00
MXFP4 8192 8192 8192 124.01 113.83 1.09x 8866.2 9659.1 1.66 1.81
MXFP4 8192 28672 4 48.46 11.34 4.27x 38.8 165.7 2.58 11.02
MXFP4 8192 28672 8 48.77 11.94 4.08x 77.1 314.7 2.56 10.47
MXFP4 8192 28672 16 48.95 13.50 3.63x 153.5 556.8 2.56 9.28
MXFP4 8192 28672 31 49.47 18.84 2.63x 294.4 773.1 2.54 6.68
MXFP4 8192 28672 32 61.41 16.10 3.81x 244.8 933.6 2.05 7.81
MXFP4 8192 28672 64 63.18 20.01 3.16x 475.9 1502.3 2.01 6.34
MXFP4 8192 28672 128 66.24 25.54 2.59x 907.8 2354.8 1.94 5.05
MXFP4 8192 28672 256 80.00 33.35 2.40x 1503.3 3605.4 1.66 3.98
MXFP4 8192 28672 512 80.67 49.35 1.63x 2981.5 4874.1 1.75 2.86
MXFP4 8192 28672 1024 86.12 69.99 1.23x 5585.5 6873.3 1.82 2.25
MXFP4 8192 28672 2048 108.29 103.48 1.05x 8884.1 9297.4 1.75 1.83
MXFP4 8192 28672 4096 209.95 202.46 1.04x 9164.6 9504.0 1.21 1.26
MXFP4 8192 28672 8192 416.13 401.60 1.04x 9247.7 9582.5 0.92 0.96
MXFP4 10240 8192 4 16.78 7.21 2.33x 40.0 93.0 2.66 6.19
MXFP4 10240 8192 8 16.88 7.62 2.22x 79.5 176.2 2.65 5.88
MXFP4 10240 8192 16 16.97 8.27 2.05x 158.2 324.7 2.65 5.44
MXFP4 10240 8192 31 17.13 9.39 1.82x 303.6 554.1 2.65 4.83
MXFP4 10240 8192 32 23.32 8.67 2.69x 230.2 619.2 1.95 5.23
MXFP4 10240 8192 64 23.93 10.12 2.36x 448.7 1060.5 1.93 4.56
MXFP4 10240 8192 128 24.94 11.87 2.10x 861.1 1809.0 1.91 4.02
MXFP4 10240 8192 256 27.86 16.84 1.65x 1541.5 2550.2 1.83 3.02
MXFP4 10240 8192 512 28.78 23.43 1.23x 2984.9 3667.0 1.99 2.45
MXFP4 10240 8192 1024 30.88 29.58 1.04x 5564.1 5808.7 2.27 2.37
MXFP4 10240 8192 2048 53.84 49.73 1.08x 6382.2 6908.8 1.77 1.92
MXFP4 10240 8192 4096 87.02 85.28 1.02x 7896.6 8057.8 1.68 1.72
MXFP4 10240 8192 8192 153.31 143.14 1.07x 8964.6 9601.4 1.62 1.73
MXFP4 57344 8192 4 24.05 21.64 1.11x 156.2 173.6 10.40 11.55
MXFP4 57344 8192 8 24.08 20.97 1.15x 312.1 358.4 10.40 11.95
MXFP4 57344 8192 16 26.37 25.27 1.04x 570.0 595.0 9.54 9.95
MXFP4 57344 8192 31 35.37 29.37 1.20x 823.4 991.5 7.16 8.62
MXFP4 57344 8192 32 29.11 21.48 1.36x 1032.7 1399.7 8.70 11.80
MXFP4 57344 8192 64 30.30 23.58 1.29x 1984.2 2549.8 8.49 10.91
MXFP4 57344 8192 128 32.05 27.31 1.17x 3751.6 4403.8 8.26 9.70
MXFP4 57344 8192 256 38.97 37.08 1.05x 6172.4 6486.6 7.19 7.55
MXFP4 57344 8192 512 72.67 64.75 1.12x 6619.6 7429.2 4.27 4.80
MXFP4 57344 8192 1024 139.63 111.29 1.25x 6890.1 8645.0 2.66 3.34
MXFP4 57344 8192 2048 260.44 210.99 1.23x 7388.0 9119.6 1.89 2.34
MXFP4 57344 8192 4096 514.44 404.85 1.27x 7480.6 9505.4 1.43 1.82
MXFP4 57344 8192 8192 1030.60 828.74 1.24x 7468.0 9287.1 1.19 1.48

@Boss2002n Boss2002n self-assigned this Oct 18, 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 6653 --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

The reported speedups need supporting gfx1250 correctness and performance validation before approval.

No open issues 🎉

What changed in this PR

Tunes the existing gfx1250 Gluon MXFP4 preshuffled GEMM path for Llama3 70B shapes.

Changes:

  • Adds four shape-specific configurations with M buckets through 8192.
  • Adjusts tile sizes, warp counts, buffers, and CTA counts while retaining fallback settings.
File Description
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​gemm/​gemm_afp4wfp4_preshuffled/​GEMM-AFP4WFP4_PRESHUFFLED-N=8192-K=8192.json Tunes N=8192, K=8192.
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​gemm/​gemm_afp4wfp4_preshuffled/​GEMM-AFP4WFP4_PRESHUFFLED-N=8192-K=28672.json Tunes N=8192, K=28672.
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​gemm/​gemm_afp4wfp4_preshuffled/​GEMM-AFP4WFP4_PRESHUFFLED-N=57344-K=8192.json Tunes N=57344, K=8192.
aiter/​ops/​triton/​configs/​gfx1250/​gluon/​gemm/​gemm_afp4wfp4_preshuffled/​GEMM-AFP4WFP4_PRESHUFFLED-N=10240-K=8192.json Tunes N=10240, K=8192.

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
@vgokhale

Copy link
Copy Markdown
Contributor

Can you list TFLOPS

@zufayu
zufayu requested review from a team and k50112113 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.

4 participants