Repository navigation
[RL] Remove legacy RSL-RL compatibility shims - #7784
Conversation
|
run-ci |
|
There was a problem hiding this comment.
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_jitandexport_policy_as_onnxsymbols that were exposed throughisaaclab_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_jitandrunner.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 |
There was a problem hiding this comment.
🟡 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.
|
run-ci |
## 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`
b2a9bff to
c7cea13
Compare
|
run-ci |
| RslRlDistillationStudentTeacherRecurrentCfg, | ||
| ) | ||
| from .exporter import export_policy_as_jit, export_policy_as_onnx | ||
| from .distillation_cfg import RslRlDistillationAlgorithmCfg, RslRlDistillationRunnerCfg |
There was a problem hiding this comment.
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.
|
this can't be ported to release |
|
run-ci |
|
run-ci |
## 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
… 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
Description
Removes the legacy RSL-RL configuration migration layer now that
developalready requiresrsl-rl-lib==5.5.1. Agent configurations must define the currentactor/criticorstudent/teachermodel schema directly, usingdistribution_cfgfor 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
Release backport
developScreenshots
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)uv lock --checkuv run python tools/changelog/cli.py check developuv run isaaclab -fChecklist
uv run isaaclab -fsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.md