-
Notifications
You must be signed in to change notification settings - Fork 249
[0.9.1][Feature]Moe alltoallv communication optimization for unquantized RL training sence & alltoallv support dpo #1547
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
base: v0.9.1-dev
Are you sure you want to change the base?
Conversation
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
* ut test * liscense & fix dsk dbo. Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: duyangkai <duyangkai@huawei.com>
elif envs_ascend.VLLM_ASCEND_ENABLE_MOE_ALL2ALL_SEQ: | ||
# MC2 Dispatch/Combine performs better than alltoall_seq in decoding stage. | ||
return FusedMoEState.All2AllSeq if ( | ||
ep_size < 16 or with_prefill) else FusedMoEState.MC2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there is this restriction ep_size <16
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MC2 Dispatch/Combine is still faster than alltoall_seq in decoding stage. so when ep_size >= 16, use MC2 for better performance.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
[Feature]Moe alltoallv communication optimization for unquantized RL training sence & alltoallv support dpo
Introduction
This PR introduces two key optimizations for MoE model performance:
Efficient Token Dispatcher:
alltoallv_seq
token dispatcher (adopted from NVIDIA Megatron and Ascend MindSpeed)VLLM_ASCEND_ENABLE_MOE_ALL2ALL_SEQ=1
DBO Support for alltoallv_seq:
alltoallv_seq
dispatcher to support DBO (Dual Batch Overlap)VLLM_ASCEND_ENABLE_MOE_ALL2ALL_SEQ=1
VLLM_ASCEND_ENABLE_DBO=1
Performance Improvements
Testing on Qwen3-30B-A3B shows nearly 2x throughput improvement compared to the original alltoall implementation.