TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

LocalElasticAgent

class tensorplay.distributed.elastic.agent.server.LocalElasticAgent(spec, logs_specs=None, start_method: str = 'spawn', exit_barrier_timeout: float = 300, log_line_prefix_template: str | None = None, shutdown_timeout: int = 30, health_check_server=None, uninterruptible_state_timeout: float | None = None, log_dir: str | None = None)[source]

Agent managing workers on the local node.

Workers are launched through start_processes (subprocesses for command entrypoints, multiprocessing for callables) with per-rank environments carrying the elastic contract; failures and restarts are handled by the base-class run loop.

run(role: str = 'default') → RunResult

Run the agent to a terminal state, shutting down on any exit path.

On this page

Ask DeepWiki