Repository navigation
[RL] Automatically resolve wandb checkpoints for RSL-RL train and play - #7925
Conversation
Passing a wandb run URL or wandb:<entity>/<project>/<run_id> shorthand as --checkpoint now downloads and loads that run's checkpoint with no extra arguments. Starting a new --logger wandb run also prints the shorthand needed to resume or play it later. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
There was a problem hiding this comment.
Isaac Lab Review Bot
The wandb checkpoint flow is wired consistently into RSL-RL train and play, but three pre-merge concerns remain: RSL-RL-specific checkpoint behavior is exposed from the core package, the new public utility API is absent from the API documentation, and the public lookup helper constructs an invalid None/<project>/<run_id> path when no entity can be resolved.
- Design and architecture: The checkpoint branch preserves existing selector, directory, file, and pretrained resolution behavior. However,
isaaclab.utils.wandbhardcodes RSL-RL conventions such asmodel_<iteration>.pt, the checkpoint cache layout, and the writer'sWANDB_RUN_IDhandshake. Since its consumers and analogous checkpoint helpers are inisaaclab_rl, placing these functions in the core public namespace creates an avoidable layering and future deprecation burden. - API: The CLI extension leaves existing
--checkpointvalues intact, but the five newly advertised public functions have no corresponding API documentation entry, contrary to the repository requirement for new public APIs. Additionally,get_model_checkpoint()documents an optional entity without defining a clear failure when neither argument nor environment provides one. - Implementation: URL and shorthand parsing, numeric checkpoint selection, optional wandb import handling, and pre-
wandb.init()run-ID pinning are coherent. The unresolved-entity path is defective, however:resolve_wandb_entity()can returnNone, after whichget_model_checkpoint()passes the literalNone/<project>/<run_id>towandb.Api.run()instead of raising an actionable validation error.
Minor fixes needed. Posted 3 actionable findings inline.
Automated review; human maintainers own approval decisions.
…point-inference # Conflicts: # source/isaaclab_rl/isaaclab_rl/entrypoints/backends/play_rsl_rl.py # source/isaaclab_rl/isaaclab_rl/entrypoints/backends/train_rsl_rl.py
|
run-ci |
|
run-ci |
|
Backported to |
#7925) # Description Ports the intent of #3426 (closed) forward to the current Isaac Lab 3.0 entrypoint architecture, with a cleaner UX: passing a wandb run URL or shorthand as `--checkpoint` now automatically downloads and loads that run's checkpoint — no extra flags required. ```bash # Play (or resume training from) a specific run, latest checkpoint: isaaclab play --rl_library rsl_rl --task <task> \ --checkpoint https://wandb.ai/<entity>/<project>/runs/<run_id> # Or the shorthand, optionally pinning a specific iteration: isaaclab play --rl_library rsl_rl --task <task> \ --checkpoint wandb:<entity>/<project>/<run_id>?checkpoint=100 ``` Starting a **new** `--logger wandb` training run also prints the exact shorthand to copy into a later `--checkpoint`: ``` [INFO] Logging to wandb run: wandb:my_entity/my_project/a1b2c3d4 [INFO] Resume or play it later with: --checkpoint wandb:my_entity/my_project/a1b2c3d4 ``` This works by pinning `WANDB_RUN_ID` before RSL-RL's writer lazily calls `wandb.init()`, so the run id is known and printable immediately instead of only after training completes. No new CLI flags were added — entity resolution reuses the existing `WANDB_ENTITY`/`WANDB_USERNAME` environment variables that `wandb` and RSL-RL's own writer already honor. ## Type of change - New feature (non-breaking change which adds functionality) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Claude Sonnet 5 <[email protected]> (cherry picked from commit 847354d)
…7530, #7899) (#7926) ## Description Backports the two changes merged into `develop` since September 19 that are still missing from `release/3.0.0`: | Source PR | Change | Source commit | | --- | --- | --- | | #7530 | Validate camera outputs against renderer capabilities before simulator startup | `31d1c53510490c76841e9c35a329574b357d9900` | | #7899 | Share native resources by construction cfg and centralize ownership and teardown | `c90c3a1097a0a669a823b880b1c8d0654d7fd267` | Includes the original regression tests, API documentation, and changelog fragments. #7530 applied without changes. #7899 required two conflict resolutions to retain the release branch's OVRTX mapping API, documentation, and tests. Of its 62 files, 59 match the merged source exactly; the other three retain those existing release additions. Release versions, lockfile entries, compiled changelogs, and documentation routing are preserved. ## Audit Checked all **33 PRs** merged from September 19, 2026 00:00 America/Los_Angeles through `develop` commit `c90c3a1097` (September 20, 21:29 Pacific), against release base `75e9c8ce12`. **31 are already backported; the remaining two are included here.** Git first-parent history and GitHub's merged PR list agree. Automatic changelog/version compilation remains branch-specific. <details> <summary>31 PRs already recorded in release</summary> | Source PRs | Existing release commit | | --- | --- | | #7777, #7608, #7895, #7872, #7831, #7834, #7838, #7840, #7903, #7674 | [`ff22c52891`](ff22c52) | | #7886 | [`41bfaee5f0`](41bfaee) | | #7042 | [`970d21ef48`](970d21e) | | #7905 | [`f0563d1f9e`](f0563d1) | | #7604 | [`dca7cfe984`](dca7cfe) | | #7610, #7603 | [`5dd2220243`](5dd2220) | | #7839 | [`b8b93bb96e`](b8b93bb) | | #6851 | [`baa025ad90`](baa025a) | | #7250 | [`f86b33e6b1`](f86b33e) | | #7910 | [`24f7b4842b`](24f7b48) | | #7810 | [`9738e096c8`](9738e09) | | #7832 | [`be270ed88b`](be270ed) | | #4679 | [`80157aa22d`](80157aa) | | #7914 | [`01b59b5a22`](01b59b5) | | #7502 | [`db7db61f60`](db7db61) | | #7918 | [`bca9dba8bb`](bca9dba) | | #7919 | [`ef1514c97c`](ef1514c) | | #7922 | [`7d6979a19e`](7d6979a) | | #7923 | [`a1dd560b98`](a1dd560) | | #7924 | [`892e51dc1d`](892e51d) | | #7925 | [`75e9c8ce12`](75e9c8c) | </details> ## Validation **745 tests passed** on the combined backport: - Core registry, configclass, replication, camera contracts, and task presets: 158 passed. - Newton manager/model/reset and coupling suites: 299 passed. - OVPhysX/OVRTX lifecycle, scene data, bindings, and material contracts: 141 passed on CPU. - Clone-plan algebra: 83 passed. - All 8 OV CUDA cases skipped in the CPU run: 8 passed on GPU. - OVPhysX ray-caster regression: 1 passed. - Kit simulation-context and PhysX scene-data tests: 54 passed. - Newton solver reset integration: 1 passed. The registry-identity and borrowed-config-field regressions both fail with the pre-backport implementations and pass with this change. Backport file-scope validation, source-file comparison, `git diff --check`, and `uv run isaaclab -f` passed. Local validation used PyTorch 2.12.0/CUDA 13.0, Isaac Sim 6.0.1.0, Newton 1.6.0rc1, and an RTX 5090. Existing deprecation/runtime warnings occurred. Full Docker CI is requested separately against the pinned environment; local checks do not claim a startup or runtime speedup. ## Checklist - [x] Read the contribution guidelines and ran formatting/changelog checks. - [x] Included source tests, documentation, and changelog fragments. - [x] Verified regression behavior and preserved release-specific changes. - [x] Recorded source commit hashes and audited the requested merge window. --------- Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: ooctipus <[email protected]>
…ng docs (#7957) Backports the three changes from the September 20–23 `develop` audit that are missing from `release/3.0.0`, alongside the existing cloning-guide backport: - #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction instead of silently discarding its configuration. Includes the original fixture cleanup and regression coverage. - #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating its live configuration. - #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation version in deployment and local multi-version builds. - #7129 (`354168560f`): clarify that `replicate_physics=False` skips the active physics context while other declared replication contexts still run. **Compatibility:** repeated `SimulationContext(...)` calls now raise. Retrieve the live context with `SimulationContext.instance()`, or call `clear_instance()` before constructing a replacement. The original major changelog fragment includes this migration. The runtime and test files match current `develop`. The docs-default backport adapts the release branch's existing redirect template, validates the target page, and preserves explicit overrides. The cloning-guide backport preserves the current release APIs; its obsolete sections were already removed. ## Release audit Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18 UTC** through `cff81e8473` (September 23), against release head `5d3e0b695e`. **32 are already covered; the remaining three are included here.** Git history, patch equivalence, GitHub's merged PR list, and remaining file differences were checked. Branch-specific version/changelog compilation and existing release-only changes are preserved. <details> <summary>Already covered PRs</summary> 26 have an equivalent patch in release: #7919, #7922, #7923, #7924, #7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929, #7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961, #7970, #7958. Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in #7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation differences were checked against the current release tree. </details> ## Validation - **276 tests passed**: SimulationContext (51, including CPU/CUDA), headless context construction (15), nine schema/fragment suites (165), four manager suites (38), and DelayBuffer (7). - Both backported regressions reproduce with the original release implementations. - Docs redirect recipe: local/deployment EA defaults, explicit override, and missing-target rejection passed with a stubbed Sphinx builder. - All 22 changed files match the intended backport scope; `uv run isaaclab -f` and `git diff --check` passed. - Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without warnings, excluding static assets as the HTML builder does. Full HTML documentation CI is running. Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim 6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings occurred; the CI jobs validate the pinned environments. The previous [docs CI failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281) was an external connection reset fetching the Omniverse intersphinx inventory, producing one warning under `-W`. That URL returned HTTP 200 when rechecked. This update starts a fresh docs build. --------- Co-authored-by: hujc <[email protected]> Co-authored-by: Zihan Xu <[email protected]>
# Description RSL-RL `train` and `play` already load checkpoints from W&B runs through `--checkpoint` (#7925), but this was only mentioned in the `--help` text. This adds it to the quickstart checkpoint table and to the RL page (checkpoint selectors and resuming training). Supersedes #8406. ## Type of change - Documentation update ## 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 - [ ] 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
Ports the intent of #3426 (closed) forward to the current Isaac Lab 3.0 entrypoint architecture, with a cleaner UX: passing a wandb run URL or shorthand as
--checkpointnow automatically downloads and loads that run's checkpoint — no extra flags required.Starting a new
--logger wandbtraining run also prints the exact shorthand to copy into a later--checkpoint:This works by pinning
WANDB_RUN_IDbefore RSL-RL's writer lazily callswandb.init(), so the run id is known and printable immediately instead of only after training completes.No new CLI flags were added — entity resolution reuses the existing
WANDB_ENTITY/WANDB_USERNAMEenvironment variables thatwandband RSL-RL's own writer already honor.Type of change
Release backport
developChecklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there