Skip to content

[FlyDSL] [CI] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) - #5583

Merged
coderfeli merged 6 commits into
ROCm:mainfrom
AFDEAPAC:gfx942-a16w4-mxfp4-support
Sep 22, 2026
Merged

coderfeli merged 6 commits into
ROCm:mainfrom
AFDEAPAC:gfx942-a16w4-mxfp4-support

Conversation

@MHYangAMD

@MHYangAMD MHYangAMD commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

moe_2stage_a16wmix cannot run with MXFP4 weights on gfx942 (CDNA3) at all — it does not
even assemble. make_b_loader's upconvert_b upconverts the weights with
v_cvt_scalef32_pk_bf16_fp4, which is CDNA4-only:

error: instruction not supported on this GPU (gfx942): v_cvt_scalef32_pk_bf16_fp4
        v_cvt_scalef32_pk_bf16_fp4 v47, v56, v90 op_sel:[1,0,0]

1792 occurrences, and it is the only unsupported instruction in the kernel. Everything
else in the pipeline is already arch-gated and fine on CDNA3 — the use_k16 K=16 MFMA
path, the int4 dequant one line above the fp4 branch, the dma_via_vgpr A-tile staging.
So the weight upconvert is the single thing standing between this kernel and CDNA3.

This is architectural rather than SKU-specific: the instruction is absent from all of
CDNA3, so every gfx942 part is affected (MI300X, MI300A, MI308X, MI325X). CDNA3 also has
no fp4 MFMA, so the weights genuinely have to be decoded to bf16 before the MFMA rather
than fed in directly as on CDNA4.

The goal is to make the existing a16w4 MXFP4 path work on gfx942, with the gfx950 path
bit-unchanged. op_tests/flydsl_tests/test_flydsl_moe_a16wfp4.py is already gated for
get_gfx() in ("gfx942", "gfx950"), so no test gating changes here — that test is
supposed to run on CDNA3 already and only fails because the kernel will not build.

Technical Details

_fp4_nibble_to_bf16x8 in moe_2stage_a16wmix/utils.py is the CDNA3 counterpart of the
_int4_nibble_to_bf16x8 already in that file, and upconvert_b selects it the same way
it selects the int4 one. It is a v_perm_b32 byte lookup rather than per-element
arithmetic, because for E2M1 it can be:

  • Every E2M1 magnitude is exactly representable in bf16, so the 16-entry table reduces to
    a byte permute over two constant pools — one for the bf16 high bytes, one for the low
    bytes — selected by nibble & 7.
  • The sign is the nibble's bit 3, shifted into bf16 bit 15.
  • The E8M0 scale is a power of two, so applying it leaves the result exactly
    representable and the f32 -> bf16 step is a truncation, not a round-to-nearest.
  • E2M1 has no NaN encoding, so no NaN handling is needed.

The result is no reconstruction through f32, no compares or selects for the subnormal
cases, and no full cvt.

Arch gating. The selection is an is_gfx942 flag, following the
is_gfx942 = str(gpu_arch).startswith("gfx942") / const_expr(is_gfx942) idiom already
used in preshuffle_gemm.py. It is computed inside make_b_loader because, as that
factory's docstring notes, FlyDSL hashes its source for the cache key and not nested
helpers.

The arch arrives as a new rocm_arch parameter rather than being derived from use_k16.
use_k16 means "K=16 MFMA", which is only correlated with CDNA3 — forcing the K=16 path
on a gfx950 box to validate it must not also switch the weight decode. rocm_arch is
threaded explicitly alongside use_k16 (compile_gemm{1,2}_a16w4_port -> the local
_use_k16 alias -> _gemm{1,2}_body_a16w4 -> make_b_loader) rather than resolved
inside the builder, so compile_gemm{1,2}_a16w4_port's functools.cache stays keyed on
it and two targets cannot share a cached kernel. It has no default at the compile entry
point on purpose — a silently-wrong arch produces a kernel that does not assemble — so
both callers are updated: moe_2stage_a16wmix/__init__.py and ops/flydsl/moe_kernels.py.

gfx950 is unaffected: the new branch is const_expr, so there is no runtime check and the
emitted gfx950 ISA is unchanged.

+100 / -0 across 5 files, no deletions.

Related: ROCm/FlyDSL#424 and
#431 introduced these kernels as gfx950 work;
vllm-project/vllm#50319 asked for
exactly this gfx942 MXFP4-bf16 MoE capability and had to route around its absence.

Test Plan

