Skip to content

Remove deprecated GR00T local + server-client policies - #662

Merged
xyao-nv merged 5 commits into
mainfrom
xyao/dev/trash_local_gr00t
May 11, 2026
Merged

xyao-nv merged 5 commits into
mainfrom
xyao/dev/trash_local_gr00t

Conversation

@xyao-nv

@xyao-nv xyao-nv commented May 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

It's the right time to trash deprecated GR00T local + server-client policies.

Detailed description

  • Why: local Gr00tClosedloopPolicy and server-client framework are superseded by Gr00tRemoteClosedloopPolicy.

  • What:
    a. delet the local + server-side policies, the isaaclab_arena/remote_policy/ framework and the test_policy CI job
    b. update doc
    c. CI new gr00t_policy pytest marker runs the two lightweight GR00T tests in the base container.

  • Impact: base-container CI now covers the kept 2 GR00T tests (hdf52lerobot, closedloop mock client)

Note

  • Gr00t docker is still being pushed as we may need it on OSMO nightly to keep GR00T closedloop tested

@xyao-nv
xyao-nv marked this pull request as ready for review May 8, 2026 06:14
@greptile-apps

greptile-apps Bot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the deprecated Gr00tClosedloopPolicy (local inference) and the remote_policy server-client framework, consolidating GR00T evaluation on Gr00tRemoteClosedloopPolicy. All existing eval-job configs are migrated to the remote policy type and the heavyweight test_policy CI job is replaced by a lightweight gr00t_policy marker step in the base container.

  • Modality config loading changed: load_gr00t_modality_config_from_file now skips loading a user-supplied modality_config_path when the embodiment tag is already present in MODALITY_CONFIGS, which silently bypasses the custom GR1 arms-only config override that multiple YAML configs depend on.
  • Base image updated: Dockerfile.isaaclab_arena adds av (PyAV) and installs gr00t from source without heavy training deps; a duplicate ffmpeg apt entry was incidentally introduced.
  • Test cleanup: test_gr00t_closedloop_policy.py, test_gr00t_deps.py, and test_replay_lerobot_action_policy.py are deleted; test_convert_hdf5_to_lerobot.py is temporarily skipped pending image rebuild.

Confidence Score: 4/5

Safe to merge with one fix: the modality config loading logic in io_utils.py silently ignores a user-supplied custom config for standard embodiment tags like GR1.

The new condition embodiment_tag_key not in MODALITY_CONFIGS in load_gr00t_modality_config_from_file short-circuits loading of the custom gr1_arms_only_data_config.py when the GR1 tag is already registered by the standard gr00t package. That file overrides the default GR1 config with an arms-only variant; without it, GR1 evaluation policies receive wrong observation/action dimensions and produce incorrect inference silently. All other deletions are clean and the CI restructuring is straightforward.

isaaclab_arena_gr00t/utils/io_utils.py — the modality config loading guard needs review.

Important Files Changed

Filename Overview
isaaclab_arena_gr00t/utils/io_utils.py load_gr00t_modality_config_from_file now skips loading a custom modality_config_path when the embodiment tag is already registered in MODALITY_CONFIGS, silently suppressing the custom GR1 arms-only config override.
.github/workflows/ci.yml Removes test_policy job (GR00T container), adds a gr00t_policy marker step in the base container; base image now installs gr00t via source.
docker/Dockerfile.isaaclab_arena Adds av (PyAV) install and includes a duplicate ffmpeg apt entry (cosmetic).
isaaclab_arena_gr00t/tests/test_convert_hdf5_to_lerobot.py Marked with pytest.mark.skip citing pyav absence, but Dockerfile.isaaclab_arena now installs av; skip reason will become stale once the image is rebuilt.
isaaclab_arena_gr00t/policy/gr00t_core.py Removes remote-pipeline helpers and cleans up documentation to reflect single pipeline.
isaaclab_arena_environments/eval_jobs_configs/droid_pnp_srl_gr00t_jobs_config.json Switches all nine jobs from Gr00tClosedloopPolicy to Gr00tRemoteClosedloopPolicy with hardcoded 127.0.0.1:5555 remote_host/remote_port.
pytest.ini Registers the new gr00t_policy marker so pytest does not warn about unknown markers.

Sequence Diagram

sequenceDiagram
    participant Client as Isaac Sim Client
    participant RCP as Gr00tRemoteClosedloopPolicy
    participant GS as GR00T Server (external)

    note over Client,GS: After this PR: only remote path remains

    Client->>RCP: get_action(obs)
    RCP->>RCP: pack observation (numpy)
    RCP->>GS: send packed obs over ZMQ/gRPC
    GS->>GS: Gr00tPolicy.get_action(obs)
    GS-->>RCP: packed action chunk
    RCP-->>Client: action tensor

    Client->>RCP: reset(env_ids)
    RCP->>GS: reset RPC
    GS-->>RCP: "{status: reset_success}"
    RCP-->>Client: done
Loading

Reviews (3): Last reviewed commit: "fix test" | Re-trigger Greptile

Comment thread .github/workflows/ci.yml Resolved
@cvolkcvolk cvolkcvolk changed the title FINALLY Trash deprecated GR00T local + server-client policies Remove deprecated GR00T local + server-client policies May 8, 2026
@cvolkcvolk

Copy link
Copy Markdown
Collaborator

Great!
One remark from my side: We now don't cover the end to end with a real gr00t server anymore, which is however something we should probably reintroduce again anytime soon and think about how to solve. This we can do maybe after all remaining (lightweight) gr00t dependencies are moved into the module isaaclab_arena_gr00t. Then this module would be responsible to hold and run the e2e tests.

