Skip to content

[CK] aiter#6643: relu2 for legacy ck_gemm_moe_2stages kernel - #7139

Merged
zufayu merged 29 commits into
ROCm:mainfrom
shantipriya-amd:feature/relu2-legacy-kernel-6643
Dec 3, 2026
Merged

zufayu merged 29 commits into
ROCm:mainfrom
shantipriya-amd:feature/relu2-legacy-kernel-6643

Conversation

@shantipriya-amd

@shantipriya-amd shantipriya-amd commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Adds non-gated ReLU² support to the legacy ck_gemm_moe_2stages_codegen MoE kernel for the Nemotron model path. This closes issue #6643 for the BF16 path; FP8 per-tensor ReLU² support is tracked as a separate follow-up.

The legacy kernel family only supports gated activations, so ReLU² needed a gate-only path added for weight loading, static assertions, and epilogue math. This is separate from the CK-Tile MXFP4 ReLU² work in a different kernel family.

Dependency

This PR depends on ROCm/rocm-libraries#16705, which adds ReLU² support to the CK XDL 2-stage MoE templates. (Originally submitted as ROCm/composable_kernel#3792, but that repo's develop branch is now a frozen read-only mirror following migration to the ROCm/rocm-libraries monorepo, so the fix was resubmitted there instead.) That PR has merged (commit 39483cc9a, 2026-11-25).

3rdparty/composable_kernel is pinned to 39483cc9aaffef7add858caa66e9eacccb495971, which contains the merged #16705 change. The submodule still points at ROCm/composable_kernel.git (.gitmodules unchanged) rather than the new ROCm/rocm-libraries monorepo; per reviewer guidance, no .gitmodules migration is required for this PR because the merged CK change has already propagated to the read-only ROCm/composable_kernel mirror. A broader repoint of aiter's CK submodule to ROCm/rocm-libraries is a separate, aiter-wide infra change out of scope here.

Test plan

  • Compile module_moe_ck2stages (gate-only ReLU²) on gfx950.
  • Validate gate-only correctness against torch.relu(x)**2 at the production configuration (E=512, topk=22, model_dim=1024, inter_dim=2688) across a representative token sweep (1, 16, 32, 64, 128).
  • Validate rejection of unsafe/unsupported inputs at the ck_moe_stage1_fwd entry point and unsupported quant/dtype combinations before JIT.
  • Check for regressions in existing gated activation paths (SiLU, SwiGLU, GeluTanh).

Test results

Verified on MI350X (gfx950):

  • module_moe_ck2stages_abi2_b16_b16_preshuffle_on_b16_relu2_no_mulWeightStage2 compiles cleanly against the pinned CK commit.
  • test_relu2_gate_only_regression passes at the production shape across all tested token counts (1/16/32/64/128), confirming correct gate-only ReLU² output end to end.
  • test_relu2_stage1_rejects_unsafe_args and test_relu2_rejects_unsupported_quant_configs pass.
  • Existing gated activation behavior remains correct.

Reviewed revision

2be598f

Behavior and intent

This PR adds the legacy CK gate-only ReLU² path. The supported invariant is: gate-only ReLU² must stay on the no-g1u1, gate-separated, QuantType.No, BF16-only path, with no per-expert bias and no sorted_weights passed into stage 1 (routed weights are applied in stage 2 instead). Unsupported inputs (wrong dtype, wrong quant type, half-width output, sorted_weights in stage1, fp4x2 preshuffle) are rejected before kernel dispatch via explicit guards in get_moe_stage_module and ck_moe_stage1_fwd.

Validation and unverified scope

