Skip to content

Commit

Permalink
add assert overlap (#54559)
Browse files Browse the repository at this point in the history
  • Loading branch information
haohongxiang authored Jun 13, 2023
1 parent 4df89e9 commit 37bda16
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def __init__(self, layers, hcg, strategy):
"pp_configs"
].enable_timer

assert (
not self._dp_comm_overlap and not self._sharding_comm_overlap
), "Comm overlap is not supported now."

if self._dp_comm_overlap:
assert self.use_data_parallel and self.num_stages > 1

Expand Down

0 comments on commit 37bda16

Please sign in to comment.