Skip to content

Run Dexsuite and RL evaluations as Experiments - #1465

Closed
cvolkcvolk wants to merge 2 commits into
mainfrom
cvolk/docs/dexsuite-rl-experiment-runner
Closed

cvolkcvolk wants to merge 2 commits into
mainfrom
cvolk/docs/dexsuite-rl-experiment-runner

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closed: superseded by #1701, which moves the Franka Lift Object RL evaluation tutorial to Experiment YAMLs. The Dexsuite Lift part is obsolete because #1666 removed that workflow.

Update the Dexsuite Lift and Franka Lift Object workflow docs to evaluate with experiment_runner.py and four new Experiment YAMLs instead of policy_runner.py.

Why this change?

We plan to deprecate policy_runner.py in favor of experiment_runner.py, which reads each evaluation from an Experiment YAML file. The dexsuite_lift and reinforcement_learning example workflow pages ran the zero-action check and the RSL-RL checkpoint evaluations with policy_runner.py. The batch evaluation had readers write eval_config.json in the legacy JSON format and pass it with --eval_jobs_config.

What changes?

New Experiments under isaaclab_arena_environments/experiment_configs/reinforcement_learning/, shown with literalinclude:

  • dexsuite_lift_zero_action_experiment.yaml: the environment check in dexsuite_lift/step_1_environment_setup.rst, for Newton and, with an override, PhysX.
  • dexsuite_lift_rsl_rl_experiment.yaml: checkpoint evaluation in dexsuite_lift/step_3_evaluation.rst.
  • lift_object_rsl_rl_experiment.yaml: single and parallel checkpoint evaluation in reinforcement_learning/step_3_evaluation.rst.
  • lift_object_rsl_rl_checkpoints_experiment.yaml: the batch evaluation of two checkpoints, which replaces eval_config.json with one Run per checkpoint.

environment_builder.presets must be written PHYSX or NEWTON in an Experiment, because OmegaConf looks up enum members by name; the --presets flag of policy_runner.py takes the lower-case values physx and newton. The docs use the upper-case names. This mismatch is not fixed here.

Validation

  • CI has not finished on this PR; the run was cancelled when the PR was converted to a draft.

Locally in the Arena Docker container, at base 7050ecbc9b:

  • Every YAML composes with load_arena_experiment_from_config_file.
  • dexsuite_lift_zero_action_experiment.yaml ran end to end on Newton and on PhysX with a 2-step limit.
  • Not run end to end: the three RSL-RL Experiments, because the checkpoints are not available locally.
  • sphinx-build -b html finishes without warnings, and pre-commit passes.

Follow-up: in isaaclab_arena/policy/rsl_rl_action_policy.py, the RslRlActionPolicy docstring still shows a legacy JSON config, and the _RslRlInferenceEnvWrapper docstring still mentions policy_runner.py.

policy_runner.py is being replaced by experiment_runner.py, and
evaluation becomes YAML-only. The Dexsuite Lift pages still showed
policy_runner.py commands for the zero-action check and for the
RSL-RL checkpoint evaluation.

Add one Experiment YAML for each command group: a zero-action Run
and an RSL-RL Run that reads the checkpoint from the tutorial's
download location. The PhysX, parallel, and locally trained
checkpoint variants become runs.<name>.* overrides on the
experiment_runner.py command line.

The typed YAML only accepts the PhysicsBackend member names, so the
pages write PHYSX and NEWTON instead of the lowercase CLI values.

Signed-off-by: Clemens Volk <[email protected]>
policy_runner.py is being replaced by experiment_runner.py, and
evaluation becomes YAML-only. The lift_object RL evaluation page
still used policy_runner.py for single and parallel evaluation and
an inline legacy JSON config for the batch evaluation.

Add a one-Run Experiment YAML for the checkpoint evaluation; the
parallel variant becomes runs.<name>.* overrides. Replace the JSON
config with a checked-in YAML that has one Run per checkpoint and
shares the environment, policy type, and rollout limit. Both files
read the checkpoints of the pre-trained download, so they run as
is; the page shows how to point them at a local training run.

Signed-off-by: Clemens Volk <[email protected]>
@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Moves Dexsuite Lift and reinforcement learning evaluation examples to experiment_runner.py.

  • The Dexsuite environment check runs from a reusable Experiment YAML.
  • Dexsuite checkpoint evaluations run from one reusable Experiment YAML.
  • Lift-object single and parallel evaluations share one Experiment YAML.
  • Two lift-object checkpoints run as separate Runs in one Experiment.

No actionable issues were found. Review checks were limited to source inspection; checkpoint evaluations were not run.

Acknowledged follow-up: cvolkcvolk explicitly deferred the legacy JSON example and policy_runner.py reference in the unchanged RslRlActionPolicy docstring.

Reviews (1) · Last reviewed commit: "Use Experiment YAMLs in the RL evaluatio..." · Reviewed by Greptile

@cvolkcvolk
cvolkcvolk marked this pull request as draft October 16, 2026 08:39
@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR moves the Dexsuite Lift and RL evaluation pages from policy_runner.py to experiment_runner.py and adds four Experiment YAMLs for them. The YAMLs and the documented commands look correct for the current Experiment loader. Nothing blocking; two optional notes below.

Findings

🔵 Improvement: isaaclab_arena/evaluation/experiment_runner.py (outside this diff) — experiment_runner.py builds on the shared Arena parser, so it accepts --presets, --num_envs and --env_spacing, but it only passes --device on to the loaded Experiment. Someone who carries --presets physx over from the old commands on these pages gets Newton, with no error or warning. Could a follow-up make experiment_runner.py reject builder flags it doesn't apply? This predates the PR, and the pages already show the right runs.<name>.environment_builder.* overrides.

Test Coverage and CI Cost

🔵 No test composes the four new YAMLs. A small test next to test_getting_started_experiment_composes_typed_runs in isaaclab_arena/tests/test_experiment_hydra.py could load them with {"lift_object": LiftObjectEnvironmentCfg, "dexsuite_lift": ArenaEnvironmentCfg} and {"rsl_rl": RslRlActionPolicyCfg, "zero_action": ZeroActionPolicyCfg}, and apply the documented presets=PHYSX and num_episodes=null / num_steps=800 overrides. It needs no SimulationApp and would catch a field rename in ArenaEnvBuilderCfg (its TODO plans to restructure it) before these pages break. Optional, since most other Experiment YAMLs shown in the docs don't have such a test either.

Verdict

Ship it

@cvolkcvolk cvolkcvolk closed this Nov 18, 2026
cvolkcvolk added a commit that referenced this pull request Nov 19, 2026
Update the Franka Lift Object RL evaluation tutorial to run
`experiment_runner.py` with two new Experiment YAMLs instead of
`policy_runner.py` and an inline JSON config. Replaces the RL part of
#1465; its Dexsuite part is obsolete since #1666 removed that workflow.

## Why this change?

The page evaluated checkpoints with `policy_runner.py`, which is being
deprecated. Its batch evaluation had readers write `eval_config.json`
and pass it with `--eval_jobs_config`, and JSON Experiment loading is
about to be removed. This is the last docs page that uses a JSON
Experiment.

## What changes?

- Add `lift_object_rsl_rl_experiment.yaml`, one Run for single and
parallel evaluation. Parallel evaluation overrides `num_envs`,
`env_spacing` and `num_episodes` on the command line.
- Add `lift_object_rsl_rl_checkpoints_experiment.yaml`, one Run per
checkpoint, to replace `eval_config.json`.
- Both YAMLs read the pre-trained checkpoints from
`$MODELS_DIR/lift_object_checkpoint/`, the folder the page downloads to.
When `MODELS_DIR` is unset, they fall back to the page's default folder.
Readers who trained their own policy override `checkpoint_path`.
- The sample outputs show what the documented commands print for the
pre-trained download.
- The `RslRlActionPolicy` docstring shows a YAML Run instead of a JSON
job.

## Validation

Locally in the Arena container, with the checkpoints downloaded as the
page describes:

- Method 1, 20 episodes: success rate 1.0000.
- Method 2, 64 envs and 1024 episodes: 1.0000.
- Method 3, 1024 episodes per checkpoint: 0.9697 for `model_1000.pt`,
1.0000 for `model_1999.pt`.
- Both YAMLs compose with `MODELS_DIR` set to another folder and with it
unset, and the `checkpoint_path` override on the page replaces the
default path. Method 1 also ran with `MODELS_DIR` set.
- The docs build passes with `-W`.

The runs were headless; `--viz kit` was not tried.

---------

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.

1 participant