Skip to content

Conversation

shen-shanshan
Copy link
Collaborator

@shen-shanshan shen-shanshan commented Sep 11, 2025

What this PR does / why we need it?

Does this PR introduce any user-facing change?

How was this patch tested?

Signed-off-by: Shanshan Shen <87969357+shen-shanshan@users.noreply.github.com>
@shen-shanshan shen-shanshan marked this pull request as draft September 11, 2025 13:04
Copy link

👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:‌‌

  • A PR should do only one thing, smaller PRs enable faster reviews.
  • Every PR should include unit tests and end-to-end tests ‌to ensure it works and is not broken by other future PRs.
  • Write the commit message by fulfilling the PR description to help reviewer and future developers understand.

If CI fails, you can run linting and testing checks locally according Contributing and Testing.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request appears to be a significant refactoring of the Fused MoE implementation for Ascend, removing a large amount of custom logic. However, the refactoring seems incomplete and introduces critical issues. The new fused_experts function is imported but not defined in the module it's imported from, which will cause an ImportError. Additionally, a call to select_experts has an incorrect number of variables for unpacking its return values, which will lead to a ValueError. I've provided comments on these critical issues with suggestions for fixes.

AlltoAllCommImpl, MC2CommImpl)
from vllm_ascend.ops.moe.token_dispatcher import setup_token_dispatchers
from vllm_ascend.utils import ACL_FORMAT_FRACTAL_NZ, is_310p
from vllm_ascend.ops.fused_moe import fused_experts, select_experts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The function fused_experts is imported from vllm_ascend.ops.fused_moe, but it is not defined in the provided vllm_ascend/ops/fused_moe.py file. This will cause an ImportError at runtime. Please ensure that fused_experts is correctly defined and exposed in vllm_ascend/ops/fused_moe.py or that the import path is corrected.

Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

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.

1 participant