Get the model parallel group the caller rank belongs to.
()
| 107 | |
| 108 | |
| 109 | def get_model_parallel_group(): |
| 110 | """Get the model parallel group the caller rank belongs to.""" |
| 111 | assert _MODEL_PARALLEL_GROUP is not None, \ |
| 112 | 'model parallel group is not initialized' |
| 113 | return _MODEL_PARALLEL_GROUP |
| 114 | |
| 115 | |
| 116 | def get_data_parallel_group(): |
no outgoing calls
no test coverage detected