Cosmos3 action policy improvements (#6460)
Signed-off-by: Maciej Bala <mbala@nvidia.com> Signed-off-by: MaciejBalaNV <mbala@nvidia.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
c8bef008eb
commit
05ab509269
21 files changed
+863
-105
No files matched your search
@@ -930,6 +930,15 @@ class OmniServeCommand(CLISubcommand):
|
||||
action="store_true",
|
||||
help="Disable Cosmos3 text/video safety guardrails for this server.",
|
||||
)
|
||||
omni_config_group.add_argument(
|
||||
"--robot-openpi-idle-timeout",
|
||||
type=_nonneg_finite_float,
|
||||
default=30.0,
|
||||
help=(
|
||||
"Seconds the /v1/realtime/robot/openpi endpoint waits for the next request "
|
||||
"before closing an idle WebSocket (default: 30). Set to 0 to disable the timeout."
|
||||
),
|
||||
)
|
||||
|
||||
# Enable diffusion pipeline profiling
|
||||
omni_config_group.add_argument(
|
||||
@@ -1011,6 +1020,8 @@ def run_headless(args: TrackingNamespace) -> None:
|
||||
|
||||
# Filter down to a dict of things explicitly requested by the user
|
||||
args_dict = args.get_explicit_kwargs_dict()
|
||||
# This controls only the API-process WebSocket and is not a stage-engine option.
|
||||
args_dict.pop("robot_openpi_idle_timeout", None)
|
||||
# This CLI-only negative alias is consumed below when selecting the
|
||||
# launcher log_stats value; it is not a per-stage config override.
|
||||
args_dict.pop("disable_log_stats", None)
|
||||
|
||||
Reference in new issue
Block a user