Environment: gfx942 (MI308X), ROCm 7.14, flydsl 0.3.2.

  1. Assemble compile_gemm1_a16w4_port for the Kimi-K3 3584x512 E896 topk16 geometry and
    count unsupported instructions, before and after, natively on gfx942 and with
    ARCH=gfx950 to confirm the CDNA4 path is untouched.
  2. Numerics: because this container's prebuilt module_aiter_core.so predates aiter main
    and raises ActivationType has no attribute 'GeluTanh' in aiter/ops/quant.py,
    op_tests/flydsl_tests/test_flydsl_moe_a16wfp4.py could not be run here. The decode
    was instead validated through ROCm/FlyDSL's tests/kernels/test_moe_gemm.py
    (test_a16w4_moe_e2e, strict cosine gate against a torch reference), with the decode
    block lifted verbatim from this change — byte-identical, 3919 bytes, sha256 prefix
    8cda818e15177887.
  3. The same FlyDSL selection with only the kernel change reverted, to confirm the tests
    are not passing vacuously.

Test Result

check before after
gfx942 assembly, unsupported instructions 1792 0
ARCH=gfx950 assembly, unsupported instructions 0 0
FlyDSL test_a16w4_moe_e2e (a16w4 selection), gfx942 3 failed, 2 passed 5 passed

The before column of row 3 is the load-bearing one: the three failures are exactly the
fp4 cases (small-a16w4, kimi512-a16w4, native_layout[small]), while the two that
still pass are the a16w16 bf16-weight variants, which never reach the decode. So the
gate is neither vacuous nor over-broad.

Not claimed here: no gfx950 measurements or behavioural claims — this box is CDNA3 only.
Since the new path sits behind const_expr(is_gfx942) and the gfx950 ISA is unchanged,
gfx950 behaviour cannot move, but a gfx950 CI run to confirm that would be welcome. The
aiter-side e2e test is also still unrun for the environment reason above; it needs a
container whose module_aiter_core matches aiter main.

Out of scope, happy to file separately: test_flydsl_moe_a16wfp4.py covers
inter_dim 512 and 384, but FlyDSL's test_moe_gemm.py requires inter_dim % 256 == 0,
so the two suites do not cover the same shapes for this kernel.

Submission Checklist

@MHYangAMD
MHYangAMD requested a review from a team September 16, 2026 10:04
@github-actions github-actions Bot changed the title [a16w4] Support MXFP4 weights on gfx942 (CDNA3) [FlyDSL] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) Sep 16, 2026
@MHYangAMD
MHYangAMD requested a review from coderfeli September 16, 2026 10:05
@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; main branch always runs both MI35X and MI300X
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 5583 --add-label <label>

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 opt this PR out.

@MHYangAMD
MHYangAMD force-pushed the gfx942-a16w4-mxfp4-support branch from 7c50006 to 35c5120 Compare September 16, 2026 10:21
@github-actions github-actions Bot changed the title [FlyDSL] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) [Triton/Gluon] [FlyDSL] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) Sep 16, 2026
`make_b_loader`'s `upconvert_b` feeds MXFP4 weights through
`v_cvt_scalef32_pk_bf16_fp4`, which is CDNA4-only, so on gfx942 the kernel does not
assemble at all -- 1792 occurrences of

    error: instruction not supported on this GPU (gfx942): v_cvt_scalef32_pk_bf16_fp4

and it is the only unsupported instruction in the kernel. Everything else is already
arch-gated and fine on CDNA3: the K=16 MFMA path, the int4 dequant one line above the
fp4 branch, the `dma_via_vgpr` A-tile staging. CDNA3 has no fp4 MFMA either, so there
the weights genuinely have to be decoded to bf16 before the MFMA rather than fed in
directly as on CDNA4.

`_fp4_nibble_to_bf16x8` is the CDNA3 counterpart of the existing
`_int4_nibble_to_bf16x8` in the same file. It is a v_perm_b32 byte lookup rather than
per-element arithmetic, because for E2M1 it can be: every magnitude is exactly
representable in bf16, so the 16-entry table is a byte permute over two constant pools
selected by `nibble & 7`; the sign is the nibble's bit 3 shifted into bf16 bit 15; and
the E8M0 scale is a power of two, so applying it keeps the result exactly representable
and the f32 -> bf16 step is a truncation. E2M1 has no NaN encoding, so no NaN handling
is needed either.

`upconvert_b` selects it under an `is_gfx942` flag, following the
`is_gfx942 = str(gpu_arch).startswith("gfx942")` / `const_expr(is_gfx942)` idiom already
used in `preshuffle_gemm.py`. The flag is computed inside `make_b_loader` because, as
that factory's docstring notes, FlyDSL hashes its source for the cache key and not
nested helpers.

The arch comes in as a new `rocm_arch` parameter rather than being derived from
`use_k16`. `use_k16` means "K=16 MFMA", which is only correlated with CDNA3 -- forcing
the K=16 path on a gfx950 box to validate it must not also switch the weight decode.
`rocm_arch` is threaded explicitly alongside `use_k16` (compile_gemm{1,2}_a16w4_port ->
the local `_use_k16` alias -> _gemm{1,2}_body_a16w4 -> make_b_loader) rather than
resolved inside the builder, so `compile_gemm{1,2}_a16w4_port`'s functools.cache stays
keyed on it and two targets cannot share a cached kernel. It has no default at the
compile entry point on purpose: a silently-wrong arch produces a kernel that does not
assemble, so every caller is updated -- `moe_2stage_a16wmix/__init__.py` and
`ops/flydsl/moe_kernels.py`.

No change on gfx950: the new branch is `const_expr`, so there is no runtime check and
the emitted gfx950 ISA is unchanged.

Verified on gfx942 (MI308X, ROCm 7.14, flydsl 0.3.2):

  - `op_tests/flydsl_tests/test_flydsl_moe_a16wfp4.py`: 12 failed before, 12 passed
    after. That is every case of this repo's own a16w4 SiTUv2 e2e test -- model_dim x
    inter_dim in {3584x512, 3584x384}, tokens in {1, 16, 128}, both the plain and the
    Kimi-K3 production situ_beta/situ_linear_beta pairs -- against a bf16 SiTUv2 torch
    reference with a strict cosine gate. No test changes: the file is already gated for
    get_gfx() in ("gfx942", "gfx950").

  - Assembly of compile_gemm1_a16w4_port for 3584x512 E896 topk16: 1792 unsupported
    instructions before, 0 after. With ARCH=gfx950, 0 both before and after.

  - Cross-checked through ROCm/FlyDSL's tests/kernels/test_moe_gemm.py, with the decode
    block lifted verbatim from here (3919 bytes, sha256 prefix 8cda818e15177887):
    5 passed, against 3 failed / 2 passed with only the kernel change reverted -- the
    three failures being exactly the fp4 cases and the two passes the a16w16
    bf16-weight variants, which never reach the decode.
@MHYangAMD
MHYangAMD force-pushed the gfx942-a16w4-mxfp4-support branch from 35c5120 to 963b6d2 Compare September 16, 2026 10:25
@github-actions github-actions Bot changed the title [Triton/Gluon] [FlyDSL] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) [FlyDSL] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) Sep 16, 2026
@MHYangAMD

Copy link
Copy Markdown
Contributor Author

python3 -m pytest op_tests/flydsl_tests/test_flydsl_moe_a16wfp4.py -v

Test result:

w/o this patch
============================= test session starts ==============================
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-1-3584-512] FAILED [ 8%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-1-3584-384] FAILED [ 16%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-16-3584-512] FAILED [ 25%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-16-3584-384] FAILED [ 33%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-128-3584-512] FAILED [ 41%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-128-3584-384] FAILED [ 50%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-1-3584-512] FAILED [ 58%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-1-3584-384] FAILED [ 66%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-16-3584-512] FAILED [ 75%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-16-3584-384] FAILED [ 83%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-128-3584-512] FAILED[ 91%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-128-3584-384] FAILED[100%]
=================================== FAILURES ===================================

w/ this patch
============================= test session starts ==============================
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-1-3584-512] PASSED [ 8%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-1-3584-384] PASSED [ 16%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-16-3584-512] PASSED [ 25%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-16-3584-384] PASSED [ 33%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-128-3584-512] PASSED [ 41%]
test_flydsl_a16wfp4_situv2_e2e[1.0-1.0-128-3584-384] PASSED [ 50%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-1-3584-512] PASSED [ 58%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-1-3584-384] PASSED [ 66%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-16-3584-512] PASSED [ 75%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-16-3584-384] PASSED [ 83%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-128-3584-512] PASSED[ 91%]
test_flydsl_a16wfp4_situv2_e2e[4.0-25.0-128-3584-384] PASSED[100%]
============================= 12 passed in 38.94s ==============================

@zufayu

