Skip to content
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

Merged
merged 6 commits into from
Jun 7, 2024
Merged

Fix changed behavior of pipe_parallel #1219

merged 6 commits into from
Jun 7, 2024

Conversation

yang
Copy link
Contributor

@yang yang commented May 16, 2024

No description provided.

@@ -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,
Copy link
Member

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.

Copy link
Member

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.

Quentin-Anthony
Quentin-Anthony previously approved these changes Jun 7, 2024
@Quentin-Anthony Quentin-Anthony merged commit 2382bd4 into main Jun 7, 2024
2 checks passed
@Quentin-Anthony Quentin-Anthony deleted the fix-pp1 branch June 7, 2024 01:27
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.

None yet

3 participants