Skip to content

Commit

Permalink
Fix changed behavior of pipe_parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
yang committed May 17, 2024
1 parent 49cd41f commit 7d4093b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megatron/neox_arguments/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
if self.moe_num_experts > 1:
assert not (
Expand Down

0 comments on commit 7d4093b

Please sign in to comment.