Get the tensor model parallel group the caller rank belongs to.
()
| 243 | |
| 244 | |
| 245 | def get_tensor_model_parallel_group(): |
| 246 | """Get the tensor model parallel group the caller rank belongs to.""" |
| 247 | |
| 248 | assert _TENSOR_MODEL_PARALLEL_GROUP is not None, \ |
| 249 | 'intra_layer_model parallel group is not initialized' |
| 250 | return _TENSOR_MODEL_PARALLEL_GROUP |
| 251 | |
| 252 | |
| 253 | def get_model_parallel_group(): |
no outgoing calls
no test coverage detected