Skip to content

[Triton/Gluon] Fix Triton A8W8 Per-token Preshuffled GEMM - #6951

Merged
farlukas merged 6 commits into
mainfrom
farlukas/triton-preshuffled-a8w8-fix
Nov 12, 2026
Merged

farlukas merged 6 commits into
mainfrom
farlukas/triton-preshuffled-a8w8-fix

Conversation

@farlukas

@farlukas farlukas commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Follow-up to #6850. Implement the fixes missing from the original PR.

Technical Details

  • Added cache_modifier keys to the configs.
  • Registered gemm_a8w8_preshuffle to the tuner.

Test Plan

pytest op_tests/triton_tests/gemm/basic/test_gemm_a8w8.py

Test Result

All tests passed.

Submission Checklist

@farlukas farlukas changed the title Fix Preshuffled A8W8 Triton GEMM Fix Triton A8W8 Per-token Preshuffled GEMM Oct 26, 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 6951 --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 27, 2026 01:10
@farlukas
farlukas requested a review from a team October 27, 2026 01:10
@github-actions github-actions Bot changed the title Fix Triton A8W8 Per-token Preshuffled GEMM [Triton/Gluon] Fix Triton A8W8 Per-token Preshuffled GEMM Oct 27, 2026
@Boss2002n
Boss2002n requested a balanced review from Copilot October 27, 2026 01: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.

🔵 Needs a closer look

The reported GEMM tests do not establish that the new tuner path launches candidates and generates configs successfully.

1 open issue
What changed in this PR

This follow-up to #6850 completes configuration and tuning support for the preshuffled A8W8 GEMM.

Changes:

  • Adds cache_modifier defaults for gfx942 and gfx1250.
  • Registers the preshuffled GEMM with the tuner, including shuffled inputs, split-K preparation, and tile checks.
File Description
aiter/​ops/​triton/​utils/​_triton/​tuning/​kernels.py Adds the preshuffled A8W8 tuning registration.
aiter/​ops/​triton/​configs/​gfx942/​triton/​gemm/​gemm_a8w8_preshuffled/​DEFAULT.json Adds the gfx942 cache modifier default.
aiter/​ops/​triton/​configs/​gfx1250/​triton/​gemm/​gemm_a8w8_preshuffled/​DEFAULT.json Adds the gfx1250 cache modifier default.

Review effort: Balanced

@azaidy azaidy self-assigned this Oct 27, 2026
@azaidy
azaidy self-requested a review October 27, 2026 14:31
@farlukas
farlukas force-pushed the farlukas/triton-preshuffled-a8w8-fix branch from 625df1c to 1d1f4e6 Compare October 28, 2026 14:49

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

requested changes offline

@farlukas
farlukas force-pushed the farlukas/triton-preshuffled-a8w8-fix branch from 1c7ea45 to 85a2e42 Compare November 3, 2026 15:14
@aiter-bot

Copy link
Copy Markdown

NOT READY FOR HUMAN REVIEW

PR Self-Review

Revision 85a2e424f02c · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

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

@farlukas
farlukas requested a review from Boss2002n November 5, 2026 15:38

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

@farlukas
farlukas merged commit d817aeb into main Nov 12, 2026
@farlukas
farlukas deleted the farlukas/triton-preshuffled-a8w8-fix branch November 12, 2026 15:25
vpietila-amd pushed a commit that referenced this pull request Nov 13, 2026
* Added cache_modifer key to default configs

* Registered gemm_a8w8_preshuffle to tuner

* Added missing configs

* Removed unsupported arch configs

* Tuned default for M=8...64

* Finished rest of tuning
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.

5 participants