Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
Signed-off-by: byhsu <[email protected]>
  • Loading branch information
ByronHsu committed Mar 1, 2024
1 parent 18967fc commit d36ec0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/zero/partition_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ def _partition_param_sec(self, param, buffer=None, has_been_updated=False):
param.ds_secondary_tensor.narrow(0, 0, elements_to_copy_sec).copy_(
one_dim_param.narrow(0, secondary_start, elements_to_copy_sec))

# TODO: This is a temporary fix to avoid the issue of 2nd tensor all-gather happens before 2nd tensor partition is done
# TODO: This is a temporary fix to avoid the issue that 2nd tensor all-gather happens before 2nd tensor partition is done
get_accelerator().synchronize()

print_rank_0(f"{param.ds_id} partitioned type {param.dtype} dev {param.device} shape {param.shape}",
Expand Down

0 comments on commit d36ec0c

Please sign in to comment.