Validated:

  • CK submodule pin contains the merged ReLU² CK change (#16705), and that template code is confirmed correct for gate-only ReLU² (IsGateUp correctly threaded through expert_stride and row/descriptor computations).
  • BF16-only contract enforcement at get_moe_stage_module and ck_moe_stage1_fwd.
  • rejection of unsupported codegen combinations (FP8 blockscale/per_1x128, non-fp4x2 per_1x32, mixed dtypes, fp4x2 preshuffle) before JIT.
  • removal of the crash-prone gate_only_legacy tuning placeholder row.
  • gate-only ReLU² numerical correctness at the production shape on real gfx950 hardware across token counts 1–128.
  • gated activation regression check (SiLU/SwiGLU/GeluTanh unaffected).

PR-specific question

Which architecture, dtype, and shape boundaries select the changed kernel path, and what invariant prevents unsupported inputs from reaching it?

The changed path is the legacy ck_moe_stage1 gate-only ReLU² path on gfx950, using no-quant BF16 activations and weights — distinct from the already-landed CK-Tile MXFP4 ReLU² path (unaffected by this change). The invariant is that ReLU² must stay on the no-g1u1, gate-separated path and cannot reach the unsupported gate+up configuration; this is enforced by explicit NotImplementedError/ValueError guards rather than relying on shape alone.

Changed op tests

  • op_tests/test_moe_2stage.py:
    • test_relu2_gate_only_regression now targets the production configuration (E=512, topk=22, model_dim=1024, inter_dim=2688) and confirms legacy kernel dispatch and numerical correctness across token counts 1–128.
    • test_relu2_stage1_rejects_unsafe_args (new): rejects a half-width output buffer, sorted_weights in stage1, FP8 activation/weight, and non-QuantType.No quant types.
    • test_relu2_rejects_unsupported_quant_configs (new): rejects ReLU² + per_1x128 FP8 blockscale and ReLU² + per_1x32 with a non-fp4x2 weight dtype before JIT, while confirming genuinely supported combinations still dispatch.
  • aiter/ops/moe_op.py: narrowed get_moe_stage_module's preshuffle_mode guard for ReLU² to only reject the fp4x2 weight case (see root-cause note above).

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

@aiter-bot

aiter-bot commented Oct 30, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 78de6841048b · 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 architecture, dtype and shape boundaries select the changed kernel path, and what invariant prevents unsupported inputs from reaching it?
  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 — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — validation answer must explicitly state what remains unverified (or say none with a reason)

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

@shantipriya-amd
shantipriya-amd marked this pull request as ready for review October 30, 2026 23:39
@shantipriya-amd
shantipriya-amd requested review from a team and a balanced review from Copilot October 30, 2026 23:39
@github-actions github-actions Bot changed the title aiter#6643: relu2 for legacy ck_gemm_moe_2stages kernel [CK] aiter#6643: relu2 for legacy ck_gemm_moe_2stages kernel Oct 30, 2026
@github-actions github-actions Bot added the CK label Oct 30, 2026

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.

🟡 Changes recommended

The new CK ActOP=5 mapping depends on missing composable_kernel submodule support, and the gate-only branch lacks automated regression coverage for width, expert-stride, and scaling behavior.

2 open issues
What changed in this PR

Adds host-side and code-generation wiring for non-gated ReLU² in the legacy CK two-stage MoE kernel, targeting Nemotron 3 Super BF16/FP8 support.

Changes:

  • Accepts relu2 in the kernel generator and maps it to CK activation value 5.
  • Uses the full stage-1 weight width for ReLU² while preserving the half-width calculation for gated activations.
File Description
csrc/​ck_gemm_moe_2stages_codegen/​gen_instances.py Adds relu2 to generator activation choices.
csrc/​ck_gemm_moe_2stages_codegen/​gemm_moe_ck2stages.cu Maps ReLU² to CK and adjusts its stage-1 output width.
csrc/​ck_gemm_moe_2stages_codegen/​gemm_moe_ck2stages_common.py Registers the ReLU² activation value for code generation.

Review effort: Balanced

@zufayu
zufayu self-requested a review November 2, 2026 01:24
@zufayu zufayu self-assigned this Nov 2, 2026
@zufayu

zufayu commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for the MI350X validation details. Before the next review pass, could you complete the PR Self-Review section for the current head (a2c3224)? The bot currently reports all five sections missing. Please include the supported architecture/dtype/shape boundary and what remains unverified; the validation already described above can be summarized there. This is a shadow-mode readiness prompt, not a hard review gate. Separately, this PR currently points to a commit from ROCm/composable_kernel#3792 that is not on CK develop, so Check Repository Dependency and Aiter Test Gate are failing. Once the CK change lands, please update the submodule and rerun CI. Given the multi-expert expert_stride bug found during testing, please add an automated ReLU² multi-expert regression case alongside the existing gated path.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:38

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.

🟡 Changes recommended

Unresolved ReLU² validation gaps permit unsupported blockscale configurations, potential output-buffer overruns, and incorrect routed weighting.

5 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 3, 2026 19:13

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.

Comment thread op_tests/test_moe_2stage.py Resolved
Comment thread op_tests/test_moe_2stage.py Resolved
Comment thread op_tests/test_moe_2stage.py Resolved
Comment thread op_tests/test_moe_2stage.py Resolved
Copilot AI balanced review requested due to automatic review settings November 3, 2026 19:22

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.

@shantipriya-amd

Copy link
Copy Markdown
Contributor Author

Thanks for the MI350X validation details. Before the next review pass, could you complete the PR Self-Review section for the current head (a2c3224)? The bot currently reports all five sections missing. Please include the supported architecture/dtype/shape boundary and what remains unverified; the validation already described above can be summarized there. This is a shadow-mode readiness prompt, not a hard review gate. Separately, this PR currently points to a commit from ROCm/composable_kernel#3792 that is not on CK develop, so Check Repository Dependency and Aiter Test Gate are failing. Once the CK change lands, please update the submodule and rerun CI. Given the multi-expert expert_stride bug found during testing, please add an automated ReLU² multi-expert regression case alongside the existing gated path.

@zufayu: Thanks for the review and suggestions. Updated the suggested changes:

  • PR self-review completed for the current head with the validation summary, supported architecture/dtype/shape boundaries, and remaining unverified items captured.
  • Added the ReLU² multi-expert regression coverage for the expert_stride issue in the gate-only path alongside the existing gated-path test.
  • CK dependency refreshed.
  • CI is currently being rerun on the refreshed branch.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 08:45
@github-actions github-actions Bot changed the title [CK] aiter#6643: relu2 for legacy ck_gemm_moe_2stages kernel [CK] [CI] aiter#6643: relu2 for legacy ck_gemm_moe_2stages kernel Nov 4, 2026
@github-actions github-actions Bot added the CI label Nov 4, 2026

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.

Comment thread op_tests/test_moe_2stage.py Resolved
Copilot AI balanced review requested due to automatic review settings November 4, 2026 12:24
@zufayu

zufayu commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Checked the three new commits. One real fix, one that needs to be redone, plus a new unrelated CI failure:

✅ Fixed correctly: a8b9c25bc699 switches both new regression gates to get_gfx_runtime(). That resolves item #2 from my earlier comment.

❌ Item #1 (dispatch regression) is not actually fixed — 39e83d8d96f0 ("regenerate golden snapshot for Relu2 per_1x32 rejection") only touched tests/moe_dispatch/golden/*.jsonl.gz; aiter/ops/moe_op.py is unchanged since aef661467a94. The new golden files now bake in the NotImplementedError: ActivationType.Relu2 CK-Tile path (q_type=per_1x32, q_dtype_w=fp4x2) has no validated kernel instance... as the expected output for all 136 previously-working gfx942 CK-Tile MXFP4 configs. That makes the snapshot test pass, but it does so by codifying the regression as intended behavior rather than fixing the overly-broad guard in get_moe_stage_module() I pointed at earlier. Please revert the snapshot regen and fix the guard itself so CK-Tile MXFP4 ReLU² dispatch on gfx942 keeps resolving to a real kernel, the way it does on main today.

New, unrelated failure: Check Repository Dependency is now failing — 3rdparty/composable_kernel is pinned to de52f6b5fccab9cdc88c937dd2c7efbaff284a12, which check_deps.sh says is not a commit from CK's develop branch (main's current pin is f93c029e..., different from both). This looks like it came in through one of the merge-from-main commits rather than something in this branch's own commits — worth checking where that pin came from and re-pinning to a commit that's actually on CK develop (e.g. the 39483cc9a this PR had pinned before, if that's still valid, or a newer develop commit with the same ReLU² support).

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.

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.

@shantipriya-amd

Copy link
Copy Markdown
Contributor Author

Checked the three new commits. One real fix, one that needs to be redone, plus a new unrelated CI failure:

✅ Fixed correctly: a8b9c25bc699 switches both new regression gates to get_gfx_runtime(). That resolves item #2 from my earlier comment.

❌ Item #1 (dispatch regression) is not actually fixed — 39e83d8d96f0 ("regenerate golden snapshot for Relu2 per_1x32 rejection") only touched tests/moe_dispatch/golden/*.jsonl.gz; aiter/ops/moe_op.py is unchanged since aef661467a94. The new golden files now bake in the NotImplementedError: ActivationType.Relu2 CK-Tile path (q_type=per_1x32, q_dtype_w=fp4x2) has no validated kernel instance... as the expected output for all 136 previously-working gfx942 CK-Tile MXFP4 configs. That makes the snapshot test pass, but it does so by codifying the regression as intended behavior rather than fixing the overly-broad guard in get_moe_stage_module() I pointed at earlier. Please revert the snapshot regen and fix the guard itself so CK-Tile MXFP4 ReLU² dispatch on gfx942 keeps resolving to a real kernel, the way it does on main today.

New, unrelated failure: Check Repository Dependency is now failing — 3rdparty/composable_kernel is pinned to de52f6b5fccab9cdc88c937dd2c7efbaff284a12, which check_deps.sh says is not a commit from CK's develop branch (main's current pin is f93c029e..., different from both). This looks like it came in through one of the merge-from-main commits rather than something in this branch's own commits — worth checking where that pin came from and re-pinning to a commit that's actually on CK develop (e.g. the 39483cc9a this PR had pinned before, if that's still valid, or a newer develop commit with the same ReLU² support).

@zufayu: Thanks for the review.

Item #1: Fixed.

Item #2: Fixed earlier in a8b9c25 (both gates use get_gfx_runtime()).

All CI green, including OPUS Tests (MI350X DPX). Ready for review.

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.

Comment thread aiter/configs/tuned_fmoe.csv Resolved

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.

Comment thread op_tests/test_moe_2stage.py Resolved

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.

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.

Comment thread aiter/ops/moe_op.py Resolved
@zufayu

zufayu commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Looked into why this is BLOCKED (not just the Copilot suggestions) — the actual CI blocker is a single test failure in Standard Tests (1 GPU) shard 4/8, which fails the required Aiter Test Gate:

FAIL: test_no_invalid_times (__main__.TestCSVValidation.test_no_invalid_times) (csv='fmoe')
AssertionError: 1 != 0 : fmoe: 1 rows with us <= 0:
     cu_num  token  model_dim  ...  tflops   bw              _tag
625     80      8       7168  ...     0.0  0.0  gate_only_legacy

(op_tests/tuning_tests/test_csv_validation.py:235, run 46720783117 / job 143023295201)

This is the new fmoe tuning-CSV row tagged gate_only_legacy that this PR adds — its us (and tflops/bw) came out as 0.0, and test_csv_validation.py asserts every row must have us > 0. The row looks like it was committed before a real tuning pass produced a valid timing for it.

Fix: re-run tuning for the gate_only_legacy config in fmoe (cu_num=80, token=8, model_dim=7168, ...) so the CSV row has a real measured us, then update/re-commit that row. If this config genuinely can't be timed yet (e.g. depends on the CK submodule bump mentioned in the Copilot review), it probably shouldn't be added to the tuned CSV until it can be, or should go through whatever "placeholder row" path the codebase already has for that case.

Everything else is green — build_aiter_wheels, style, Standard Tests shards 0-3/5-7, Triton tests, Tuned Op Bench all pass. Once this one row/test is fixed, Aiter Test Gate should go green and mergeStateStatus should clear (branch is already MERGEABLE, no conflicts).

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.

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.

Comment thread op_tests/test_moe_2stage.py Resolved
@shantipriya-amd

Copy link
Copy Markdown
Contributor Author

Looked into why this is BLOCKED (not just the Copilot suggestions) — the actual CI blocker is a single test failure in Standard Tests (1 GPU) shard 4/8, which fails the required Aiter Test Gate:

FAIL: test_no_invalid_times (__main__.TestCSVValidation.test_no_invalid_times) (csv='fmoe')
AssertionError: 1 != 0 : fmoe: 1 rows with us <= 0:
     cu_num  token  model_dim  ...  tflops   bw              _tag
625     80      8       7168  ...     0.0  0.0  gate_only_legacy

(op_tests/tuning_tests/test_csv_validation.py:235, run 46720783117 / job 143023295201)

This is the new fmoe tuning-CSV row tagged gate_only_legacy that this PR adds — its us (and tflops/bw) came out as 0.0, and test_csv_validation.py asserts every row must have us > 0. The row looks like it was committed before a real tuning pass produced a valid timing for it.

Fix: re-run tuning for the gate_only_legacy config in fmoe (cu_num=80, token=8, model_dim=7168, ...) so the CSV row has a real measured us, then update/re-commit that row. If this config genuinely can't be timed yet (e.g. depends on the CK submodule bump mentioned in the Copilot review), it probably shouldn't be added to the tuned CSV until it can be, or should go through whatever "placeholder row" path the codebase already has for that case.

Everything else is green — build_aiter_wheels, style, Standard Tests shards 0-3/5-7, Triton tests, Tuned Op Bench all pass. Once this one row/test is fixed, Aiter Test Gate should go green and mergeStateStatus should clear (branch is already MERGEABLE, no conflicts).

@zufayu : You're right that the gate_only_legacy row had no real measured timing (us=0.0/tflops=0.0/bw=0.0). Since this config can't genuinely be timed yet, I removed the placeholder row entirely rather than leaving it in the tuned CSV with fake zero values.

Fixed in 82cf131. Verified locally before pushing.

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

CI is green (Aiter Test Gate passed after the gate_only_legacy CSV row fix in 82cf131). Approving — see prior review thread for full context.

@zufayu

zufayu commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Resolved 3 of the 6 outstanding Copilot threads that are actually addressed by later commits:

  • The CK submodule-pin concern — fixed by the re-pin to 39483cc9a in aec94d6.
  • Both get_gfx() vs get_gfx_runtime() regression-gate concerns — fixed in a8b9c25.

Left 3 open because I can't confirm from reading the code that they're resolved — these need your input (or a fix) before merge, since the repo's ruleset requires every thread resolved:

  1. aiter/fused_moe.py (two threads, q_type=No branch): the q_type == QuantType.per_1x32 branch validates the dtype combination in detail, but there's no equivalent check for q_type == QuantType.No — the BF16-activation/FP8-weight combination Copilot flagged looks like it can still slip through to ck_moe_stage1 unvalidated.
  2. op_tests/test_moe_2stage.py:2558: the get_2stage_cfgs cache-staleness concern (a cached partial could retain a reference to the monkey-patched ck_moe_stage1 from test_relu2_gate_only_regression after the module attribute is restored) — needs a runtime check, not just a read of the diff, to confirm it's harmless.

@zufayu @shantipriya-amd flagging so one of you can either fix these or explain why they're not real gaps and resolve the threads.

@zufayu

zufayu commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Resolving the remaining 3 threads to unblock merge — deferring to a follow-up PR rather than holding this one further:

  1. aiter/fused_moe.py: missing dtype validation for the q_type == QuantType.No branch (mirroring the detailed checks already present for q_type == QuantType.per_1x32).
  2. op_tests/test_moe_2stage.py:2558: possible get_2stage_cfgs cache staleness retaining a reference to the monkey-patched ck_moe_stage1 after test_relu2_gate_only_regression restores it.

@shantipriya-amd could you open a tracking issue (or a follow-up PR) for these two so they don't get lost? Everything else in this PR is in good shape — thanks for sticking with the long review cycle.

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.

4 participants