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

Function run_serve

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

Source from the content-addressed store, hash-verified

615
616
617def run_serve(config: Config, stop_event=None) -> None:
618 ray.init(
619 namespace=config.ray_namespace,
620 runtime_env={
621 "env_vars": {
622 LOG_DIR_ENV_VAR: config.log.save_dir,
623 LOG_LEVEL_ENV_VAR: "INFO",
624 }
625 },
626 )
627 try:
628 serve(config)
629 finally:
630 if stop_event:
631 stop_event.set()
632 ray.shutdown()
633
634
635@parameterized_class(

Callers

nothing calls this directly

Calls 3

serveFunction · 0.90
setMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected