Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Dockerfile.rocm_72_base
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG PYTORCH_AUDIO_BRANCH="v2.11.0"
ARG PYTORCH_AUDIO_REPO="https://github.com/pytorch/audio.git"
ARG FA_BRANCH="0e60e394"
ARG FA_REPO="https://github.com/Dao-AILab/flash-attention.git"
ARG AITER_BRANCH="v0.1.25"
ARG AITER_BRANCH="v0.1.26"
ARG AITER_REPO="https://github.com/ROCm/aiter.git"
ARG MORI_BRANCH="v1.2.3.post1"
ARG MORI_REPO="https://github.com/ROCm/mori.git"
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.rocm_base
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG TRITON_VERSION=3.8.0+git669b31ac
ARG TRITON_REPO="https://github.com/ROCm/triton.git"
ARG FA_BRANCH="0e60e394"
ARG FA_REPO="https://github.com/Dao-AILab/flash-attention.git"
ARG AITER_BRANCH="v0.1.25"
ARG AITER_BRANCH="v0.1.26"
ARG AITER_REPO="https://github.com/ROCm/aiter.git"
ARG MORI_BRANCH="v1.2.3.post1"
ARG MORI_REPO="https://github.com/ROCm/mori.git"
Expand Down
5 changes: 5 additions & 0 deletions tests/kernels/moe/test_rocm_aiter_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ def ref_moe_forward(
act = F.silu(gate) * up
elif activation == "gelu":
act = F.gelu(gate) * up
elif activation == "swigluoai":
gate = gate.clamp(max=7.0)
up = up.clamp(-7.0, 7.0)
act = gate * torch.sigmoid(1.702 * gate) * (up + 1)
else:
raise ValueError(f"Unknown activation: {activation}")
output[expert_mask] = act @ w2_f[expert_idx].T
Expand Down Expand Up @@ -901,6 +905,7 @@ def test_aiter_fused_moe_mi350_mxfp4_w4a16_accuracy():
case.w2_ref,
case.topk_weights,
case.topk_ids,
activation="swigluoai",
)
out = rocm_aiter_fused_experts(
hidden_states=case.hidden_states,
Expand Down
Loading