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

Function run_explorer

tests/trainer/trainer_test.py:581–596  ·  view source on GitHub ↗
(config: Config, stop_event=None)

Source from the content-addressed store, hash-verified

579
580
581def run_explorer(config: Config, stop_event=None) -> None:
582 ray.init(
583 namespace=config.ray_namespace,
584 runtime_env={
585 "env_vars": {
586 LOG_DIR_ENV_VAR: config.log.save_dir,
587 LOG_LEVEL_ENV_VAR: "INFO",
588 }
589 },
590 )
591 try:
592 explore(config)
593 finally:
594 if stop_event:
595 stop_event.set()
596 ray.shutdown()
597
598
599def run_both(config: Config, stop_event=None) -> None:

Callers

nothing calls this directly

Calls 3

exploreFunction · 0.90
setMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected