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

Function new_explore_step

tests/manager/synchronizer_test.py:52–63  ·  view source on GitHub ↗
(self: Explorer)

Source from the content-addressed store, hash-verified

50
51def explorer_monkey_patch(explore_step_time_list: List[int]):
52 async def new_explore_step(self: Explorer):
53 if self.explore_step_num >= len(explore_step_time_list):
54 await self.finish_current_steps()
55 await self.save_checkpoint()
56 await self.synchronizer.set_explorer_status.remote(
57 RunningStatus.STOPPED,
58 old_status=RunningStatus.RUNNING,
59 )
60 await self.shutdown()
61 return False
62 self.explore_step_num += 1
63 return True
64
65 async def new_finish_explore_step(self: Explorer, step: int) -> None:
66 metric = {"rollout/model_version": self.model_version}

Callers

nothing calls this directly

Calls 4

finish_current_stepsMethod · 0.80
remoteMethod · 0.80
save_checkpointMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected