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

Function run_trainer

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

Source from the content-addressed store, hash-verified

82
83
84def run_trainer(config: Config, train_step_time_list: List[int]) -> None:
85 ray.init(ignore_reinit_error=True, namespace=config.ray_namespace)
86 trainer_monkey_patch(train_step_time_list)
87 train(config)
88 ray.shutdown()
89
90
91def run_explorer(config: Config, explore_step_time_list: List[int]) -> None:

Callers

nothing calls this directly

Calls 3

trainFunction · 0.90
trainer_monkey_patchFunction · 0.85
shutdownMethod · 0.45

Tested by

no test coverage detected