zufayu commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Advisory review (static + hand-run; not a merge gate). Validation/Perf ran no GPU stage — reasons are on their lines below. Findings tagged [verified] are traced to code/repro.

Adds a gfx942 (CDNA3) weight-decode path to the FlyDSL a16wmix MoE kernels: MXFP4 (E2M1) weights are decoded to bf16 through v_perm_b32 byte-lookup constant pools with the E8M0 group scale applied in f32, replacing the CDNA4-only v_cvt_scalef32_pk_bf16_fp4 upconvert that made the kernel impossible to assemble on gfx942.

Review (advisory): ⚠️ NEEDS WORK
Validation (deterministic): NOT RUN — the PR changes runtime code but ships no test target (auto-validation disabled, REVIEW_AUTO_VALIDATE=0); the changed path is executed at run time and is covered by the existing op_tests/flydsl_tests/test_flydsl_moe_a16wfp4.py, which is gated gfx942+gfx950 and runs on the MI300X CI shards
Perf (advisory): MEASURED — head-only on this MI300X (gfx942); base cannot be timed because it does not assemble (v_cvt_scalef32_pk_bf16_fp4 unsupported, reproduced on this box). fused_moe a16w4 SiTUv2 end-to-end (E=896, topk=16, model_dim=3584, inter_dim=512): token=1 0.319 ms/iter, token=128 4.883 ms/iter, 20 iters after 5 warmup. No base-vs-head ratio can exist on gfx942 by construction; on gfx950 the emitted ISA is unchanged (the new branch is const_expr'd out at trace time)

⚠️ [verified] The new gfx942 decode in aiter/ops/flydsl/kernels/moe_2stage_a16wmix/utils.py (_fp4_nibble_to_bf16x8 behind the is_gfx942 branch of upconvert_b, ≈14 v_perm_b32/integer/f32 ops per 8 weights vs 4 cvt_scalef32 on gfx950) has no benchmark entry point — op_tests/op_benchmarks/triton/bench_moe_gemm_a16w4.py benches the Triton moe_gemm_a16w4, not this 2-stage kernel — so the cost of the path this PR enables cannot be measured with the repo's own tools; the perf-line numbers above are e2e wall time from a hand-written script, not a harness, and have no base to compare against on gfx942. Author must add a bench entry for the a16wmix 2-stage path (or post kernel-level gfx942 characterization numbers) so the path is measurable in-repo.
📝 [verified] The new gfx942 decode path in aiter/ops/flydsl/kernels/moe_2stage_a16wmix/utils.py was hand-verified on this MI300X box against merge target 22d2c7c: without the PR, op_tests/flydsl_tests/test_flydsl_moe_a16wfp4.py fails to assemble with exactly the error the PR description quotes (v_cvt_scalef32_pk_bf16_fp4 not supported on gfx942); with the PR applied it passes 12/12 in 173 s, exercising the decode end-to-end through fused_moe → compile_flydsl_moe_stage1/2 → both gemm1 and gemm2, and the decode itself is bit-exact against an E2M1×E8M0 reference by exhaustive emulation (all 256 raw bytes × 9 scale bytes × 8 elements, 18432/18432) under v_perm_b32 semantics measured on this box. Reviewer should ask the author to link the gfx942 CI run of that test on the PR.
📝 [verified] The enablement inherits the a16wmix A-path 32-bit addressing limit flagged in #5519: gemm1.py:148-149 builds the activation row base as token_id × K/2 dwords in fx.Int32 and the byte offset as token_id × K × 2, so a bf16 activation with tokens × K × 2 bytes ≥ 2^31 silently overflows (≈116k tokens at K=9216). The limit is pre-existing, identical on gfx950, and untouched by this diff — but before this PR the a16wmix path could not run on gfx942 at all, so it is newly reachable there. Reviewer should ask whether the gfx942 support should document the token bound or reference #5519 now that the path is reachable.

Review follow-up on the gfx942 MXFP4 weight-decode path.

Arch gating: the a16wmix kernels took both use_k16 and rocm_arch, which encode
the same bit. They now take rocm_arch alone and derive what they need from it.

The derived checks are positive (startswith gfx942) rather than "not gfx950".
use_k16 was really four unrelated gfx942 workarounds sharing one name -- the
16x16x16 MFMA split, the lshr-16 bf16 pack in _int4_nibble_to_bf16x8 (no
v_cvt_pk_bf16_f32), the global-packed atomic epilogue (no
buffer_atomic_pk_add_bf16), and the dma_via_vgpr LDS staging -- and only the
first has anything to do with the MFMA K width. "gfx95" not in arch is true
for every arch that is not gfx950, so a future CDNA would silently inherit all
four; a positive test sends it down the gfx950 path, where the missing CDNA4 op
is a build error instead. FlyDSL has no gfx940/gfx941 support, so nothing that
can reach this kernel is excluded by the narrower test.

Verified by counting intrinsics in the emitted IR for the kimik3 gemm1: gfx942
emits mfma<16x16x16> x1793 and llvm.amdgcn.perm x5376 with zero
cvt_scalef32_pk_bf16_fp4; gfx950 emits mfma<16x16x32> x225 and
cvt_scalef32_pk_bf16_fp4 x448 with zero perm. All three w_dtype values
(fp4/int4/bf16) still build on both archs.

Test placement: op_tests/flydsl_tests/ is collected by no CI job
(.github/scripts/split_tests.sh takes op_tests at -maxdepth 1, and its
FILE_TIMES has no entry under that directory), so the a16w4 coverage never ran
in CI. Moved to the first level, which is where the other 17 flydsl tests live;
the move itself needed no edits (no conftest dependency, only absolute
imports). FILE_TIMES gains its measured time as well, so the shard splitter
weights it properly instead of falling back to its 15 s default.

Benchmark: this path had no benchmark entry point --
op_tests/op_benchmarks/triton/bench_moe_gemm_a16w4.py times the Triton
moe_gemm_a16w4, and the mxfp4 tuner in gemm_moe_tune.py drives the a4w4/a8w4
flydsl_mxmoe_g* families, so the cost of the path this enables could not be
measured with the repo's own tools. Adds
op_tests/op_benchmarks/flydsl/bench_moe_a16wmix_2stage.py, which drives the two
launchers production reaches after config resolution (_flydsl_stage1_wrapper /
_flydsl_stage2_wrapper), so the kernel name a row reports is the kernel that
was timed. Candidates come from the production registry rather than hand-built
strings, TFLOPS/BW reuse gemm_moe_tune.py's fused-MoE formulas so the numbers
are comparable with the existing rows, and every candidate is checked against a
torch reference before it is timed -- a config that drops tiles is fast and
wrong and would otherwise win a sweep. --sweep enumerates every registered
candidate and emits tuned-CSV rows; stage1 and stage2 are swept independently
because they are separate back-to-back launches with separate timings.

Tuned configs: kimik3_a16w4_tuned_fmoe.csv carried gfx950,256 only. Adds
gfx942,80 (MI308X) and gfx942,304 (MI300X), 16 tokens x inter_dim {384, 512}
each, keeping the file's one-row-per-(inter_dim, token) convention with the
winning block_m in the block_m column. Every candidate was checked against a
torch reference before being timed, and get_2stage_cfgs was then asked to
confirm each row is the config it actually dispatches: 30/30 reachable rows on
both boxes (the token=3 rows are unreachable because get_padded_M(3) == 4, as
they already are for gfx950).

Unlike gfx950, both gfx942 parts prefer block_m=16 up to token 512 at
inter_dim=512; at inter_dim=384 all three archs agree.
@github-actions github-actions Bot changed the title [FlyDSL] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) [FlyDSL] [CI] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) Sep 17, 2026
@github-actions github-actions Bot added the CI label Sep 17, 2026
@zufayu
zufayu requested a review from coderfeli September 21, 2026 01:11
@coderfeli
coderfeli merged commit baef815 into ROCm:main Sep 22, 2026
70 checks passed
sammysun0711 pushed a commit to sammysun0711/aiter that referenced this pull request Oct 30, 2026
* [FlyDSL] [CI] [a16w4] Support MXFP4 weights on gfx942 (CDNA3) (ROCm#5583)

* [a16w4] Support MXFP4 weights on gfx942 (CDNA3)

`make_b_loader`'s `upconvert_b` feeds MXFP4 weights through
`v_cvt_scalef32_pk_bf16_fp4`, which is CDNA4-only, so on gfx942 the kernel does not
assemble at all

* support a16w4 moe-silu(from Mimov2.6) on gfx942

* add a8w4(ptpc) support on gfx942

* improve a16w4 gemm2 perf by relaxing LDS requirement

* mv per-channel-max into gemm2 for accurate tunning

* tune mimo v2.6 flash for MI300X

---------

Co-authored-by: MHYangAMD <[email protected]>
Co-authored-by: Li,Tingqian <tingqli.amd.com>
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