MCPcopy
hub / github.com/z-lab/dflash / _dist_init

Function _dist_init

dflash/benchmark.py:139–143  ·  view source on GitHub ↗
(torch_dist)

Source from the content-addressed store, hash-verified

137
138
139def _dist_init(torch_dist) -> None:
140 if "RANK" not in os.environ:
141 warnings.warn("RANK not set. Skipping distributed initialization.")
142 return
143 torch_dist.init_process_group(backend="nccl", init_method="env://")
144
145
146def _dist_size() -> int:

Callers 1

_run_transformersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected