Skip to content

[FlyDSL] gfx1250 MoE A1 quant: emit the shared expert's MXFP8 input in the same pass - #8364

Open
lirui927 wants to merge 9 commits into
ROCm:mainfrom
lirui927:lirui/gfx1250-moe-quant-shared-mxfp8
Open

lirui927 wants to merge 9 commits into
ROCm:mainfrom
lirui927:lirui/gfx1250-moe-quant-shared-mxfp8

Conversation

@lirui927

@lirui927 lirui927 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What

MiniMax-M3.1 quantizes the same bf16 hidden rows twice in every MoE layer: MXFP4 for the routed experts and MXFP8 for the shared expert. With this PR the gfx1250 routed quant (moe_fused_route_quant_scatter.py) can write the shared expert's MXFP8 input in the same pass, so the shared expert's own quant launch goes away. The shared expert itself is unchanged (still a separate MXFP8 MLP).

  • API: fused_moe(..., mxfp8_copy_out=(q, s)): q is the E4M3 payload [M, K], s the E8M0 scale [M, K/32].
  • Values: the bytes of per_1x32_mx_quant_hip(fp8, e8m0) for finite inputs.
  • Where it is folded: the routeks, token-multidest (K-split and TDM-staged) and compact quant kernels (_mx8cp builds), when the quant sees every bf16 source row. Every other call (A-preshuffled shapes, EP, a non-grouped MoE) writes the copy with the HIP quant in its own launch, which also takes an fp16 input. A prequantized input raises.
  • Without mxfp8_copy_out: kernel names, signatures and ISA are unchanged. The copy pointers are a tuple operand of each kernel, empty with the copy off; a copy build adds only its launcher.
  • Plugin contract: fused_moe goes to version 4 (main took 3 for post_gemm2_rms_*; a v3 provider would leave the copy unwritten). aiter.moev2 takes the two new arguments and falls back to the legacy code when the copy is requested.

Benefit

One idle MI455X at this head, python3 op_tests/test_moe_quant_shared_mxfp8.py (one run, M3.1 shape, whole fused_moe call, µs):

tokens copy written by MoE MoE + separate MXFP8 quant MoE with the copy
8 routeks, K-split 26.1 28.3 26.4
192 multidest, K-split 72.2 74.8 72.2
4096 compact 175.1 182.6 178.0
16384 multidest, TDM-staged (compact off by env) 462.8 487.2 476.8
4096 routeks, full row (by env) 193.8 201.3 195.8
4096 own launch (A-preshuffle forced) 194.5 202.1 203.6

Folded, the copy saves 1.9-2.6 µs a layer at 8-192 tokens and 4.6-10.4 µs at 4096-16384; in its own launch it saves nothing. One run, and the middle column is two separately timed calls added: the own-launch row, where both sides run the same kernels, differs by 1.5 µs, so the small-token saving is near the harness's resolution. The model has 57 such layers.

Testing

One idle MI455X (gfx1250), image rocm/fw-bringup:gfx1250-minimax-m3-20261112, FlyDSL 0.5.3, at this head:

  • python3 -m pytest -q -s op_tests/test_moe_quant_shared_mxfp8.py: 7 passed in 175 s (the six fused_moe cases and the host argument check).
  • python3 -m pytest -q op_tests/test_fhmoe.py -k positional_argument_order: 1 passed.
  • python3 op_tests/test_moe_quant_shared_mxfp8.py: exit 0, the table above.
  • The A-preshuffle case uses 4096 tokens: with tokens * top-k <= 2048, main's forced A-preshuffle route does not write the A1 the GEMM reads (main's gap, found by code reading, not fixed here).

On the host at this head (CPU only, FlyDSL 0.5.3 compile-only for gfx1250):

  • Copy off: aiter.aot.flydsl.dry_run, cmp of the final ISA against main abec8a5: 81 / 81 quant kernels of the default set identical, and 29 / 29 of the shapes below built without the copy.
  • Copy on: 29 _mx8cp builds (the M3.1 ones, top-k 1 / 3 / 5 / 8, an FP8 routed quant, K from 256 to 16384) compile and are byte-identical to 97f6c1e.
  • The six fused_moe cases of the test, dry-run through fused_moe on fake tensors: the five folded cases compile the _mx8cp builds the GPU run names in its table; A-preshuffle at 4096 tokens compiles none.
  • python -m pytest -q tests/test_plugin_contracts.py tests/test_plugin_selector_arity.py tests/test_moev2_dispatch.py tests/test_moev2_switch.py tests/test_moev2_hooks.py tests/test_moev2_imports.py tests/test_moev2_ranking.py tests/test_jit_signature.py tests/test_moe_dispatch_snapshot.py: 128 passed, 3 failed; main abec8a5 fails the same 3 on this host.
  • python tests/moe_dispatch/snapshot.py --check and differential.py --check: identical, 0 problems.
  • python -m pytest -q op_tests/test_moe_quant_shared_mxfp8.py: 1 passed (host argument check), 6 skipped (gfx1250 only).
  • python -m black --check and ruff check --no-cache on the changed Python files: clean.

Not covered

  • AOT replay does not prebuild the _mx8cp variants: they JIT on first use, and with FLYDSL_RUNTIME_RUN_ONLY=1 a call that requests the copy raises.
  • The fused_moe plugin contract goes v3 -> v4; no out-of-tree provider was checked against v4.
  • No copy-off regression signal from op_tests/flydsl_tests/test_flydsl_grouped_gemm.py in this image (see Unverified); copy off rests on the ISA comparison.
  • No gfx1250 CI job runs the GPU cases; other archs run only the host check.
  • Top-k 5 and an FP8 routed quant with the copy compile but were not run. An fp16 input on the separate launch was not run.
  • Inf / NaN blocks: the scale byte may differ from the HIP quant's (the row is non-finite either way).
  • No model end to end. The ATOM side (opt-in) is [MiniMax-M3] Shared expert input from the routed MoE quant (opt-in) ATOM#3630.

Dependencies

None. #7543 and #7547 edit the same quant builders. This PR does not move or re-indent the kernel bodies: per builder it adds one factory argument, a name tag, one kernel parameter and one hook line, and appends the copy launcher after main's (main's launcher is untouched). A new A1 entry point must handle mxfp8_copy_out (fold it, or call mxfp8_row_copy).

Open question

Is fused_moe(..., mxfp8_copy_out=) the right surface, or should the copy be requested through the MoE quant config?

PR Self-Review

Reviewed revision

33f89eb

Behavior and intent

  • New behavior only when a caller passes mxfp8_copy_out; every existing call runs the unchanged kernels.
  • The copy is written on every path: folded when the routed quant sees every source row, otherwise by the HIP quant in its own launch (bf16 or fp16); a prequantized input raises.
  • Why: one quant launch less per MoE layer, 1.9-2.6 µs at 8-192 tokens and 4.6-10.4 µs at 4096-16384 (table above; one run, not repeated).

Validation and unverified scope

  • MI455X, one idle GPU, at this revision: python3 -m pytest -q -s op_tests/test_moe_quant_shared_mxfp8.py 7 passed; python3 -m pytest -q op_tests/test_fhmoe.py -k positional_argument_order 1 passed; python3 op_tests/test_moe_quant_shared_mxfp8.py exit 0.
  • CPU, aiter.aot.flydsl.dry_run + cmp of the final ISA: copy off, 81 / 81 + 29 / 29 quant kernels identical to main abec8a5; 29 / 29 _mx8cp builds identical to 97f6c1e.
  • CPU: python tests/moe_dispatch/snapshot.py --check and differential.py --check clean; the moev2 / plugin / jit-signature tests 128 passed, 3 failed (the same 3 fail on main abec8a5 on this host); python -m pytest -q op_tests/test_moe_quant_shared_mxfp8.py 1 passed, 6 skipped; black and ruff clean.
  • Merge of main ed1163f at this revision (CPU only; the GPU runs above are at 88c0407, before the merge): moev2 moved its unsupported-argument list to aiter/moev2/migration/local.py, so the two copy arguments are refused there, classified in call_cache.PARAMS and defaulted for the fhmoe entry. The moev2 / plugin / jit-signature tests plus tests/test_moev2_call_cache.py: 242 passed, 5 failed; main ed1163f fails the same 5 on this host.
  • Unverified: python3 -m pytest -q op_tests/flydsl_tests/test_flydsl_grouped_gemm.py gives no regression signal in this image: it aborts with a GPU memory fault in test_grouped_a4w4_situv2_kimi_k3_tp8_k_tail_matches_torch_ref (3 runs), and main abec8a5 aborts in the same test (2 runs), in kernels this PR does not touch. Also unverified: CI at this revision; the moev2 GPU checks; Inf / NaN inputs; top-k 5, an FP8 routed quant and an fp16 input with the copy; host cost per call with the copy off (not measured; the copy-off wrapper path gains one is not None test, an empty tuple and an empty unpack per launch); a model end to end.

