Skip to content

Remove RSL-RL policy scoring and restore ANYmal PPO defaults - #9218

Closed
AntoineRichard wants to merge 1 commit into
mainfrom
codex/remove-rsl-rl-policy-evaluation
Closed

AntoineRichard wants to merge 1 commit into
mainfrom
codex/remove-rsl-rl-policy-evaluation

Conversation

@AntoineRichard

@AntoineRichard AntoineRichard commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Remove the RSL-RL play --evaluate mode introduced in #9200 so general policy scoring can be designed and reviewed independently of neural dynamics integration. This removes score_policy, its CLI option and execution branch, the dedicated evaluator test, and the dependent guide/README content.

Restore the ANYmal C flat PPO agent configuration to its exact contents before #9200: the concrete anymal_c_flat experiment name and inherited action clipping. The retained neural workflow test continues to check recording/deployment target bounds without coupling them to PPO settings.

Pending changelog entries remain immutable under the repository's changelog gate; new fragments record these removals and restored defaults.

Type of change

  • Removal of unreleased functionality
  • Documentation update

Validation

  • RSL-RL/shared entrypoints: 59 passed.
  • Shared playback/entrypoint helpers: 28 passed.
  • Neural workflow configuration: 8 passed.
  • RSL-RL train/play preset forwarding: 2 passed.
  • Full repository formatting/lint: passed (uv run --active --no-sync isaaclab --format).
  • Clean Sphinx HTML build with warnings as errors: passed (numeric 15-second external-inventory timeout).
  • Changelog gate against origin/main and git diff --check: passed.
  • Confirmed the ANYmal agent file exactly matches its version before Add isaaclab_neural integration for Newton neural robot dynamics #9200.

Tests used current-worktree source imports with the pinned RSL-RL 6.0.0.1 package and the optional skrl dependency. Existing Torch and legacy-material deprecation warnings remain. No simulation/GPU tests were run.

Release backport

  • Backport this pull request to the active release branch after it merges into main

Checklist

  • Read the contribution guidelines.
  • Run repository formatting and lint checks.
  • Update the corresponding documentation.
  • Validate the changed behavior with focused coverage and apply the test-audit criteria.
  • Add changelog fragments for each touched source package.
  • Contributor name already exists in CONTRIBUTORS.md.

@AntoineRichard
AntoineRichard requested a review from a team November 25, 2026 14:44
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Nov 25, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Compatibility and deprecation (3). Other reviewed categories look good.

  • PR description: The title and body match the scoring removal and default restoration; reported focused tests, formatting, Sphinx, and changelog checks cover that scope, explicitly exclude simulation/GPU validation, and make no performance claim.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: --evaluate, score_policy, neural action clipping, and the neural experiment default lose their prior contracts; preserve them through deprecation with targeted warnings, migration and removal guidance, and transition tests.
  • Implementation: Implementation looks good.
  • Style consistency: Style consistency looks good.
  • Test quality: Test quality looks good.

Significant concerns. Posted 3 inline findings.

Automated review; human maintainers own approval decisions.

parser.add_argument(
"--external_callback", default=None, help="Fully qualified path to an externally defined callback."
)
parser.add_argument(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Compatibility — Deprecate scoring before removal

Documented --evaluate commands now fail parsing, and score_policy callers lose the function. Keep both functional through deprecation with targeted warnings, migration and removal guidance, and old/new path tests.

self.experiment_name = preset(default="anymal_c_flat", newton_nerd="anymal_c_flat_nerd")
# Under physics=newton_nerd the task clips its joint targets to the range the model was recorded on. Clipping
# the actions to the same range lets the policy observe the action that was applied.
self.clip_actions = preset(default=self.clip_actions, newton_nerd=ANYMAL_C_NERD_TARGET_REACH / 0.5)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Compatibility — Transition neural action clipping

Removing the newton_nerd override changes the agent's action bound while deployment still clips joint targets. Preserve the prior default through deprecation with a targeted warning, explicit override guidance, and transition tests.

# Under physics=newton_nerd the task clips its joint targets to the range the model was recorded on. Clipping
# the actions to the same range lets the policy observe the action that was applied.
self.clip_actions = preset(default=self.clip_actions, newton_nerd=ANYMAL_C_NERD_TARGET_REACH / 0.5)
self.experiment_name = "anymal_c_flat"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Compatibility — Transition the neural experiment default

physics=newton_nerd now selects anymal_c_flat instead of anymal_c_flat_nerd, changing run and checkpoint lookup. Preserve the prior selection through deprecation with a targeted warning, explicit override guidance, and transition tests.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Removes unreleased RSL-RL policy scoring and restores ANYmal C flat PPO defaults.

  • RSL-RL playback no longer has a separate policy-scoring mode.
  • ANYmal C flat PPO keeps its standard experiment name and action clipping.

Acknowledged intent: AntoineRichard explicitly requests removal of policy scoring, restoration of the concrete experiment name and inherited clipping, and preservation of existing changelog fragments.

Reviews (1) · Last reviewed commit: "Remove RSL-RL policy scoring and restore..." · Reviewed by Greptile

@mehdiataei

Copy link
Copy Markdown
Contributor

Thanks, Antoine. I'm fine with redesigning --evaluate on its own, but I have two concerns about removing it this way.

First, once it's gone there's no way to check how a policy trained on the neural model does on the real solver, which is the main reason to train on the neural model at all. The how-to now ends at "train a policy". Could we keep --evaluate for now and mark it experimental until the replacement is ready? If it really has to go, a small scoring script under scripts/neural in this PR would also work. Either way, an issue for the redesign would be good so someone owns it.

Second, the ANYmal agent change. With this PR, ANYmal runs on newton_nerd are saved to anymal_c_flat, the same folder as normal runs, so it's easy to load a policy trained on the wrong physics. Franka and Allegro still use their own _nerd folders. The action clipping is also gone. The env still clips the joint targets to the range the model was recorded on, but the policy now observes its unclipped action, so what it sees may not be what was applied. If we don't want presets in the agent config, that's fine, but can we add agent.experiment_name=anymal_c_flat_nerd agent.clip_actions=1.5 to the neural how-to next to the training command? This PR removes the only place that value was written down.

On the redesign, here's an idea that doesn't depend on RSL-RL. All the play backends (rsl_rl, rl_games, skrl, sb3, torchrl) already build a step() function and pass it to run_playback in entrypoints/common.py. We could add a run_evaluation(step, env) beside it that runs that same function for one episode and reads the reward and termination flags from the Isaac Lab env itself (reward_buf, reset_terminated, reset_time_outs) rather than from the RL library.

@AntoineRichard

Copy link
Copy Markdown
Collaborator Author

@mehdiataei this would work for me!

On the redesign, here's an idea that doesn't depend on RSL-RL. All the play backends (rsl_rl, rl_games, skrl, sb3, torchrl) already build a step() function and pass it to run_playback in entrypoints/common.py. We could add a run_evaluation(step, env) beside it that runs that same function for one episode and reads the reward and termination flags from the Isaac Lab env itself (reward_buf, reset_terminated, reset_time_outs) rather than from the RL library.

I still think we should ask the Arena folks, this their framework is tailored for evaluation :D.

@AntoineRichard

Copy link
Copy Markdown
Collaborator Author

@mehdiataei I'll close this and you'll pick up the evaluation refactor. For anymal_c it's ok the way it is then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants