MCPcopy Create free account
hub / github.com/OpenSparseLLMs/Linear-MoE / _broadcast

Function _broadcast

linear_moe/data/utils.py:32–34  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

30 args = get_args()
31 tokenizer = get_tokenizer()
32 def _broadcast(item):
33 torch.distributed.broadcast(item, mpu.get_tensor_model_parallel_src_rank(),
34 group=mpu.get_tensor_model_parallel_group())
35
36 if mpu.get_tensor_model_parallel_rank() == 0:
37

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected