Skip to content

standardize moe permute unpermute#73365

Merged
zyfncg merged 6 commits into
PaddlePaddle:developfrom
pesionzhao:fix/moe_permute_unpermute
Jun 17, 2025
Merged

standardize moe permute unpermute#73365
zyfncg merged 6 commits into
PaddlePaddle:developfrom
pesionzhao:fix/moe_permute_unpermute

Conversation

@pesionzhao
Copy link
Copy Markdown
Contributor

PR Category

User Experience

PR Types

Bug fixes

Description

standardize moe_unpermute and moe_permute api interface and unit test

@pesionzhao
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

1 similar comment
@pesionzhao
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@pesionzhao
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

加API注释

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

/re-run all-failed

@phlrain phlrain self-requested a review June 17, 2025 06:20
@pesionzhao
Copy link
Copy Markdown
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