Repository navigation
feat(gfx1151): INT8 W8A8 GEMM config + int8 fused-MoE forward + RDNA a8w8 routing - #3917
Merged
Merged
Conversation
The Triton INT8 W8A8 GEMM path loads a per-arch default config via
get_gemm_config() -> _load_config_file(..., fpath_should_exist=True),
which hard-asserts when the file is absent. aiter ships this default for
gfx1201 (gfx1201-GEMM-A8W8.json) but not for gfx1151 (RDNA3.5), so any
INT8 W8A8 GEMM on gfx1151 fails at load:
AssertionError: Required config file doesn't exist:
.../configs/gemm/gfx1151-GEMM-A8W8.json
Add a generic gfx1151 default (single "any" entry) so the INT8 W8A8 path
works out of the box on RDNA3.5. Shape-specialized configs remain optional
(loaded with fpath_should_exist=False) and can be added via the tuner.
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
zufayu
requested review from
amd-ruitang3 and
yifehuan
and removed request for
amd-ruitang3
June 26, 2026 08:53
Expose an int8 W8A8 (per-token activation, per-channel weight) fused MoE forward built on the smoothquant grouped GEMM: routing -> per-token int8 quant -> gemm1+fused SiLU -> per-token int8 quant -> gemm2+scatter/combine. aiter's high-level fused_moe covers fp8_w8a8/int8_w8a16/int4_w4a16 but not int8 W8A8; this fills that gap so consumers need no out-of-tree orchestration (used by ROCm/ATOM on gfx1151, where the fp8/int4 MoE paths are unavailable).
added 2 commits
July 2, 2026 08:51
The @torch_compile_guard-wrapped gemm_a8w8 hard-called the CK kernel, which ships gfx9 (CDNA) code objects only. Route to the portable Triton gemm_a8w8 when the running arch isn't gfx9 (e.g. RDNA gfx11/gfx12). Callers get a single compile-/graph-capture-safe entry point that works on every arch, so consumers (ROCm/ATOM on gfx1151) no longer need to re-register a Triton wrapper of their own.
valarLip
approved these changes
Jul 20, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(gfx1151): INT8 W8A8 GEMM config + int8 fused-MoE forward + RDNA a8w8 routing
Three gfx1151 (RDNA3.5) INT8 W8A8 enablers where aiter's fp8/int4 MoE and CK a8w8 kernels are unavailable: (1) a generic gfx1151 INT8 W8A8 GEMM default config (
get_gemm_config()hard-asserts on the missing per-arch file, crashing every INT8 GEMM at load); (2)fused_moe_int8_smoothquant, the INT8 W8A8 smoothquant MoE forwardfused_moelacked (routing→int8 quant→gemm1+SiLU→int8 quant→gemm2+scatter), so consumers need no out-of-tree orchestration; (3)gemm_a8w8routes to Triton on non-gfx9 (the@torch_compile_guarddispatcher hard-called gfx9-only CK), giving one compile-/graph-safe entry per arch. Validated on Qwen3.6-35B-A3B (gfx1151): correct, ~22 tok/s eager / ~28 tok/s HIP-graph.