Changed op tests

  • op_tests/test_moe_quant_shared_mxfp8.py (new)
    • Covers: fused_moe(..., mxfp8_copy_out=) on the M3.1 shape, one case per quant the grouped MoE can take (routeks K-split and full row, multidest K-split and TDM-staged, compact) and one that cannot fold the copy: MoE output bitwise unchanged, copy bitwise equal to per_1x32_mx_quant_hip, and the kernel that wrote it; one host argument check.
    • Before this PR: fails at call (mxfp8_copy_out does not exist).
    • Not redundant: no existing test covers a second output of the A1 quant.
  • op_tests/test_fhmoe.py
    • Covers: the pinned fused_moe parameter list gains mxfp8_copy_out at the end.
    • Before this PR: unchanged; without the edit it fails on this PR.
    • Not redundant: it is the existing guard on the positional order, which is kept.

@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
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 Radeon R9700 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 8364 --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.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

XiaobingSuper added a commit to XiaobingSuper/aiter that referenced this pull request Nov 23, 2026
XiaobingSuper added a commit to XiaobingSuper/aiter that referenced this pull request Nov 23, 2026
ROCm#8456 (k5 decode AR)

# Conflicts:
#	aiter/ops/flydsl/grouped_moe_gfx1250.py
#	aiter/ops/flydsl/moe_kernels.py
@lirui927
lirui927 force-pushed the lirui/gfx1250-moe-quant-shared-mxfp8 branch from e6828e7 to 0b1c3c4 Compare November 23, 2026 09:13
lirui927 pushed a commit to lirui927/ATOM that referenced this pull request Nov 23, 2026
The shared expert (a native group-32 FP8 MLP beside the MXFP4 routed experts)
quantizes the post-attention rows with `quantize_fp8` before its gate_up,
while the routed MoE's A1 quant reads the same rows. With
ATOM_MINIMAX_M3_MOE_QUANT_SHARED=1 the experts run through a new
`moe_forward_mxfp8_copy` op that returns those rows as MXFP8 too: the MXFP4
method hands aiter's fused_moe `mxfp8_copy_out`, and the gfx1250 grouped A1
quant writes it in its own pass (aiter: bitwise `quantize_fp8`'s bytes). The
shared expert then takes them as `x_scale` and skips its quant launch; it
stays a separate MXFP8 MLP.

The flag applies only where the shared gate_up is a native group-32 linear
that quantizes its input (not its BF16 fallback) and the experts use the
MXFP4 method. Paths where the experts do not take the local rows through
aiter's fused_moe (Triton experts, the modular kernel, DP/PCP gathers, SP
MegaMoE, simulated DP) fill the copy with `quantize_fp8` themselves.

The op returns the E8M0 scale as uint8, viewed back by the caller: it mutates
hidden_states, so torch.compile wraps it in auto_functionalized_v2, which
Inductor does not decompose when it returns E8M0.

Default off; needs aiter with ROCm/aiter#8364.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lirui927
lirui927 marked this pull request as ready for review November 23, 2026 09:13
@lirui927
lirui927 requested a review from a team November 23, 2026 09:13
@github-actions github-actions Bot changed the title [FlyDSL] gfx1250 MoE A1 quant: emit the shared expert's MXFP8 input in the same pass [FlyDSL] [CI] gfx1250 MoE A1 quant: emit the shared expert's MXFP8 input in the same pass Nov 23, 2026
@aiter-bot

