Repository navigation
Remove RSL-RL policy scoring and restore ANYmal PPO defaults - #9218
AntoineRichard wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
🟡 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) |
There was a problem hiding this comment.
🟡 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" |
There was a problem hiding this comment.
🟡 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.
[Medium impact] The PR appears safe to merge. SummaryRemoves unreleased RSL-RL policy scoring and restores ANYmal C flat PPO defaults.
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 |
|
Thanks, Antoine. I'm fine with redesigning 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 Second, the ANYmal agent change. With this PR, ANYmal runs on On the redesign, here's an idea that doesn't depend on RSL-RL. All the play backends ( |
|
@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. |
|
@mehdiataei I'll close this and you'll pick up the evaluation refactor. For anymal_c it's ok the way it is then. |
Description
Remove the RSL-RL
play --evaluatemode introduced in #9200 so general policy scoring can be designed and reviewed independently of neural dynamics integration. This removesscore_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_flatexperiment 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
Validation
uv run --active --no-sync isaaclab --format).origin/mainandgit diff --check: passed.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
mainChecklist