MCPcopy Index your code
hub / github.com/pytorch/examples / run_ps

Function run_ps

distributed/rpc/batch/parameter_server.py:106–116  ·  view source on GitHub ↗
(trainers)

Source from the content-addressed store, hash-verified

104
105
106def run_ps(trainers):
107 timed_log("Start training")
108 ps_rref = rpc.RRef(BatchUpdateParameterServer())
109 futs = []
110 for trainer in trainers:
111 futs.append(
112 rpc.rpc_async(trainer, run_trainer, args=(ps_rref,))
113 )
114
115 torch.futures.wait_all(futs)
116 timed_log("Finish training")
117
118
119def run(rank, world_size):

Callers 1

runFunction · 0.85

Calls 2

timed_logFunction · 0.85

Tested by

no test coverage detected