MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / finish_mpu_init

Function finish_mpu_init

codegeex/megatron/initialize.py:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70 # torch.distributed initialization
71 def finish_mpu_init():
72 args = get_args()
73 # Pytorch distributed.
74 _initialize_distributed()
75
76 # Random seeds for reproducibility.
77 if args.rank == 0:
78 print("> setting random seeds to {} ...".format(args.seed))
79 _set_random_seed(args.seed)
80
81 args = get_args()
82 if args.lazy_mpu_init:

Callers 1

initialize_megatronFunction · 0.85

Calls 3

get_argsFunction · 0.90
_initialize_distributedFunction · 0.85
_set_random_seedFunction · 0.85

Tested by

no test coverage detected