Get the data parallel group the caller rank belongs to.
()
| 259 | |
| 260 | |
| 261 | def get_data_parallel_group(): |
| 262 | """Get the data parallel group the caller rank belongs to.""" |
| 263 | assert _DATA_PARALLEL_GROUP is not None, \ |
| 264 | 'data parallel group is not initialized' |
| 265 | return _DATA_PARALLEL_GROUP |
| 266 | |
| 267 | |
| 268 | def set_tensor_model_parallel_world_size(world_size): |
no outgoing calls
no test coverage detected