Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions paddleformers/transformers/glm4_moe/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ class GLMMoEModelProvider(GPTModelProvider):
router_aux_loss_coef: float = 0.001
moe_grouped_gemm: bool = False

attention_softmax_in_fp32: bool = True
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这个是不是可以默认启用就行,不需要通过开关控制?

bf16: bool = True


def eager_attention_forward(
module: nn.Layer,
Expand Down
Loading