Skip to content

[Triton/Gluon] Add TDM store to bf16 BMM and tune DSR1 shapes - #6240

Merged
azaidy merged 3 commits into
mainfrom
alizaidy/bf16-bmm
Oct 13, 2026
Merged

azaidy merged 3 commits into
mainfrom
alizaidy/bf16-bmm

Conversation

@azaidy

@azaidy azaidy commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@azaidy
azaidy requested review from a team and vgokhale and a balanced review from Copilot October 8, 2026 01:47
@github-actions

github-actions Bot commented Oct 8, 2026

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
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 6240 --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.

@github-actions github-actions Bot changed the title Add TDM store to bf16 BMM and tune DSR1 shapes [Triton/Gluon] Add TDM store to bf16 BMM and tune DSR1 shapes Oct 8, 2026

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.

🟡 Changes recommended

The TDM eligibility gate omits alignment requirements, and several tuned tiles exceed the safe LDS-addressing range.

4 open findings
What changed in this PR

Adds a gfx1250 TDM-store epilogue for Gluon BF16 batched GEMM and tunes two DeepSeek-R1 B=128 shapes.

Changes:

  • Enables TDM output stores with an environment-variable fallback.
  • Adds gfx1250 Gluon tuning buckets for two B=128 workloads.
  • Preserves direct stores for split-K and unsupported layouts.
File Description
aiter/​ops/​triton/​gemm/​batched/​batched_gemm_bf16.py Dispatches eligible outputs through TDM stores.
aiter/​ops/​triton/​_gluon_kernels/​gfx1250/​gemm/​batched/​batched_gemm_bf16.py Implements the LDS-staged TDM epilogue.
.../​BATCHED_GEMM-A16W16-B=128-N=512-K=128.json Adds M-bucket tuning for the N=512 shape.
.../​BATCHED_GEMM-A16W16-B=128-N=128-K=512.json Adds M-bucket tuning for the K=512 shape.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

vgokhale
vgokhale previously approved these changes Oct 8, 2026
Copilot AI balanced review requested due to automatic review settings October 8, 2026 21:34

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.

🟡 Changes recommended

TDM eligibility omits required alignment checks, and the shared-memory padding calculation fails for 32-bit outputs.

5 open findings

🧠 Review effort: Balanced

@zufayu
zufayu requested review from a team and Dewei-Wang-sh October 9, 2026 01:56
Resolve batched_gemm_bf16 conflict with main's fp8 epilogue rounding (fp32 -> bf16 -> fp8) and apply the same rounding in the TDM-store path.
Copilot AI balanced review requested due to automatic review settings October 12, 2026 21: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 AI balanced review requested due to automatic review settings October 12, 2026 21:19

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 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 new B=128 specialized configurations are not exercised by the existing test matrix.

0 open findings

🧠 Review effort: Balanced

@azaidy
azaidy merged commit 56b5f48 into main Oct 13, 2026
@azaidy
azaidy deleted the alizaidy/bf16-bmm branch October 13, 2026 13:13
karverma-amd added a commit to karverma-amd/aiter that referenced this pull request Nov 4, 2026
Keep the B=128 MLA-absorb configs already landed on main by ROCm#6240 and ROCm#6293.
The batch-agnostic N=512/K=128 and N=128/K=512 fallbacks from this branch stay.

Co-authored-by: Cursor <[email protected]>
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