Skip to content

[HIP] [CK] Revert " Add relu2 (Squared ReLU) activation support to CK-Tile fused MoE GEMM (#5708)" - #6142

Merged
yzhou103 merged 1 commit into
ROCm:mainfrom
shantipriya-amd:revert-5708-ck-pin
Oct 5, 2026
Merged

yzhou103 merged 1 commit into
ROCm:mainfrom
shantipriya-amd:revert-5708-ck-pin

Conversation

@shantipriya-amd

Copy link
Copy Markdown
Contributor

Reverts #5708.

CK submodule pin 1f66d862231703a0f354e5771e58573139bb6efb is not on any upstream CK branch — it's based on two local commits (f2e40a78, 1f66d862) stacked on top of the previous good pin (af9e1d1f), never submitted to CK's develop branch. This breaks CI's submodule sync since the commit isn't fetchable.

Plan to re-land:

  1. Submit the two CK commits (Add MoeRelu2 activation functor, Fix half_t intrinsics) as a PR to composable_kernel:develop and get it merged.
  2. Repin this submodule to the resulting official develop commit.
  3. Re-submit the relu2 PR with the updated, fetchable CK pin.

No change to the relu2 implementation itself is needed — this is purely a submodule-provenance/CI fix.

@shantipriya-amd
shantipriya-amd requested review from a team and a balanced review from Copilot October 5, 2026 06:55
@github-actions

github-actions Bot commented Oct 5, 2026

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
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 6142 --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.

@github-actions github-actions Bot changed the title Revert "[HIP] [CK] Add relu2 (Squared ReLU) activation support to CK-Tile fused MoE GEMM (#5708)" [HIP] [CK] Revert " Add relu2 (Squared ReLU) activation support to CK-Tile fused MoE GEMM (#5708)" Oct 5, 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.

Copilot review overview

🟡 Changes recommended

The CK gitlink remains uncorrected, while the revert reintroduces unsafe Relu2 memory access and invalid CK-Tile dispatch behavior.

Review effort: Balanced
Findings: 4 High severity

Open (4)
What changed in this PR

Reverts CK-Tile fused MoE Relu2 support because its CK dependency commit is unavailable upstream.

Changes:

  • Removes Relu2 enum, routing, code generation, and tests.
  • Restores prior quantization conversion behavior.
  • Reverts standalone Relu2 safety handling.
File Description
op_tests/​test_moe_2stage.py Removes Relu2-specific test configuration.
csrc/​kernels/​quant_mxfp6_gemm.cu Restores direct float casts.
csrc/​kernels/​quant_mxfp4.cu Restores direct float casts.
csrc/​kernels/​activation_kernels.cu Removes bounds-safe Relu2 launching.
csrc/​include/​rocm_ops.hpp Removes the public Relu2 binding.
csrc/​include/​aiter_enum.h Removes the Relu2 enum value.
csrc/​ck_tile_gemm_moe_2stages/​moe_cktile2stages.cu Removes Relu2 dispatch.
csrc/​ck_tile_gemm_moe_2stages/​moe_cktile2stages_common.py Removes Relu2 codegen mapping.
csrc/​ck_tile_gemm_moe_2stages/​include/​moe_cktile2stages_common.cuh Removes the Relu2 fused activation.
csrc/​ck_tile_gemm_moe_2stages/​gen_instances.py Removes Relu2 kernel generation.
aiter/​ops/​quant.py Removes the Relu2 reference mapping.
aiter/​fused_moe.py Removes Relu2 validation and backend routing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread csrc/include/aiter_enum.h Resolved
Comment thread csrc/kernels/activation_kernels.cu Resolved
@yzhou103
yzhou103 merged commit 11e8354 into ROCm:main Oct 5, 2026
illsilin pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 6, 2026
…rinsics (#13071)

## Proposed changes

ISSUE ID: ROCm/aiter#6142

Upstreams two commits originally developed locally alongside
ROCm/aiter#5708 (relu2/Squared-ReLU MoE support for CK-Tile fused MoE
GEMM). They were applied directly to a local CK submodule checkout
rather than submitted upstream, which caused aiter's CK submodule pin to
reference an unfetchable commit — see ROCm/aiter#6142 (revert) for full
context.

1. `Add MoeRelu2 activation functor for gate-only MoE flatmm kernel` —
adds the MoeRelu2 functor to
`projects/composablekernel/include/ck_tile/ops/flatmm/kernel/moe_flatmm_kernel.hpp`,
needed for non-gated (Squared ReLU) MoE activations used by NemotronH.
2. `Fix half_t intrinsics (neg/sin/exp/log) via float round-trip for
gfx950` — fixes
`projects/composablekernel/include/ck/utility/math_v2.hpp`.

Once merged, aiter's CK submodule pin will be updated to reference this
commit, and the relu2 MoE GEMM support PR will be resubmitted against
aiter (see ROCm/aiter#5708 for the original implementation and test
results, which remain valid).

Note on test coverage: these two commits were already exercised as part
of ROCm/aiter#5708's test plan (op-level and kernel-level tests on real
gfx950 hardware, including production-scale E=512/topk=22 sweeps — see
that PR for full results). No new CK-level unit test is included in this
PR since the functor is only exercised through aiter's op_tests, not
CK's own test suite; happy to add a CK-side test if the review team
wants one here specifically.

## Checklist
- [x] I have added tests relevant to the introduced functionality, and
the unit tests are passing locally (carried over from original local
testing in ROCm/aiter#5708 — op-level and kernel-level tests passed on
real gfx950 hardware)
- [ ] I have added inline documentation
- [ ] I have run clang-format on all changed files

---------

Signed-off-by: Shantipriya Parida <[email protected]>
Co-authored-by: JiaLuo-CAN <[email protected]>
assistant-librarian Bot pushed a commit to ROCm/composable_kernel that referenced this pull request Oct 6, 2026
[composablekernel] Add MoeRelu2 activation functor and fix
 half_t intrinsics (#13071)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

## Proposed changes

ISSUE ID: ROCm/aiter#6142

Upstreams two commits originally developed locally alongside
ROCm/aiter#5708 (relu2/Squared-ReLU MoE support for CK-Tile fused MoE
GEMM). They were applied directly to a local CK submodule checkout
rather than submitted upstream, which caused aiter's CK submodule pin to
reference an unfetchable commit — see ROCm/aiter#6142 (revert) for full
context.

1. `Add MoeRelu2 activation functor for gate-only MoE flatmm kernel` —
adds the MoeRelu2 functor to
`projects/composablekernel/include/ck_tile/ops/flatmm/kernel/moe_flatmm_kernel.hpp`,
needed for non-gated (Squared ReLU) MoE activations used by NemotronH.
2. `Fix half_t intrinsics (neg/sin/exp/log) via float round-trip for
gfx950` — fixes
`projects/composablekernel/include/ck/utility/math_v2.hpp`.

Once merged, aiter's CK submodule pin will be updated to reference this
commit, and the relu2 MoE GEMM support PR will be resubmitted against
aiter (see ROCm/aiter#5708 for the original implementation and test
results, which remain valid).

Note on test coverage: these two commits were already exercised as part
of ROCm/aiter#5708's test plan (op-level and kernel-level tests on real
gfx950 hardware, including production-scale E=512/topk=22 sweeps — see
that PR for full results). No new CK-level unit test is included in this
PR since the functor is only exercised through aiter's op_tests, not
CK's own test suite; happy to add a CK-side test if the review team
wants one here specifically.

## Checklist
- [x] I have added tests relevant to the introduced functionality, and
the unit tests are passing locally (carried over from original local
testing in ROCm/aiter#5708 — op-level and kernel-level tests passed on
real gfx950 hardware)
- [ ] I have added inline documentation
- [ ] I have run clang-format on all changed files
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