aiter-bot commented Nov 23, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 33f89eb0fadc · 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 ### PR-specific question in the PR description
  • 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.

XiaobingSuper added a commit to XiaobingSuper/aiter that referenced this pull request Nov 23, 2026
ROCm#8456 (k5 decode AR)

# Conflicts:
#	aiter/ops/flydsl/grouped_moe_gfx1250.py
#	aiter/ops/flydsl/moe_kernels.py
lirui927 and others added 3 commits November 25, 2026 11:38
…n the same pass

A shared expert run beside the routed MXFP4 MoE (MiniMax-M3.1) quantizes the
same bf16 rows to MXFP8 in its own launch. The routed A1 quant already reads
each row and reduces every 32-block's amax, so it can write that copy too:
fused_moe / flydsl_moe_fused_quant_preshuffle take `mxfp8_copy_out=(payload,
scale)`, row-major (M, K) E4M3 + (M, K/32) E8M0, the bytes of
per_1x32_mx_quant_hip(quant_dtype=fp8, scale_type=fp8_e8m0) (amax floored at
kAmaxFloor, RoundUp exponent against 448, v_cvt_scalef32_pk8_fp8_bf16).

The three quant builds the M3.1 grouped MoE dispatches take a `mxfp8_copy`
build flag (`_mx8cp` builds with two more pointers): token-multidest (plain
and K-split), the compact-scale quant, and the route-indexed quant (each
source row's first route writes it, mapped or not). Any other A1 path, or a
non-grouped MoE / FHMoE, fills the copy with the same HIP quant in its own
launch (`mxfp8_row_copy`). Without the flag every build is unchanged: the
kernel bodies moved into a @flyc.jit body inlined into either signature.

fused_moe's plugin contract moves to version 3 (two more outputs a v2
provider would leave unwritten, so v2 is not superseded);
tests/plugin_contracts.json records it.

op_tests/test_moe_quant_shared_mxfp8.py: for every variant at 8..32768
tokens, the routed outputs are bitwise unchanged with the copy on, and the
copy is bitwise the HIP quant, the separate launch and a torch model of the
rule; the public fused_moe path keeps its output and launch count; the
benchmark times the fused launch against the routed quant and the HIP quant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test_clamp_shared_preserves_existing_positional_argument_order lists every
fused_moe parameter from quant_type_a on. mxfp8_copy_out is appended after
w2_global_scale, so the positional order of the existing arguments is
unchanged; the test's list gains the new last name.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…s it

