MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / sync_params

Function sync_params

src/utils/dist_util.py:62–68  ·  view source on GitHub ↗

Synchronize a sequence of Tensors across ranks from rank 0.

(params)

Source from the content-addressed store, hash-verified

60
61
62def sync_params(params):
63 """
64 Synchronize a sequence of Tensors across ranks from rank 0.
65 """
66 for p in params:
67 with th.no_grad():
68 dist.broadcast(p, 0)
69
70
71def _find_free_port():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected