Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hpZ with zero element (microsoft#5652)
Fix corner cases where hpz secondary partition has zero element. This ensure that `sec_numel` is at least zero. For this scenario, copying is really not necessary except that all ranks need to synchronize at the end of secondary partition. This is a good solution until [2nd tensor all-gather vs 2nd tensor partition issue ](https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/zero/partition_parameters.py#L1706) is properly fixed. Fixes: microsoft#5642 --------- Co-authored-by: Logan Adams <[email protected]> Co-authored-by: Logan Adams <[email protected]>
- Loading branch information