MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _zero_param_parallel_is_initialized

Function _zero_param_parallel_is_initialized

deepspeed/utils/groups.py:982–986  ·  view source on GitHub ↗

Check if ZeRO data parallel with parameter partititioning groups are initialized.

()

Source from the content-addressed store, hash-verified

980
981
982def _zero_param_parallel_is_initialized():
983 """Check if ZeRO data parallel with parameter partititioning groups are initialized."""
984 ###TODO: assert that MPU is not set
985 if _ZERO_PARAM_INTRA_PARALLEL_GROUP is None and _DATA_PARALLEL_GROUP is None:
986 return False
987
988
989def _get_zero_param_intra_parallel_rank_in_mygroup():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected