MCPcopy Create free account
hub / github.com/TencentARC/MotionCtrl / setup_dist

Function setup_dist

utils/utils.py:73–80  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

71
72
73def setup_dist(args):
74 if dist.is_initialized():
75 return
76 torch.cuda.set_device(args.local_rank)
77 torch.distributed.init_process_group(
78 'nccl',
79 init_method='env://'
80 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected