Skip to content

[Triton/Gluon] Add x_EQ_x Config Matcher to Unified Attention - #6161

Merged
vgokhale merged 1 commit into
mainfrom
farlukas/unified-attention-eq
Oct 20, 2026
Merged

vgokhale merged 1 commit into
mainfrom
farlukas/unified-attention-eq

Conversation

@farlukas

@farlukas farlukas commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Currently, there is no way to target a specific axis. There were only GEQ and LEQ matchers, making the only way to do an equality something like this (example of what D_EQ_512 could replace):

D_GEQ_512: ... # equality
D_GEQ_513: ...

This adds unnecessary complexity and made the configs less readable.

Technical Details

  • Added x_EQ_x lookup
  • Takes precedence over x_LEQ_x and x_GEQ_x

Submission Checklist

@github-actions

github-actions Bot commented Oct 5, 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 6161 --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.

@farlukas
farlukas marked this pull request as ready for review October 14, 2026 20:10
@farlukas
farlukas requested a review from a team October 14, 2026 20:10
@farlukas
farlukas force-pushed the farlukas/unified-attention-eq branch from 16ec327 to d7068f3 Compare October 14, 2026 20:10
@farlukas farlukas self-assigned this Oct 14, 2026
@github-actions github-actions Bot changed the title Add x_EQ_x Config Matcher to Unified Attention [Triton/Gluon] Add x_EQ_x Config Matcher to Unified Attention Oct 14, 2026
@Boss2002n
Boss2002n requested a balanced review from Copilot October 14, 2026 21:33

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 new matching priority and fallback behavior need regression tests.

1 open finding
What changed in this PR

Adds exact numeric matching to the shared Triton/Gluon unified-attention config loader.

Changes:

  • Gives EQ matches priority over LEQ and GEQ within each axis.
  • Updates the module documentation with EQ syntax and precedence.
File Description
aiter/​ops/​triton/​utils/​unified_attention_utils.py Adds and documents exact-match config selection.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@zufayu
zufayu requested review from a team and Boss2002n October 15, 2026 02:12
@Boss2002n

Copy link
Copy Markdown
Contributor

any example of why this is needed over the LEQ GEQ?

@Boss2002n

Copy link
Copy Markdown
Contributor

I am actually thinking about deprecating the GEQ too - and just keep LEQ and any's
(starting with GEMMs)

@vgokhale
vgokhale merged commit 5e34564 into main Oct 20, 2026
@vgokhale
vgokhale deleted the farlukas/unified-attention-eq branch October 20, 2026 14:47
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