Skip to content

Commit

Permalink
part-2 cherry from: add assert overlap (PaddlePaddle#54559)
Browse files Browse the repository at this point in the history
  • Loading branch information
haohongxiang authored and wentaoyu committed Nov 28, 2023
1 parent 8538dcd commit 2314cde
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ def __init__(self, layers, hcg, strategy):
"Users can inspect this file by chrome://tracing website."
)

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 2314cde

Please sign in to comment.