maple.cmd.cli.serve.serve_env

maple.cmd.cli.serve.serve_env(name: str = <typer.models.ArgumentInfo object>, port: int = <typer.models.OptionInfo object>, device: str = <typer.models.OptionInfo object>, num_envs: int = <typer.models.OptionInfo object>, host_port: int | None = <typer.models.OptionInfo object>) None

Serve an environment in a container.

Requests the daemon to start one or more environment containers with the specified environment backend. Multiple instances can be created for parallel evaluation.

Parameters:
  • name – Environment name or image specification.

  • port – Daemon port number.

  • device – Device to load env on (e.g., ‘cuda:0’, ‘cpu’).

  • num_envs – Number of environment instances to create.

  • host_port – Optional specific port (only valid when num_envs=1).