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

Function finish_mpu_init

linear_moe/initialize.py:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 # torch.distributed initialization
53 def finish_mpu_init():
54 args = get_args()
55 # Pytorch distributed.
56 _initialize_distributed()
57
58 # Random seeds for reproducibility.
59 if args.rank == 0:
60 print("> setting random seeds to {} ...".format(args.seed))
61 _set_random_seed(args.seed, args.data_parallel_random_init)
62
63 args = get_args()
64 if args.lazy_mpu_init:

Callers 1

initialize_megatronFunction · 0.85

Calls 2

get_argsFunction · 0.90
_initialize_distributedFunction · 0.85

Tested by

no test coverage detected