Check if ZeRO data parallel with parameter partititioning groups are initialized.
()
| 980 | |
| 981 | |
| 982 | def _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 | |
| 989 | def _get_zero_param_intra_parallel_rank_in_mygroup(): |
nothing calls this directly
no outgoing calls
no test coverage detected