MCPcopy
hub / github.com/PaddlePaddle/PaddleFormers / run_2cpu

Method run_2cpu

tests/parallel_launch.py:168–184  ·  view source on GitHub ↗
(self, target_file_name)

Source from the content-addressed store, hash-verified

166
167class TestMultipleWithGloo(unittest.TestCase):
168 def run_2cpu(self, target_file_name):
169
170 cluster, pod = get_cluster_from_args([0, 1]) # tmp use. for getting trainer_nranks()
171
172 procs = start_local_trainers_cpu(
173 cluster.trainers_endpoints(),
174 training_script=target_file_name,
175 training_script_args=[],
176 )
177
178 while True:
179 alive = watch_local_trainers(procs, cluster.trainers_nranks())
180
181 if not alive:
182 print("Local procs complete, POD info:{}".format(pod))
183 break
184 time.sleep(3)

Callers

nothing calls this directly

Calls 2

get_cluster_from_argsFunction · 0.70
start_local_trainers_cpuFunction · 0.70

Tested by

no test coverage detected