Repository navigation
Remove deprecated GR00T local + server-client policies - #662
Conversation
Greptile SummaryThis PR removes the deprecated
Confidence Score: 4/5Safe 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 isaaclab_arena_gr00t/utils/io_utils.py — the modality config loading guard needs review. Important Files Changed
Sequence DiagramsequenceDiagram
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
Reviews (3): Last reviewed commit: "fix test" | Re-trigger Greptile |
|
Great! |
Signed-off-by: Xinjie Yao <[email protected]>
Signed-off-by: Xinjie Yao <[email protected]>
Signed-off-by: Xinjie Yao <[email protected]>
8e9b7c1 to
db8709c
Compare
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]>
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]>
Summary
It's the right time to trash deprecated GR00T local + server-client policies.
Detailed description
Why: local
Gr00tClosedloopPolicyand server-client framework are superseded byGr00tRemoteClosedloopPolicy.What:
a. delet the local + server-side policies, the
isaaclab_arena/remote_policy/framework and thetest_policyCI jobb. update doc
c. CI new
gr00t_policypytest 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