-
Notifications
You must be signed in to change notification settings - Fork 2.2k
change unified fuse params #3103
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
base: develop
Are you sure you want to change the base?
Conversation
| pre_alloc_memory: 60 | ||
| tensorwise_offload_optimizer: true | ||
| use_fused_rms_norm: true | ||
| fuse_rms_norm: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deepseek v3 pretrain修改需要和张博确认
| self.freq_allocation = config.get("freq_allocation", 0) | ||
| if self.rope_3d: | ||
| assert not self.fuse_rope, "does not support fuse rope when rope_3d is on for now." | ||
| assert not self.apply_rope_fusion, "does not support fuse rope when rope_3d is on for now." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确认一下这里的修改对erniekit是否有影响
paddleformers/nn/mlp.py
Outdated
| self.gate_up_proj_name = gate_up_proj_name | ||
|
|
||
| if self.fuse_up_gate: | ||
| self.fuse_swiglu = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么这里默认为True
No description provided.