aiter.moev2.api.op_call copies the arguments fused_moe passes to fused_moe_, and aiter.moev2.fused_moe keeps the legacy signature, so both take the MXFP8 copy output added here (tests/test_moev2_dispatch.py and tests/test_moev2_switch.py compare them with the legacy code). The a8w8_pt path writes no such copy: it lists the two arguments as unsupported, so a call that asks for the copy goes back to the legacy code.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
lirui927 and others added 2 commits December 2, 2026 07:01
Conflicts: main added the post_gemm2_rms_* arguments to fused_moe and took
contract version 3 for them. mxfp8_copy_out / mxfp8_copy_payload /
mxfp8_copy_scale now follow them, and the fused_moe contract goes to
version 4 (tests/plugin_contracts.json rewritten for it).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The copy pointers are a tuple operand of each quant kernel (empty with the
copy off, so those builds and their launchers are main's, untouched), and a
copy build adds only its launcher. The wrapper decides once whether the
routed quant can fold the copy and otherwise launches it on its own, in
place of the scattered fallbacks and refusals of calls the fallback serves.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
lirui927 and others added 3 commits December 2, 2026 07:25
One table of fused_moe calls, one per quant the grouped MoE can take plus
one that cannot fold the copy: MoE output unchanged, copy equal to
per_1x32_mx_quant_hip, and the kernel that wrote it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…t change

python3 op_tests/test_moe_quant_shared_mxfp8.py now starts with the host
argument check (any card), so with the six fused_moe cases, whose assertions
and timings already come from one function, it covers what pytest collects.
.github/scripts/aiter_test.sh is back to main's.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
- test: move the forced A-preshuffle case to 4096 tokens (off main's
  fused TP route, which fills no row_to_token), tell the kernel variants
  apart by name tag, make the refusal row wrong in shape only
- one shared check: an fp16 hidden is allowed where the HIP quant writes
  the copy, a missing copy tensor is a ValueError, and the grouped path
  reuses it for prequantized inputs
- drop the routeks builder's copy of the wrapper's fold predicate;
  _mxfp8_copy_dest is module-private
- docs: the copy is the HIP quant's bytes for finite inputs; which calls
  fold it

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@lirui927

lirui927 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

review-pr scan (ROCm/aiter main, .claude/skills/review-pr at abec8a5), run locally on head 88c0407ae101db28d3a64a35e6b501e2a9c3d04e with REVIEW_AUTO_VALIDATE=0; no GPU used by the scan. Merge target 0dbaa95.

Card and scan log at 88c0407

Card

ROCm/aiter PR #8364 — [FlyDSL] [CI] gfx1250 MoE A1 quant: emit the shared expert's MXFP8 input in the same pass

Adds an opt-in fused_moe(..., mxfp8_copy_out=(payload, scale)) that also writes the input rows as MXFP8: on gfx1250 the routed A1 quant kernels write it in the same launch (separate _mx8cp builds), every other path writes it with the existing HIP quant in its own launch (a prequantized input raises), and the fused_moe plugin contract goes from version 3 to 4.

Review (advisory): ⚠️ NEEDS WORK
Validation (deterministic): NOT RUN — auto-validation was disabled for this review run (REVIEW_AUTO_VALIDATE=0); a test target exists (op_tests/test_moe_quant_shared_mxfp8.py), so this is an environment gap, not a PR defect. The PR body reports the author's own MI455X run at this head (7 passed); that is the author's claim and was not reproduced here.
Perf (advisory): NOT RUN — no base-vs-head timing: validation was disabled, and the only timing target is added by this PR, so base has nothing to time. The body's table is a head-only run.
Size: 590 lines / 10 files
Design (advisory): the MXFP8 copy is a second output of the routed fused_moe op itself — fused_moe(mxfp8_copy_out=) threaded into fused_moe_ as mxfp8_copy_payload / mxfp8_copy_scale (plugin contract v4, v3 not superseded) and folded into the A1 quant kernels as separate _mx8cp builds — rather than a request carried by the MoE quant config or a launch issued above the route
Human: recommend Felix Li review whether mxfp8_copy_out belongs on fused_moe and in the fused_moe_ v4 contract (every v3 provider stops matching) or should be requested through the MoE quant config, the open question this PR asks

⚠️ [verified] aiter/fused_moe.py adds two own-launch sites for the copy (mxfp8_row_copy before the FHMoE dispatch, and in _fused_moe_impl when the gfx1250 grouped path declines), and no test runs either: all six GPU cases in op_tests/test_moe_quant_shared_mxfp8.py are gated to gfx1250 and go through the grouped path, so on the CI architectures only the host argument check executes. The body's "the copy is written on every path" is therefore untested on gfx942 / gfx950 and for a non-grouped MoE, so a regression at either site (for example a later early return ahead of the call) would reach callers with no test failing [inferred]. Author must add one case that runs a non-grouped fused_moe with mxfp8_copy_out on the CI arch and compares it with per_1x32_mx_quant_hip.
⚠️ [verified] The fold condition in aiter/ops/flydsl/moe_kernels.py (flydsl_moe_fused_quant_preshuffle) accepts any source_topk > 0 and both routed quant modes, but the GPU cases cover top-k 4, MXFP4, K 6144 only. The non-power-of-two copy_writer branch (route % source_topk, in the route-indexed build only, which runs below 64 tokens or with the token-multidest quant off) and an FP8 routed quant with the copy were compiled and never executed (the body lists this under "Not covered"). If either is wrong, a caller with top-k 3 / 5 or MXFP8 routed activations gets wrong or unwritten copy rows silently [inferred]. Author must add a top-k 3 or 5 case below 64 tokens (so the route-indexed build runs) and an FP8 routed-quant case, or state why the top-k 4 run covers them.
⚠️ [verified] The three builders in aiter/ops/flydsl/kernels/moe_fused_route_quant_scatter.py take a new build argument mxfp8_copy that selects a different module, and the AOT replay never requests it (it replays _fused_moe_impl without mxfp8_copy_out). Every _mx8cp variant is thus a cache miss: a compile on the first serving call per shape, or, per the body, a raise under FLYDSL_RUNTIME_RUN_ONLY=1. The body discloses this. Reviewer should ask whether the replay learns the copy before a consumer turns it on in an AOT-only image, and where that is tracked.
⚠️ [inferred] The benefit table comes from op_tests/test_moe_quant_shared_mxfp8.py, where the baseline column is us_plain + us_split, two calls timed separately and added, from one invocation. In the body's own-launch row the same kernels run on both sides, yet "with the copy" is 203.6 against 202.1 µs: a 1.5 µs gap of the size of the 1.9-2.6 µs saving claimed at 8-192 tokens. Is the small-token saving above the harness's resolution? Author must time the MoE followed by the split quant as one sequence and report the spread over repeated runs.
📝 [verified] tests/plugin_contracts.json moves fused_moe to version 4 with an empty supersedes, so an out-of-tree provider that declares version 3 stops being selected for every fused_moe call, with or without the copy, and the plugin matcher logs no warning for it (the mismatch shows only in the plugin's explain / provider-check output); the body says no provider was checked against v4. aiter/fused_moe.py and the moev2 entry also carry a notice asking for coordination with the moev2 owner (qli88) before edits. Reviewer should ask the fused_moe owner and qli88 to sign off on the new keyword and the version bump before merge.

Scan log

  files=10  types=13  rules=29/68
    [new-routing-value   ] A4 B4 C4
    [dispatch-change     ] A4 B1 B3 B4 A3
    [tier2-dispatch      ] E5 E4 C5
    [fp8-quant           ] C1 C2 D1
    [async-stream        ] G1 G1b
    [flydsl              ] D10 D10b D12 D13 D14 C5
    [flydsl-kernel       ] A1 A4 B8 D1 D8 D12 D13 D14 P6 C5
    [downstream-op       ] E4 E5 A2
    [layout-contiguity   ] D8 B7
    [weight-variant      ] F1
    [conditional-binding ] D1b
    [plugin-bridge       ] E3
    [scattered-diff      ] HK2
KERNEL TESTS: no new kernel file without a collectible test
SIBLINGS: no variant of a changed function still carries a changed line
FLYDSL BOUNDS: no unbounded buffer resource or descriptor on an added line
GUARDS: this diff deletes no assert, check, zero-init or contiguous call
APPLIES: the diff still applies to 0dbaa95c4ab2018750a53570c946178b8596868e
IMPORTS RESOLVED: every first-party import the diff adds exists in the merge target or in this diff
590 lines / 10 files
ANSWERS COMPLETE: 6/6
DIAGNOSTIC COMPLETE: 6/6
CORE FILES ASSESSED: 1/1 backbone files (0 tier-1), 1 gap(s)
LEDGER COMPLETE: 29/29 rules adjudicated with evidence
CARD NAILED DOWN: 5 findings, each traced to an adjudication and anchored in a changed file; every FIRE accounted for
REFUTATIONS COMPLETE: 9 attempted, 5 survived, 4 killed before reaching the card
INDEPENDENTLY REFUTED: 5 judged, 5 defended, 0 killed by a reader who had not seen the reasoning
DESIGN ROUTED: size 590 lines / 10 files
fired: 6 of 29 -> A2 A3 D12 E3 E5 P6

@lirui927
lirui927 marked this pull request as ready for review December 2, 2026 12:05
@github-actions github-actions Bot changed the title [FlyDSL] [CI] gfx1250 MoE A1 quant: emit the shared expert's MXFP8 input in the same pass [FlyDSL] gfx1250 MoE A1 quant: emit the shared expert's MXFP8 input in the same pass Dec 2, 2026
@github-actions github-actions Bot removed the CI label Dec 2, 2026
moev2 moved the unsupported-argument list to migration/local.py; the two copy
arguments are refused there, classified in call_cache.PARAMS and defaulted for
the fhmoe entry.

Co-Authored-By: Claude Fable 5.2 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants