Skip to content
Open

test #658

Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions tests/multi_card_tests/pipeline_parallel/test_gpt_pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def run_pp(
"forward_backward_overlap_scheduler": forward_backward_overlap_scheduler,
"overlap_p2p_comm": True,
"enable_dynamic_shape": True,
"delay_scale_loss": True,
},
}
micro_batch_size = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def run_pp(
"forward_backward_overlap_scheduler": forward_backward_overlap_scheduler,
"overlap_p2p_comm": True,
"enable_dynamic_shape": True,
"delay_scale_loss": True,
},
}
micro_batch_size = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def run_pp(
"forward_backward_overlap_scheduler": forward_backward_overlap_scheduler,
"overlap_p2p_comm": True,
"enable_dynamic_shape": True,
"delay_scale_loss": True,
},
}
micro_batch_size = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def setUp(self):
"micro_batch_size": micro_batch_size,
}
strategy.hybrid_configs["pp_configs"].clear_every_step_cache = True
strategy.hybrid_configs["pp_configs"].delay_scale_loss = True
self.strategy = strategy

fleet.init(is_collective=True, strategy=strategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def setUp(self):
"dp_degree": self.data_parallel_size,
"mp_degree": self.model_parallel_size,
"pp_degree": self.pipeline_parallel_size,
"pp_configs": {"best_unbalanced_scheduler": True},
"pp_configs": {
"best_unbalanced_scheduler": True,
"delay_scale_loss": True,
},
}
strategy.pipeline_configs = {
"accumulate_steps": batch_size // micro_batch_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def setUp(self):
}
strategy.hybrid_configs["pp_configs"].sync_moment = True
strategy.hybrid_configs["pp_configs"].sync_param = True
strategy.hybrid_configs["pp_configs"].delay_scale_loss = True
self.strategy = strategy
fleet.init(is_collective=True, strategy=strategy)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def setUp(self):
}
strategy.hybrid_configs["pp_configs"].sync_moment = True
strategy.hybrid_configs["pp_configs"].sync_param = True
strategy.hybrid_configs["pp_configs"].delay_scale_loss = True
self.strategy = strategy

fleet.init(is_collective=True, strategy=strategy)
Expand Down
Loading