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

Method get_actor_name

trinity/common/models/allocator.py:40–42  ·  view source on GitHub ↗

Generate a unique actor name based on the model config, engine ID, and node ID.

(self, role: str, engine_id: int, node_id: int)

Source from the content-addressed store, hash-verified

38 self.logger = get_logger(__name__)
39
40 def get_actor_name(self, role: str, engine_id: int, node_id: int) -> str:
41 """Generate a unique actor name based on the model config, engine ID, and node ID."""
42 return f"{self.config.name}_{role}_model_{engine_id}_{node_id}"
43
44 def allocate_bundles(self) -> BundleResult:
45 """Allocate bundles for the rollout model and auxiliary models based on the configuration."""

Callers 4

allocate_bundlesMethod · 0.95
create_engineMethod · 0.95
get_modelMethod · 0.95
create_role_modelsFunction · 0.80

Calls

no outgoing calls

Tested by 1

create_role_modelsFunction · 0.64