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

Function run_both

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

Source from the content-addressed store, hash-verified

597
598
599def run_both(config: Config, stop_event=None) -> None:
600 ray.init(
601 namespace=config.ray_namespace,
602 runtime_env={
603 "env_vars": {
604 LOG_DIR_ENV_VAR: config.log.save_dir,
605 LOG_LEVEL_ENV_VAR: "INFO",
606 }
607 },
608 )
609 try:
610 both(config)
611 finally:
612 if stop_event:
613 stop_event.set()
614 ray.shutdown()
615
616
617def run_serve(config: Config, stop_event=None) -> None:

Callers

nothing calls this directly

Calls 3

bothFunction · 0.90
setMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected