-
Notifications
You must be signed in to change notification settings - Fork 968
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
Fix changed behavior of pipe_parallel #1219
Conversation
megatron/neox_arguments/arguments.py
Outdated
@@ -1035,7 +1035,7 @@ def calculate_derived(self): | |||
# the sequential model without the PipelineModule wrapper to avoid the overhead it incurs | |||
self.update_value( | |||
"is_pipe_parallel", | |||
self.pipe_parallel_size > 1 and self.moe_num_experts == 1, | |||
self.pipe_parallel_size >= 1 and self.moe_num_experts == 1, |
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.
I think we can remove the line about MoE, as that's already handled via a separate check that will throw an error.
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.
That said, I don't see any harm in this code. Just some potential unfriendliness to the casual reader.
No description provided.