(self: Explorer)
| 50 | |
| 51 | def 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} |
nothing calls this directly
no test coverage detected