Check if ZeRO data parallel with parameter partititioning groups are initialized.
()
| 987 | |
| 988 | |
| 989 | def _zero_param_parallel_is_initialized(): |
| 990 | """Check if ZeRO data parallel with parameter partititioning groups are initialized.""" |
| 991 | ###TODO: assert that MPU is not set |
| 992 | if _ZERO_PARAM_INTRA_PARALLEL_GROUP is None and _DATA_PARALLEL_GROUP is None: |
| 993 | return False |
| 994 | |
| 995 | |
| 996 | def _get_zero_param_intra_parallel_rank_in_mygroup(): |
nothing calls this directly
no outgoing calls
no test coverage detected