MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / run_both

Function run_both

tests/manager/synchronizer_test.py:98–107  ·  view source on GitHub ↗
(
    config: Config,
    train_step_time_list: List[int],
    explore_step_time_list: List[int],
)

Source from the content-addressed store, hash-verified

96
97
98def run_both(
99 config: Config,
100 train_step_time_list: List[int],
101 explore_step_time_list: List[int],
102) -> None:
103 ray.init(ignore_reinit_error=True, namespace=config.ray_namespace)
104 trainer_monkey_patch(train_step_time_list)
105 explorer_monkey_patch(explore_step_time_list)
106 both(config)
107 ray.shutdown()
108
109
110class BaseTestSynchronizer(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

bothFunction · 0.90
trainer_monkey_patchFunction · 0.85
explorer_monkey_patchFunction · 0.85
shutdownMethod · 0.45

Tested by

no test coverage detected