Comment thread docker/run_gr00t_server.sh Resolved
@xyao-nv
xyao-nv force-pushed the xyao/dev/trash_local_gr00t branch from 8e9b7c1 to db8709c Compare May 9, 2026 05:47
Comment thread isaaclab_arena_gr00t/utils/io_utils.py Resolved
@xyao-nv
xyao-nv enabled auto-merge (squash) May 9, 2026 05:53
@xyao-nv
xyao-nv merged commit 55a8071 into main May 11, 2026
5 checks passed
@xyao-nv
xyao-nv deleted the xyao/dev/trash_local_gr00t branch May 22, 2026 20:35
cvolkcvolk added a commit that referenced this pull request Nov 17, 2026
policy_runner.py --distributed under torchrun starts one independent
process per GPU. The ranks do not merge their metrics, can write to
different timestamped directories, and rank 0 builds the report
without waiting for the other ranks. No test covers it, and its
original use, one local GR00T policy per GPU, went away with #662.

Deprecate it together with policy_runner.py instead of porting it to
the Experiment Runner:

- Warn with a FutureWarning when policy_runner.py gets --distributed,
  and mark the flag as deprecated in its help text.
- Remove the multi-GPU tabs from the static manipulation, sequential
  static manipulation, and locomanipulation evaluation pages.
- Update the runner note in the Experiments concept page and the
  run-experiment skill.

Signed-off-by: Clemens Volk <[email protected]>
cvolkcvolk added a commit that referenced this pull request Nov 18, 2026
Deprecate multi-GPU evaluation with `torchrun` and `policy_runner.py
--distributed`, and remove it from the evaluation tutorials. To use
several GPUs, run an Experiment on OSMO, which runs each Run on its own
GPU and combines the results; `policy_runner.py --distributed` still
works but prints a `FutureWarning` until `policy_runner.py` is removed.

## Why this change?

`torchrun` evaluation is one of the reasons the docs still send users to
`policy_runner.py`, which we plan to deprecate in favor of
`experiment_runner.py`. We decided to drop it rather than port it,
because its results were never combined into one evaluation.

Running in parallel itself works: `torchrun` starts one
`policy_runner.py` process per GPU, and each process runs the full step
or episode budget with `--seed` plus its rank, so more GPUs evaluate
more episodes in the same time. What doesn't work is everything after
the rollouts:

- **There is no combined result.** Each process prints its own
`Metrics:` line, and nothing adds them up into one success rate.
- **The report can miss results.** Only the process with local rank 0
calls `build_report`, right after its own `env.close()`, without waiting
for the others. It reads only its own output directory, and each process
picks a timestamped directory (`timestamped_run_dir`) after Isaac Sim
starts, so processes that get there in different seconds write to
different directories.
- **Videos can overwrite each other.** Video file names don't include
the rank, so processes that share a directory write over each other's
videos.
- **Seeds repeat across machines.** The seed offset is the rank within
one machine (`LOCAL_RANK`), so with more than one machine every machine
runs the same episodes. The tutorials only use one machine.

No test or CI job covers it. It was added in #411 for multi-GPU
benchmarking of Arena environments. Each process ran its own simulation
and its own local GR00T policy (`Gr00tClosedloopPolicy`). #662 removed
`Gr00tClosedloopPolicy`.

## What changes?

- `policy_runner.py` emits a `FutureWarning` when it gets
`--distributed`. The warning also says that ranks do not merge their
metrics and that the report from local rank 0 can miss results from
other ranks. The shared `--distributed` flag itself stays unchanged,
because `environment_registration_callback` reads it when it starts the
app for RL training.
- The "Distribute Multi-GPU Evaluation" tabs are removed from
`step_5_evaluation.rst` in `sequential_static_manipulation` and
`locomanipulation`. The single-GPU commands remain. The parallel command
on the `sequential_static_manipulation` page also gets the `--viz kit`
it was missing.
- The "Choosing a runner" note in
`docs/pages/concepts/concept_arena_experiments.rst` and the "Hand off
other workflows" list in `skills/user/run-experiment/SKILL.md` no longer
mention `torchrun`.

**Using several GPUs instead:**

- **On one machine:** evaluate in one process with more environments
(`environment_builder.num_envs` in an Experiment).
- **On several GPUs:** submit the Experiment to OSMO with
`osmo/submit_arena_experiment.py` (see the Multi-Node Evaluation page).
`ArenaExperimentWorkflow` runs each Run in its own OSMO group, starts
its policy server next to it if needed, and collects all Runs into one
Experiment result and report. A single Run uses one GPU, so spreading
one configuration over several GPUs means splitting it into several
Runs, for example with different seeds.
- **Limitation:** `Gr00tServerTask` on OSMO only serves the GR00T DROID
checkpoint, so the GR1 and G1 GR00T tutorials that lose their multi-GPU
tab cannot move to OSMO as they are.

The RL training page `reinforcement_learning/step_2_policy_training.rst`
still passes `--distributed` to `train.py`. There, Isaac Lab's training
CLI and Arena's `environment_registration_callback` both read it, and
multi-GPU training is not deprecated.

The release notes are written when a release is cut, so the deprecation
should be listed in the next release's notes.

## Validation

- Rebased onto `main` at `9b9e5b8350`. Before the rebase, CI passed: Run
tests, Run tests with subprocess, GR00T closed-loop E2E, the docs build,
and pre-commit.
- Locally, in an Arena Docker image built from `main`:
`test_distributed_evaluation_warns_about_deprecation` passes, `make
SPHINXOPTS=-W html` in `docs/` passes, and `pre-commit` passes.
- Not run locally: tests that start Isaac Sim. The image built from
`main` uses PyTorch built for CUDA 13.0, which needs a newer NVIDIA
driver than the test machine has.

---------

Signed-off-by: Clemens Volk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants