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

Method get_actor

trinity/trainer/trainer.py:292–298  ·  view source on GitHub ↗

Get a Ray actor for the trainer.

(cls, config: Config)

Source from the content-addressed store, hash-verified

290
291 @classmethod
292 def get_actor(cls, config: Config):
293 """Get a Ray actor for the trainer."""
294 return (
295 ray.remote(cls)
296 .options(name=config.trainer.name, namespace=config.ray_namespace)
297 .remote(config)
298 )
299
300
301class TrainEngineWrapper(ABC):

Callers 15

benchFunction · 0.45
exploreFunction · 0.45
trainFunction · 0.45
serveFunction · 0.45
bothFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
_get_synchronizerMethod · 0.45
init_process_groupMethod · 0.45
get_modelMethod · 0.45
test_explorerMethod · 0.45

Calls 1

remoteMethod · 0.80

Tested by 10

test_explorerMethod · 0.36
test_file_writerMethod · 0.36
test_fully_async_modeMethod · 0.36
__init__Method · 0.36
__init__Method · 0.36
wait_trainer_startedMethod · 0.36
test_synchronizerMethod · 0.36