MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / get_tensor_model_parallel_group

Function get_tensor_model_parallel_group

deepspeed/utils/groups.py:245–250  ·  view source on GitHub ↗

Get the tensor model parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

243
244
245def 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
253def get_model_parallel_group():

Calls

no outgoing calls

Tested by

no test coverage detected