Skip to content

standardize moe permute unpermute #73365

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

Merged
merged 6 commits into from
Jun 17, 2025

Conversation

pesionzhao
Copy link
Contributor

PR Category

User Experience

PR Types

Bug fixes

Description

standardize moe_unpermute and moe_permute api interface and unit test

@pesionzhao
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@pesionzhao
Copy link
Contributor Author

/re-run all-failed

@pesionzhao
Copy link
Contributor Author

/re-run all-failed

@pesionzhao pesionzhao changed the title stardardize moe permute unpermute standardize moe permute unpermute Jun 16, 2025
@paddle-bot paddle-bot bot added the contributor External developers label Jun 16, 2025
@pesionzhao
Copy link
Contributor Author

/re-run all-failed

Comment on lines +27 to 36
hidden_states: Tensor,
scale: Tensor | None,
expert_routemap_topk: Tensor,
expert_prob_topk: Tensor,
topk: int,
num_experts: int,
tokens_per_expert: list,
padding_multiplex: int,
padding_alignment: int,
name: str | None = None,
):
) -> tuple[Tensor, Tensor, Tensor, Tensor]:
if in_dynamic_or_pir_mode():
Copy link
Contributor

Choose a reason for hiding this comment

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

加API注释

Copy link
Contributor

Choose a reason for hiding this comment

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

两个python文件是不可以合并?

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾 for API annotations update

@pesionzhao
Copy link
Contributor Author

/re-run all-failed

@phlrain phlrain self-requested a review June 17, 2025 06:20
@pesionzhao
Copy link
Contributor Author

/re-run all-failed

@zyfncg zyfncg merged commit 9955a07 into PaddlePaddle:develop Jun 17, 2025
95 of 112 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants