Skip to content

[RL] Remove legacy RSL-RL compatibility shims - #7784

Merged
StafaH merged 5 commits into
isaac-sim:developfrom
StafaH:bump-rsl-rl-5.5.1
Oct 2, 2026
Merged

StafaH merged 5 commits into
isaac-sim:developfrom
StafaH:bump-rsl-rl-5.5.1

Conversation

@StafaH

@StafaH StafaH commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Removes the legacy RSL-RL configuration migration layer now that develop already requires rsl-rl-lib==5.5.1. Agent configurations must define the current actor/critic or student/teacher model schema directly, using distribution_cfg for stochastic models.

This also removes deprecated Isaac Lab JIT/ONNX export helpers, updates the ARL drone configuration, and drops tests for the removed compatibility path. The dependency version and lockfile are unchanged in this PR.

Type of change

  • Breaking change (existing functionality will not work without user modification)

Release backport

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

Screenshots

Not applicable.

Validation

  • uv run python -m pytest source/isaaclab_rl/test/test_entrypoints.py -q (45 passed)
  • uv run python -m pytest source/isaaclab_rl/test/export/test_leapp_recurrent_state.py source/isaaclab_rl/test/test_typed_preset_cli_train_play.py -q (17 passed)
  • ARL drone RSL-RL config resolves to the current actor/critic schema
  • uv lock --check
  • uv run python tools/changelog/cli.py check develop
  • uv run isaaclab -f

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • I have made corresponding migration guidance and changelog changes
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to the removed compatibility tests
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • My name already exists in CONTRIBUTORS.md

@StafaH

StafaH commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 13, 2026
@greptile-apps

greptile-apps Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[High risk] Removes compatibility shims for RSL-RL library upgrade.

The PR is not ready to merge while the registered H1 locomotion demo fails at import.

Findings

  1. P1 H1 demo fails at import ▶

Summary

The PR removes legacy RSL-RL configuration migration and export helpers, constructs current RSL-RL runners directly, and migrates the ARL drone agent recipe.

  • The newly registered H1 locomotion demo still imports a removed migration helper and cannot start.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Demo[Registered H1 locomotion demo] --> Import[Import RSL-RL configuration helper]
  Import --> Missing[Removed compatibility export]
  Missing --> Failure[ImportError before policy loading]
Loading

Reviews (2) · Last reviewed commit: "Remove legacy RSL-RL compatibility shims"

@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

The RSL-RL 5.5.1 migration coherently delegates export behavior upstream, but it removes two public Isaac Lab exporter helpers without the required prior deprecation period.

  • Design and architecture: Delegating JIT/ONNX export to RSL-RL reduces duplicated implementation. However, that architectural change should retain a temporary compatibility facade so existing consumers can migrate without immediate import failures.
  • API: The patch removes public export_policy_as_jit and export_policy_as_onnx symbols that were exposed through isaaclab_rl.rsl_rl.__all__. Their implementations had no prior deprecation warning, conflicting with the repository requirement to deprecate public APIs before removal. Keep deprecated forwarding wrappers for one release and direct users to the runner export methods.
  • Implementation: In-repository callers were migrated to runner.export_policy_to_jit and runner.export_policy_to_onnx, and the changelog provides migration guidance. Those updates do not preserve compatibility for external callers importing the removed helpers, which would fail immediately until forwarding wrappers are restored.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

* **Breaking:** Removed the legacy RSL-RL policy configuration classes, deprecated model fields,
and automatic configuration migration. Define ``actor`` and ``critic`` or ``student`` and
``teacher`` model configurations directly, and use ``distribution_cfg`` for stochastic models.
* **Breaking:** Removed ``export_policy_as_jit`` and ``export_policy_as_onnx`` from

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 · Api — Exporter helpers removed without prior deprecation

export_policy_as_jit and export_policy_as_onnx were listed in isaaclab_rl.rsl_rl.__all__ and their deleted implementations carried no deprecation notice or warning, so external callers now fail at import. Repository rules require a prior deprecation and migration path before removing a public API. Consider keeping thin wrappers that delegate to the runner's export_policy_to_jit/export_policy_to_onnx and emit a DeprecationWarning for one release.

@StafaH

StafaH commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 13, 2026
@StafaH StafaH changed the title [RL] Udpate RSL-RL to 5.5.1, remove compat shims, update tests [RL] Update RSL-RL to 5.5.1, remove compat shims, update tests Sep 15, 2026
@StafaH StafaH mentioned this pull request Sep 15, 2026
7 of 8 tasks
@StafaH
StafaH marked this pull request as draft September 16, 2026 08:41
kellyguo11 pushed a commit that referenced this pull request Sep 16, 2026
## Description

Updates the `rsl-rl-lib` pin from 5.4.1 to 5.5.1 and removes the
redundant direct `onnxscript` dependency, which RSL-RL already provides.

This is the dependency-only portion of #7784; no compatibility shims,
tests, or runtime code are changed.

## Type of change

- Dependency update

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Screenshots

Not applicable.

## Validation

- `uv lock --check`
- `uv run isaaclab -f`
- `uv run python -m pytest
source/isaaclab_rl/test/test_rsl_rl_cfg_deprecation.py -q` (39 passed)

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `uv run isaaclab -f`
- [x] Documentation changes are not required for this dependency-only
update
- [x] My changes generate no new warnings
- [x] Existing compatibility tests cover this dependency-only update
- [x] A changelog fragment is not required because no source package is
changed
- [x] My name already exists in `CONTRIBUTORS.md`
@StafaH StafaH changed the title [RL] Update RSL-RL to 5.5.1, remove compat shims, update tests [RL] Remove legacy RSL-RL compatibility shims Sep 29, 2026
@StafaH
StafaH marked this pull request as ready for review September 29, 2026 04:57
@StafaH

StafaH commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 29, 2026
RslRlDistillationStudentTeacherRecurrentCfg,
)
from .exporter import export_policy_as_jit, export_policy_as_onnx
from .distillation_cfg import RslRlDistillationAlgorithmCfg, RslRlDistillationRunnerCfg

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.

P1 H1 demo fails at import The registered h1-locomotion demo still imports handle_deprecated_rsl_rl_cfg from this package, but the helper is no longer exported. Running the demo raises an ImportError before it can load its policy. The demo’s import and call need to be removed as part of dropping the compatibility shim.

@ooctipus
ooctipus self-requested a review September 29, 2026 05:12
@ooctipus

Copy link
Copy Markdown
Collaborator

this can't be ported to release

@StafaH

StafaH commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 2, 2026
@StafaH

StafaH commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 2, 2026
@StafaH
StafaH merged commit ad17132 into isaac-sim:develop Oct 2, 2026
58 checks passed
@StafaH
StafaH deleted the bump-rsl-rl-5.5.1 branch October 10, 2026 19:44
AntoineRichard pushed a commit that referenced this pull request Oct 16, 2026
## Description

The release's `mpm-g1-coupling` example passes deprecated inherited
model fields directly to RSL-RL 5.5.1, so `MLPModel` rejects the
`stochastic` keyword before policy loading. Reused the existing
configuration migration and runner factory from the release's standard
RSL-RL playback entrypoint. This preserves deprecated release APIs, the
configured policy/distribution, device, seeding and strict checkpoint
loading.

Enabled the existing G1 standalone launch case, which was
unconditionally skipped for its published checkpoint download. The
opt-in simulation matrix now runs it with coarse 0.1 m voxels and two
policy steps; no duplicate test or new production test seam was added.

Fixes [NVBug 6939708](https://nvbugspro.nvidia.com/bug/6939708),
reported at `1241f4b`. This PR intentionally targets
**`release/3.0.0`**: `develop` removed the legacy configuration path in
#7784 and does not need this compatibility fix.

## Type of change

- Bug fix (non-breaking)

## Validation

The same existing launch case failed before the fix with the reported
`stochastic` `TypeError`, then passed with a real CUDA coupled
environment and the actual published
`Isaac-Velocity-Flat-G1_newtonmjwarp_none_rsl_rl.pt` checkpoint. Native
strict state loading succeeded; the test used PyTorch's restricted
weights-only loader.

```bash
HEADLESS=1 TORCH_FORCE_WEIGHTS_ONLY_LOAD=1 \
ISAACLAB_RUN_STANDALONE_SCRIPT_TESTS=1 \
ISAACLAB_STANDALONE_SCRIPT_SCOPE=examples/mpm/g1_coupling.py \
ISAACLAB_STANDALONE_VISUALIZER=none \
uv run python -m pytest source/isaaclab/test/app/test_standalone_scripts.py \
  -q -k standalone_script_runs_cleanly
```

- Enabled G1 launch: **1 passed**; owning file without launch opt-in:
**28 passed, 359 skipped**.
- Existing RSL-RL configuration migration tests: **29 passed**.
- Full `uv run isaaclab -f` and `git diff --check` passed against the
release base.
- Startup, checkpoint loading and stepping were qualified; long-horizon
walking quality and GUI variants were not.

## Checklist

- [x] Read the contribution guidelines
- [x] Ran all repository formatting/lint hooks
- [x] Validated the changed behavior and applied the test-audit criteria
- [x] Added the package changelog fragment
- [x] Preserved deprecated release APIs; no new dependency
StafaH added a commit that referenced this pull request Dec 4, 2026
… Quickstart (#9387)

# Description

The tutorial notebooks were hard to find, and both of them failed on
current `main`. This PR:

- **Makes the notebooks discoverable:** adds a short "Notebooks" section
to the README and a pointer in the Quickstart "Next steps".
- **Makes local Jupyter the primary path:** section 1 of each notebook
now starts with a single `uv run ... jupyter lab notebooks/` command run
from the repo root. Colab instructions remain as a "Using this notebook
in Google Colab:" aside. The free-tier Colab GPU cannot run these
notebooks.
- **Guards the install cell:** it now does nothing outside Colab, so
"Run All" locally no longer reinstalls torch over a checkout. In Colab
it now installs from `main` instead of `release/3.0.0`, so the installed
code matches the notebook.
- **Updates the notebooks to the current `main` APIs:**
- Removed RSL-RL helpers `check_rsl_rl_version` and
`handle_deprecated_rsl_rl_cfg` (#7784). `create_rsl_rl_runner` is now
imported from `isaaclab_rl.entrypoints.backends.runner_rsl_rl`.
  - Removed `VBDSolverCfg.rigid_compliant_alm` (#9057).
  - Renamed renderer preset `newton_renderer` to `newton_warp` (#9058).
- rsl-rl 6 logger buffers: `step_buffers["Training/mean_reward"]` and
`length_buffer`.

Fixes the reported errors:
- `ImportError: cannot import name 'check_rsl_rl_version'` in
`training.ipynb`
- `TypeError: VBDSolverCfg.__init__() got an unexpected keyword argument
'rigid_compliant_alm'` in `explore.ipynb`
- Notebooks on `main` installing Isaac Lab from `release/3.0.0` (they
now install from `main`; switch to the PyPI wheel once 3.1 is released)

Validation:
- Executed both notebooks end to end with `jupyter nbconvert --execute`,
using the documented launch environment on an RTX PRO 6000.
  - Every section renders its video.
- Training converges: mean reward reaches about 26, episodes run the
full 12 s, and velocity error is about 0.08 m/s.
- The Colab install line resolves against `main` (`uv pip install
--dry-run`). A full Colab run has not been done.

No changelog fragment is needed, since nothing under `source/` changes.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Documentation update

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `main`

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`uv run isaaclab --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md)
to any test changes
- [ ] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants