Repository navigation
[Triton/Gluon] Add Triton A8W8 Per-token Preshuffled GEMM - #6850
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
fbd6d3e to
050c12e
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Valid shuffled shapes are rejected, some test targets lack required configs, and the preshuffled split-K paths lack coverage.
7 open issues
Add missing cache_modifier to default tuning config · New Add missing cache_modifier to default tuning config · New Allow Triton masked K tails without Gluon tile checks · New Add gfx950 preshuffled split-K reduction coverage · New Add or skip missing configs for shuffled tests · New Share duplicated preshuffled kernel operations · New Extract shared split-K host-side logic · New
What changed in this PR
This PR adds Triton support to the existing A8W8 per-token preshuffled GEMM interface, alongside the Gluon implementation.
Changes:
- Adds a preshuffled Triton kernel with split-K reduction and optional partial-result output.
- Adds architecture-specific defaults and a gfx950 shape-specific config.
- Extends tests and benchmarks to select either preshuffled backend.
| File | Description |
|---|---|
op_tests/triton_tests/gemm/basic/test_gemm_a8w8.py |
Adds Triton preshuffle test variants. |
op_tests/op_benchmarks/triton/bench_gemm_a8w8.py |
Enables preshuffle benchmarks for both backends. |
aiter/ops/triton/gemm/basic/gemm_a8w8.py |
Adds backend selection and preshuffled split-K handling. |
aiter/ops/triton/configs/gfx950/triton/gemm/gemm_a8w8_preshuffled/GEMM-A8W8_PRESHUFFLED-N=2112-K=7168.json |
Adds shape-specific tuning with split-K. |
aiter/ops/triton/configs/gfx950/triton/gemm/gemm_a8w8_preshuffled/DEFAULT.json |
Adds gfx950 defaults by M range. |
aiter/ops/triton/configs/gfx942/triton/gemm/gemm_a8w8_preshuffled/DEFAULT.json |
Adds gfx942 defaults. |
aiter/ops/triton/configs/gfx1250/triton/gemm/gemm_a8w8_preshuffled/DEFAULT.json |
Adds gfx1250 defaults. |
aiter/ops/triton/configs/gfx1201/triton/gemm/gemm_a8w8_preshuffled/DEFAULT.json |
Adds gfx1201 defaults. |
aiter/ops/triton/configs/gfx1151/triton/gemm/gemm_a8w8_preshuffled/DEFAULT.json |
Adds gfx1151 defaults. |
aiter/ops/triton/_triton_kernels/gemm/basic/gemm_a8w8.py |
Implements the preshuffled kernel and config selection. |
Review effort: Balanced


Motivation
Add a triton a8w8 per-token preshuffled GEMM kernel.
Test Plan
Test Result
All tests passed.
Submission Checklist