Repository navigation
Update leapp documentation - #7050
Conversation
Greptile SummaryThe PR reorganizes and expands the LEAPP export and deployment documentation while adding integration coverage for exporting Humanoid policies across three physics presets. The checkpoint helper’s new per-spec simulation lifecycle conflicts with its supported multi-spec batching.
Confidence Score: 4/5The multi-spec checkpoint lifecycle needs to be fixed before merging because later Kit-backed specifications can fail after the first simulation application is closed. The helper explicitly supports multiple specifications in one process, but the changed loop now tears down and recreates a process-scoped Kit simulation application for each specification. Files Needing Attention: source/isaaclab_rl/test/export/leapp_initialized_checkpoints.py Important Files Changed
Sequence DiagramsequenceDiagram
participant Test as LEAPP export test
participant Helper as checkpoint helper
participant Sim as simulation runtime
participant Export as LEAPP export CLI
Test->>Helper: request checkpoint for physics preset
Helper->>Sim: launch_simulation(env_cfg)
Sim-->>Helper: initialized environment
Helper-->>Test: checkpoint path
Test->>Export: checkpoint + matching preset
Export-->>Test: LEAPP artifacts
Reviews (1): Last reviewed commit: "Docs: Consolidate LEAPP deployment guide..." | Re-trigger Greptile |
| task_dir, | ||
| ) | ||
| resolved_path_file(task_dir).write_text(str(checkpoint_path)) | ||
| with launch_simulation(env_cfg, vars(cli_args)): |
There was a problem hiding this comment.
Per-spec launch breaks Kit lifecycle
When one invocation contains multiple Kit-backed --spec entries, this loop closes the process-scoped SimulationApp after the first entry and attempts to initialize another one for the next entry, causing later checkpoints to fail and the helper to exit unsuccessfully.
There was a problem hiding this comment.
Isaac Lab Review Bot
The LEAPP documentation is reorganized into a connected policy-deployment section with dedicated deployment, Direct-workflow, and API pages, while export coverage is extended across three Humanoid physics presets. Two documentation issues need correction: the new deployment page lacks the module context needed to resolve its class reference, and the export CLI table no longer states the accepted --export_method values while mentioning PT2 without establishing its CLI token.
- Design and architecture: The documentation split is structurally coherent: hidden toctree entries connect the new subpages, and the moved Direct-workflow tutorial retains appropriate relative includes. However, the deployment page references
~envs.LeappDeploymentEnvwithout theisaaclabcurrent-module context used by sibling pages, leaving that API cross-reference unresolved. - API: The documented deployment and export commands otherwise preserve the existing CLI surface and preset forwarding. The
--export_methodtable should restore the concrete accepted tokens (onnx-dynamo,onnx-torchscript,jit-script, andjit-trace) rather than replacing them with broad format families and an unsupported or unexplained PT2 reference. - Implementation: The added Humanoid tests pass each physics preset consistently through checkpoint creation and export, while existing
_run_exportcallers retain task-derived preset behavior. The checkpoint helper now scopes initialization throughlaunch_simulation; no concrete defect in that implementation is established by the supplied evidence.
Minor fixes needed. Posted 2 actionable findings inline.
Automated review; human maintainers own approval decisions.
| Deploy Exported Policies with LEAPP | ||
| =================================== | ||
|
|
||
| Isaac Lab provides :class:`~envs.LeappDeploymentEnv` for running exported policies back in |
There was a problem hiding this comment.
🟡 Warning · Implementation — Missing currentmodule breaks class cross-reference
This page uses :class:~envs.LeappDeploymentEnv`` but, unlike the sibling exporting_policies_with_leapp.rst and the Direct-workflow page, declares no `.. currentmodule::`. Sphinx's Python domain resolves the non-refspecific target `envs.LeappDeploymentEnv` exactly, which matches no registered object, so the reference renders as plain text and emits a build warning. Add `.. currentmodule:: isaaclab` after the title, matching the sibling pages.
| @@ -192,8 +202,9 @@ backend-specific and AppLauncher arguments: | |||
| - Name for the exported graph and output directory. | |||
| * - ``--export_method`` | |||
| - ``onnx-dynamo`` | |||
| - Export backend. Choices: ``onnx-dynamo``, ``onnx-torchscript``, ``jit-script``, | |||
| ``jit-trace``. | |||
| - Export format. LEAPP supports ONNX, JIT, and PT2 export formats; see the | |||
There was a problem hiding this comment.
🔵 Suggestion · Api — CLI option loses documented accepted values
The --export_method row previously listed the accepted tokens (onnx-dynamo, onnx-torchscript, jit-script, jit-trace). No export script changes here, so the accepted values are unchanged, yet the table now only mentions "ONNX, JIT, and PT2" and defers to external docs. Readers can no longer determine valid values, and PT2 is not among the documented choices. Restore the explicit choice list.
7d8e55d to
b487646
Compare
b487646 to
8707d78
Compare
# Description Backports the following merged `develop` PRs to `release/3.0.0`: - #7220 — prune unused Docker volumes on package-test runners - #7169 — cache the resolved OVRTX Warp device - #6889 — move the OVPhysX collider cache out of the Python interpreter directory - #7345 — document the registered XR camera PiP tasks - #7050 — update and reorganize the LEAPP documentation - #7473 — register external RSL-RL tasks before agent discovery - #7467 — update the China storage profile to Isaac Sim 6.1 - #7385 — accept legal float scale values when seeding Fabric frame views from USD - #7517 — use lazy exports in `isaaclab_rl` The duplicate #7517 in the original request is included once. Seven source commits replayed cleanly. Two required release-specific reconciliation: - #7169 retains the release branch's mapped OVRTX write path, which was removed separately on `develop`, while resolving and caching one Warp device for render-product IDs, mappings, and CUDA streams. - #7050 preserves the #7494 export-backend clarification that is already present on the release branch while applying the broader LEAPP documentation overhaul. No new dependencies are added. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Performance improvement - Documentation update - CI/infrastructure update ## Release backport - [ ] <!-- backport-active-release --> This PR already targets the active release branch; do not backport it again. ## Validation - `uv run --no-project --with pytest python -m pytest -q .github/actions/run-package-tests/test_cleanup_docker_storage.py` — 10 passed - Nine isolated `isaaclab_rl` namespace/lazy-import regression cases passed - Resolved-device OVRTX mapping behavior check passed with Warp 1.16.0 - `uv run --no-project python -m compileall -q` on all changed Python modules and tests - `uv run --no-project python tools/changelog/cli.py check` against the exact `upstream/release/3.0.0` base - `pre-commit==4.6.2 run --all-files` passed all available hooks - `git diff --check upstream/release/3.0.0..HEAD` The full project test environment and documentation build cannot resolve on this macOS/arm64 host because the release lockfile supports Linux and Windows only. The Git LFS hook was also unavailable because `git-lfs` is not installed; none of the changed paths are LFS-tracked. Linux CI remains authoritative for simulator, OVRTX, Fabric, and full documentation validation. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the available formatting and static checks - [x] I have included the corresponding documentation changes - [x] Each touched source package includes its original changelog fragment - [x] Every backported commit records its source commit with `cherry picked from commit` - [x] The original contributors are preserved as commit authors --------- Signed-off-by: Zeng Qingcheng <[email protected]> Co-authored-by: myurasov-nv <[email protected]> Co-authored-by: Peter Verswyvelen <[email protected]> Co-authored-by: pv-nvidia <[email protected]> Co-authored-by: hujc <[email protected]> Co-authored-by: hougantc-nvda <[email protected]> Co-authored-by: Frank Lai NV <[email protected]> Co-authored-by: peterd-NV <[email protected]> Co-authored-by: Sheikh Dawood <[email protected]> Co-authored-by: Zeng Qingcheng <[email protected]> Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: Mustafa H <[email protected]>
Description
Updates leapp documentation as part of the doc overhaul effort. It simplifies some explanations and organizes all concepts into a self contained page with subpages under the sim2real section. Also adds tests to back claims about physics backend.
Type of change
Checklist
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