Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sneaxiy committed Oct 28, 2022
1 parent d68cfc7 commit 9c284df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __impl__(grad):


def register_sequence_parallel_allreduce_hooks(model, accumulation_steps):
if accumulation_steps <= 0:
if accumulation_steps <= 0 or not paddle.distributed.is_initialized():
return

mp_group = fleet.get_hybrid_communicate_group().get_model_parallel_group()
Expand Down

0 comments on commit 9c284df

Please # to comment.