Skip to content

Conversation

a31413510
Copy link
Contributor

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

PR changes

Description

Copy link

paddle-bot bot commented Aug 25, 2025

Thanks for your contribution!

from .moe_alltoall import moe_alltoall_forward
from .moe_allgather import moe_allgather_forward

class MOE(nn.Layer):
Copy link
Collaborator

Choose a reason for hiding this comment

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

接口设计是不是可以不设计成一个类而是继承generalinterface的方式,MOE类还是写在模型组网中

from .moe_allgather import moe_allgather_forward

class MOE(nn.Layer):
_global_mapping = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

增加单测

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.

2 participants