MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / init_process_groups

Function init_process_groups

deepspeed/runtime/pipe/p2p.py:31–38  ·  view source on GitHub ↗
(grid)

Source from the content-addressed store, hash-verified

29#initializes adjacent process groups
30#run this only after deepspeed.init_distributed() has been called
31def init_process_groups(grid):
32 global _groups, _grid
33 _grid = grid
34
35 assert _grid.pipe_parallel_size > 1, "There is no pipeline parallelism"
36
37 if not can_send_recv():
38 _groups = [dist.new_group(ranks=group) for group in _grid.p2p_groups]
39
40
41def _is_valid_send_recv(src_stage, dest_stage):

Callers

nothing calls this directly

Calls 2

can_send_recvFunction · 0.85
new_groupMethod · 0.45

Tested by

no test coverage detected