Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROCM MOE] Enable ROCM AITER Block MOE For DeepSeek R1/V3 #3788

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

BruceXcluding
Copy link
Contributor

@BruceXcluding BruceXcluding commented Feb 22, 2025

Motivation

This PR introduces the concept of aiter (https://github.com/ROCm/aiter) Fused Block MOE kernel on ROCm. To use this feature one has to use the env variable : SGLANG_ROCM_AITER_BLOCK_MOE=1, and to use it with ep mode, SGLANG_ROCM_AITER_BLOCK_MOE=1 + --enable-ep-moe

The new moe kernel would bring a 10 ~ 30% uplift for different isl/osl.

Prerequisite

clone
git clone --recursive https://github.com/ROCm/aiter.git or git submodule sync ; git submodule update --init --recursive

install into python
under aiter root dir run: python3 setup.py develop

Usage

JIT compiler compiles the operator which is calling.

Modifications

  • Add block scale aiter moe in fused_moe_triton/fused_moe.py
  • Add weights shuffle in fused_moe_triton/layers

Checklist

@BruceXcluding
Copy link
Contributor Author

cc @HaiShaw

@HaiShaw
Copy link
Collaborator

HaiShaw commented Feb 24, 2025

@BruceXcluding Review in progress, great work!

@HaiShaw
Copy link
Collaborator

HaiShaw commented Feb 24, 2025

No merge yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants