From 9376446a1c3cd7755d6765133a41c7be8e20861c Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Fri, 20 Nov 2026 14:27:51 -0800 Subject: [PATCH 01/12] Configure internal Isaac Sim 6.3 packages for QA --- README_QA_INTERNAL_PACKAGES.md | 94 ++++++++++++++++++++++++++++++++++ pyproject.toml | 21 +++++--- 2 files changed, 107 insertions(+), 8 deletions(-) create mode 100644 README_QA_INTERNAL_PACKAGES.md diff --git a/README_QA_INTERNAL_PACKAGES.md b/README_QA_INTERNAL_PACKAGES.md new file mode 100644 index 000000000000..e494d4775de4 --- /dev/null +++ b/README_QA_INTERNAL_PACKAGES.md @@ -0,0 +1,94 @@ +# Isaac Lab 3.1 QA with internal Isaac Sim 6.3 + +This temporary QA patch uses internal Isaac Sim 6.3 and its standalone asset +importer. Run the commands from your Isaac Lab checkout on the NVIDIA network +or VPN, with uv installed. The patch configures the internal registry. + +## Apply the QA patch + +Start from the checkout you intend to test, with a clean working tree. Fetch the +single QA commit from the fork and cherry-pick it onto a local QA branch: + +```bash +git switch -c qa/3.1-internal-isaacsim +git fetch https://github.com/kellyguo11/IsaacLab-public.git kellyg/release-3.1.0-qa-internal-isaacsim +git cherry-pick FETCH_HEAD +``` + +The PR targets `main` until `release/3.1.0` exists. This patch changes only root +dependency configuration and this README. The committed `uv.lock` stays at the +base branch's versions; refresh it locally before installing or running QA. + +## Refresh and install the nightly dependencies + +Run this same one-line command on Linux, Windows PowerShell, or Windows Command +Prompt at the start of each QA pass: + +```bash +uv sync --extra isaacsim --extra importers -P isaacsim -P isaacsim-asset-isolated -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize +``` + +`-P` refreshes package metadata and ignores the corresponding versions in the +existing local lock. Isaac Sim and the standalone importer use +`>=6.3.0.dev0,<6.3.0rc0`, allowing new 6.3 alpha/beta nightlies without editing +the version number. The previous converter and optimizer overrides are removed +so the selected Isaac Sim packages determine their matched dependencies. + +For importer-only QA, omit `--extra isaacsim`. To test OV integrations alongside +Isaac Sim, add `--extra ov`; those packages retain the base branch's public pins. + +The command updates your local `uv.lock` and installs into `.venv`. Leave the +generated lock uncommitted and attach it to the QA report. Do not use `--frozen` +for the initial refresh: the committed lock still contains the public packages. + +If registry requests time out, set `UV_HTTP_TIMEOUT` to `120` before retrying: +`export UV_HTTP_TIMEOUT=120` in Bash, `$env:UV_HTTP_TIMEOUT="120"` in PowerShell, +or `set UV_HTTP_TIMEOUT=120` in Command Prompt. + +## Install an already resolved QA package set + +To reproduce a report, place its generated `uv.lock` in the repository root and +run this instead of refreshing: + +```bash +uv sync --frozen --extra isaacsim --extra importers +``` + +## Use the documented uv commands + +After refreshing once, the normal documented `uv run --extra isaacsim ...` +commands use the locally locked 6.3 packages. Ordinary `uv run` checks whether +the lock matches the project; it does not automatically seek a newer nightly +every run. Add `--frozen` to preserve a recorded lock, and include the same +extras as the installation when you want both integrations present. + +Print installed versions without importing or launching Isaac Sim: + +```bash +uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset-isolated', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" +``` + +## Verified package set + +The full Linux x86_64 install dry-run on November 20, 2026, resolved 445 packages, +including: + +| Package | Version | +| --- | --- | +| Isaac Sim and standalone importer | `6.3.0a43+release.58948.6d33ca13.gl` | +| URDF USD converter | `0.4.0` | +| MuJoCo USD converter | `0.9.0` | +| USD Optimize | `1.4.0` | + +Later nightly builds may specify different converter versions. Record the +installed-version output and the generated lock with every QA result. + +To discard only the locally generated lock after recording the result: + +```bash +git restore uv.lock +``` + +Refresh again before the next QA run. GitHub-hosted jobs cannot access the +internal index; frozen jobs using the committed lock exercise the public package +set rather than this QA resolution. diff --git a/pyproject.toml b/pyproject.toml index 6f28348f1f1e..aee08fa577fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -394,15 +394,20 @@ name = "pypi-public" url = "https://pypi.org/simple" explicit = true +[[tool.uv.index]] +name = "isaacsim-internal" +url = "https://artifactory.pdx.nvidia.com/artifactory/api/pypi/sw-isaacsim-pypi/simple" +explicit = false + [[tool.uv.index]] name = "pytorch-cu130" url = "https://download.pytorch.org/whl/cu130" explicit = true -# unsafe-best-match resolves NVIDIA deps with versions mismatched across -# pypi.nvidia.com and PyPI; prerelease=allow covers prerelease-only packages. +# Prefer compatible public packages before falling back to the internal Isaac Sim index. +# prerelease=allow covers prerelease-only packages. [tool.uv] -index-strategy = "unsafe-best-match" +index-strategy = "unsafe-first-match" prerelease = "allow" # Platforms Isaac Lab supports (docs/source/isaaclab/installation.rst and the # install CI matrix): Ubuntu 22.04 x86_64, Linux aarch64 (DGX Spark / Jetson), and @@ -418,6 +423,9 @@ environments = [ # ``importers`` extras pin older versions of these packages, so the overrides prevent downgrades. # Direct torch-stack pins also apply to published wheels; overrides reconcile Isaac Sim's older pins. override-dependencies = [ + # QA-only nightly ranges replace the published Isaac Sim and standalone importer pins. + "isaacsim[all,extscache]>=6.3.0.dev0,<6.3.0rc0", + "isaacsim-asset-isolated>=6.3.0.dev0,<6.3.0rc0", "numpy>=2", "mujoco~=3.17.0", "mujoco-warp~=3.17.0", @@ -427,11 +435,6 @@ override-dependencies = [ "newton-usd-schemas>=0.5.0", # isaacsim-asset-isolated and isaacsim-robot-schema 6.2 pin usd-exchange ==2.3.0. "usd-exchange==3.0.1", - # usd-optimize must share usd-exchange's OpenUSD build (26.08); bump the two together. - "usd-optimize~=1.3.1", - # Standalone importer 6.2.0.1 requires these converters; Isaac Sim 6.2 pins older releases. - "urdf-usd-converter==0.3.4", - "mujoco-usd-converter==0.7.0", "torch==2.11.0", "torchvision==0.26.0", # isaacsim-core 6.2 pins fsspec 2026.2.0, while torch 2.11 requires 2026.6.0. @@ -451,6 +454,8 @@ package = false egl-probe = { CMAKE_POLICY_VERSION_MINIMUM = "3.5" } [tool.uv.sources] +isaacsim = { index = "isaacsim-internal" } +isaacsim-asset-isolated = { index = "isaacsim-internal" } ovstorage = { index = "pypi-public" } ovphysx = { index = "pypi-public" } ovrtx = { index = "pypi-public" } From ea813e6ad49ee88a61baf3aae09aa3e77573d016 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Mon, 23 Nov 2026 18:28:09 -0800 Subject: [PATCH 02/12] Test Isaac Sim 7 assets separately from 6.3 runtime --- README_QA_INTERNAL_PACKAGES.md | 136 ++++++++++++++++++--------------- pyproject.toml | 11 +-- 2 files changed, 81 insertions(+), 66 deletions(-) diff --git a/README_QA_INTERNAL_PACKAGES.md b/README_QA_INTERNAL_PACKAGES.md index e494d4775de4..f26b89d48436 100644 --- a/README_QA_INTERNAL_PACKAGES.md +++ b/README_QA_INTERNAL_PACKAGES.md @@ -1,94 +1,108 @@ -# Isaac Lab 3.1 QA with internal Isaac Sim 6.3 +# Isaac Lab 3.1 internal package QA -This temporary QA patch uses internal Isaac Sim 6.3 and its standalone asset -importer. Run the commands from your Isaac Lab checkout on the NVIDIA network -or VPN, with uv installed. The patch configures the internal registry. +This branch tests the new standalone Isaac Sim 7 asset package and the latest +Isaac Sim 6.3 runtime candidates. Run the commands from the repository root on +the NVIDIA network or VPN. The branch configures the required registry. ## Apply the QA patch -Start from the checkout you intend to test, with a clean working tree. Fetch the -single QA commit from the fork and cherry-pick it onto a local QA branch: +From a clean checkout, create a local QA branch and apply the QA commits: ```bash -git switch -c qa/3.1-internal-isaacsim +git switch -c qa/3.1-internal-packages git fetch https://github.com/kellyguo11/IsaacLab-public.git kellyg/release-3.1.0-qa-internal-isaacsim -git cherry-pick FETCH_HEAD +git cherry-pick 15077020d6..FETCH_HEAD ``` -The PR targets `main` until `release/3.1.0` exists. This patch changes only root -dependency configuration and this README. The committed `uv.lock` stays at the -base branch's versions; refresh it locally before installing or running QA. +If the original QA commit `9376446a1c` is already applied, fetch the branch as +above and cherry-pick only the new follow-up commit shown in the PR. -## Refresh and install the nightly dependencies +The committed `uv.lock` stays identical to the PR's base. Each QA pass generates +a local lock; leave it uncommitted and attach it to the QA report. -Run this same one-line command on Linux, Windows PowerShell, or Windows Command -Prompt at the start of each QA pass: +## Choose one package set -```bash -uv sync --extra isaacsim --extra importers -P isaacsim -P isaacsim-asset-isolated -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize -``` +The new standalone `isaacsim-asset` package replaces `isaacsim-asset-isolated`. +Full Isaac Sim 6.3 also depends on a distribution named `isaacsim-asset`, but +requires its own matching 6.3 build. Therefore `--extra importers` and +`--extra isaacsim` are mutually exclusive on this QA branch. UV records separate +resolutions and rejects commands that enable both extras. -`-P` refreshes package metadata and ignores the corresponding versions in the -existing local lock. Isaac Sim and the standalone importer use -`>=6.3.0.dev0,<6.3.0rc0`, allowing new 6.3 alpha/beta nightlies without editing -the version number. The previous converter and optimizer overrides are removed -so the selected Isaac Sim packages determine their matched dependencies. +Use separate checkout environments when switching repeatedly between these +workflows. A normal sync in one checkout replaces packages from the other set. -For importer-only QA, omit `--extra isaacsim`. To test OV integrations alongside -Isaac Sim, add `--extra ov`; those packages retain the base branch's public pins. +### Standalone asset importer QA: latest 7.0 nightly -The command updates your local `uv.lock` and installs into `.venv`. Leave the -generated lock uncommitted and attach it to the QA report. Do not use `--frozen` -for the initial refresh: the committed lock still contains the public packages. +The same one-line command works in Bash, PowerShell, and Command Prompt: -If registry requests time out, set `UV_HTTP_TIMEOUT` to `120` before retrying: -`export UV_HTTP_TIMEOUT=120` in Bash, `$env:UV_HTTP_TIMEOUT="120"` in PowerShell, -or `set UV_HTTP_TIMEOUT=120` in Command Prompt. +```bash +uv sync --extra importers -P isaacsim-asset -P isaacsim-common -P isaacsim-robot-schema -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize +``` -## Install an already resolved QA package set +The `importers` extra requires `isaacsim-asset>=7.0.0.dev0,<7.0.0rc0` from the +internal index. The selected asset package determines its matching common, +schema, converter, and optimizer dependencies. Add other extras such as `test`, +`video`, or `ov` as needed. -To reproduce a report, place its generated `uv.lock` in the repository root and -run this instead of refreshing: +### Full Isaac Sim QA: latest compatible 6.3 candidate ```bash -uv sync --frozen --extra isaacsim --extra importers +uv sync --extra isaacsim -P isaacsim -P isaacsim-asset -P isaacsim-robot-schema -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize ``` -## Use the documented uv commands +The runtime override is `isaacsim[all,extscache]>=6.3.0rc3,<6.4`. This includes +RC3 and later 6.3 builds, with the matching 6.3 asset distribution. This workflow +does not test the standalone 7.0 asset package. + +## Refresh versus reproduce -After refreshing once, the normal documented `uv run --extra isaacsim ...` -commands use the locally locked 6.3 packages. Ordinary `uv run` checks whether -the lock matches the project; it does not automatically seek a newer nightly -every run. Add `--frozen` to preserve a recorded lock, and include the same -extras as the installation when you want both integrations present. +`-P` refreshes registry metadata and replaces the selected package versions in +the local lock. Run the appropriate refresh command at the start of each QA +pass. Do not use `--frozen` before this initial refresh. -Print installed versions without importing or launching Isaac Sim: +To reproduce a report, place its generated `uv.lock` at the repository root and +install the same package set without refreshing: ```bash -uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset-isolated', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" +uv sync --frozen --extra importers ``` -## Verified package set +For a full-runtime report, use `--extra isaacsim` instead. The documented +`uv run` commands work with the selected extra and locally refreshed lock. +Add `--frozen` when a test must preserve the recorded resolution. -The full Linux x86_64 install dry-run on November 20, 2026, resolved 445 packages, -including: - -| Package | Version | -| --- | --- | -| Isaac Sim and standalone importer | `6.3.0a43+release.58948.6d33ca13.gl` | -| URDF USD converter | `0.4.0` | -| MuJoCo USD converter | `0.9.0` | -| USD Optimize | `1.4.0` | - -Later nightly builds may specify different converter versions. Record the -installed-version output and the generated lock with every QA result. - -To discard only the locally generated lock after recording the result: +Print the standalone importer versions without launching a runtime: ```bash -git restore uv.lock +uv run --frozen --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim-asset', 'isaacsim-common', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" ``` -Refresh again before the next QA run. GitHub-hosted jobs cannot access the -internal index; frozen jobs using the committed lock exercise the public package -set rather than this QA resolution. +If registry requests time out, set `UV_HTTP_TIMEOUT` to `120` before retrying: +`export UV_HTTP_TIMEOUT=120` in Bash, `$env:UV_HTTP_TIMEOUT="120"` in PowerShell, +or `set UV_HTTP_TIMEOUT=120` in Command Prompt. + +## Package versions checked on November 23, 2026 + +| Package | Standalone importer QA | Full runtime QA | +| --- | --- | --- | +| Isaac Sim | Not installed | `6.3.0rc3+release.59333.3164eac4.gl` | +| Isaac Sim asset | `7.0.0a2.dev58610+gl.698c657` | Same 6.3 build as the runtime | +| Common and robot schema | Same 7.0 build as the asset package | Selected by the runtime | +| URDF USD converter | `0.4.0` | Selected by the runtime | +| MuJoCo USD converter | `0.9.0` | Selected by the runtime | +| USD Optimize | `1.3.1` | Selected by the runtime | + +The standalone set was installed on Linux x86_64 and exercised through Isaac +Lab's URDF and MJCF converters. Both produced USD geometry, joints, articulation +roots, and reusable cached outputs without launching Kit. The importer emitted +warnings for unsupported MJCF procedural textures/lights and missing actuator +gain data in the fixtures. Full Isaac Sim RC3 was validated by dependency +resolution only; Windows and ARM64 runtime execution were not tested locally. + +Record installed versions and the generated lock for every QA result, since +later nightly builds may select different dependencies. After recording the +result, `git restore uv.lock` restores the committed public-package lock; refresh +again before the next QA pass. + +GitHub-hosted runners cannot access the internal registry. Frozen jobs using +the committed lock exercise the public package set rather than these QA builds. diff --git a/pyproject.toml b/pyproject.toml index aee08fa577fd..56e0797160de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ video = ["moviepy>=1.0.3,<2.0.0.dev0"] optix = ["newton[optix]"] importers = [ - "isaacsim-asset-isolated==6.2.0.1", + "isaacsim-asset>=7.0.0.dev0,<7.0.0rc0", "tinyobjloader==2.0.0rc13", ] @@ -409,6 +409,8 @@ explicit = true [tool.uv] index-strategy = "unsafe-first-match" prerelease = "allow" +# The standalone 7.0 importer replaces the asset distribution pinned by full Isaac Sim 6.3. +conflicts = [[{ extra = "importers" }, { extra = "isaacsim" }]] # Platforms Isaac Lab supports (docs/source/isaaclab/installation.rst and the # install CI matrix): Ubuntu 22.04 x86_64, Linux aarch64 (DGX Spark / Jetson), and # Windows 11 x86_64. Restricting the resolution universe keeps macOS and other @@ -423,9 +425,8 @@ environments = [ # ``importers`` extras pin older versions of these packages, so the overrides prevent downgrades. # Direct torch-stack pins also apply to published wheels; overrides reconcile Isaac Sim's older pins. override-dependencies = [ - # QA-only nightly ranges replace the published Isaac Sim and standalone importer pins. - "isaacsim[all,extscache]>=6.3.0.dev0,<6.3.0rc0", - "isaacsim-asset-isolated>=6.3.0.dev0,<6.3.0rc0", + # QA-only release-compatible range includes the latest Isaac Sim 6.3 candidates. + "isaacsim[all,extscache]>=6.3.0rc3,<6.4", "numpy>=2", "mujoco~=3.17.0", "mujoco-warp~=3.17.0", @@ -455,7 +456,7 @@ egl-probe = { CMAKE_POLICY_VERSION_MINIMUM = "3.5" } [tool.uv.sources] isaacsim = { index = "isaacsim-internal" } -isaacsim-asset-isolated = { index = "isaacsim-internal" } +isaacsim-asset = { index = "isaacsim-internal" } ovstorage = { index = "pypi-public" } ovphysx = { index = "pypi-public" } ovrtx = { index = "pypi-public" } From a7a3269008b72580a30c095aace2da95e88bfbb5 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Mon, 23 Nov 2026 18:37:54 -0800 Subject: [PATCH 03/12] Revert Isaac Sim 7 asset QA migration This reverts commit ea813e6ad49ee88a61baf3aae09aa3e77573d016. Restore the prior Isaac Sim 6.3 and isolated importer configuration while compatibility is investigated. --- README_QA_INTERNAL_PACKAGES.md | 136 +++++++++++++++------------------ pyproject.toml | 11 ++- 2 files changed, 66 insertions(+), 81 deletions(-) diff --git a/README_QA_INTERNAL_PACKAGES.md b/README_QA_INTERNAL_PACKAGES.md index f26b89d48436..34d38f2f48bd 100644 --- a/README_QA_INTERNAL_PACKAGES.md +++ b/README_QA_INTERNAL_PACKAGES.md @@ -1,108 +1,94 @@ -# Isaac Lab 3.1 internal package QA +# Isaac Lab 3.1 QA with internal Isaac Sim 6.3 -This branch tests the new standalone Isaac Sim 7 asset package and the latest -Isaac Sim 6.3 runtime candidates. Run the commands from the repository root on -the NVIDIA network or VPN. The branch configures the required registry. +This temporary QA patch uses internal Isaac Sim 6.3 and its standalone asset +importer. Run the commands from your Isaac Lab checkout on the NVIDIA network +or VPN, with uv installed. The patch configures the internal registry. ## Apply the QA patch -From a clean checkout, create a local QA branch and apply the QA commits: +Start from the checkout you intend to test, with a clean working tree. Fetch the +original QA commit from the fork and cherry-pick it onto a local QA branch: ```bash -git switch -c qa/3.1-internal-packages +git switch -c qa/3.1-internal-isaacsim git fetch https://github.com/kellyguo11/IsaacLab-public.git kellyg/release-3.1.0-qa-internal-isaacsim -git cherry-pick 15077020d6..FETCH_HEAD +git cherry-pick 9376446a1c3cd7755d6765133a41c7be8e20861c ``` -If the original QA commit `9376446a1c` is already applied, fetch the branch as -above and cherry-pick only the new follow-up commit shown in the PR. +The PR targets `main` until `release/3.1.0` exists. This patch changes only root +dependency configuration and this README. The committed `uv.lock` stays at the +base branch's versions; refresh it locally before installing or running QA. -The committed `uv.lock` stays identical to the PR's base. Each QA pass generates -a local lock; leave it uncommitted and attach it to the QA report. +## Refresh and install the nightly dependencies -## Choose one package set +Run this same one-line command on Linux, Windows PowerShell, or Windows Command +Prompt at the start of each QA pass: -The new standalone `isaacsim-asset` package replaces `isaacsim-asset-isolated`. -Full Isaac Sim 6.3 also depends on a distribution named `isaacsim-asset`, but -requires its own matching 6.3 build. Therefore `--extra importers` and -`--extra isaacsim` are mutually exclusive on this QA branch. UV records separate -resolutions and rejects commands that enable both extras. +```bash +uv sync --extra isaacsim --extra importers -P isaacsim -P isaacsim-asset-isolated -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize +``` -Use separate checkout environments when switching repeatedly between these -workflows. A normal sync in one checkout replaces packages from the other set. +`-P` refreshes package metadata and ignores the corresponding versions in the +existing local lock. Isaac Sim and the standalone importer use +`>=6.3.0.dev0,<6.3.0rc0`, allowing new 6.3 alpha/beta nightlies without editing +the version number. The previous converter and optimizer overrides are removed +so the selected Isaac Sim packages determine their matched dependencies. -### Standalone asset importer QA: latest 7.0 nightly +For importer-only QA, omit `--extra isaacsim`. To test OV integrations alongside +Isaac Sim, add `--extra ov`; those packages retain the base branch's public pins. -The same one-line command works in Bash, PowerShell, and Command Prompt: +The command updates your local `uv.lock` and installs into `.venv`. Leave the +generated lock uncommitted and attach it to the QA report. Do not use `--frozen` +for the initial refresh: the committed lock still contains the public packages. -```bash -uv sync --extra importers -P isaacsim-asset -P isaacsim-common -P isaacsim-robot-schema -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize -``` +If registry requests time out, set `UV_HTTP_TIMEOUT` to `120` before retrying: +`export UV_HTTP_TIMEOUT=120` in Bash, `$env:UV_HTTP_TIMEOUT="120"` in PowerShell, +or `set UV_HTTP_TIMEOUT=120` in Command Prompt. -The `importers` extra requires `isaacsim-asset>=7.0.0.dev0,<7.0.0rc0` from the -internal index. The selected asset package determines its matching common, -schema, converter, and optimizer dependencies. Add other extras such as `test`, -`video`, or `ov` as needed. +## Install an already resolved QA package set -### Full Isaac Sim QA: latest compatible 6.3 candidate +To reproduce a report, place its generated `uv.lock` in the repository root and +run this instead of refreshing: ```bash -uv sync --extra isaacsim -P isaacsim -P isaacsim-asset -P isaacsim-robot-schema -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize +uv sync --frozen --extra isaacsim --extra importers ``` -The runtime override is `isaacsim[all,extscache]>=6.3.0rc3,<6.4`. This includes -RC3 and later 6.3 builds, with the matching 6.3 asset distribution. This workflow -does not test the standalone 7.0 asset package. - -## Refresh versus reproduce +## Use the documented uv commands -`-P` refreshes registry metadata and replaces the selected package versions in -the local lock. Run the appropriate refresh command at the start of each QA -pass. Do not use `--frozen` before this initial refresh. +After refreshing once, the normal documented `uv run --extra isaacsim ...` +commands use the locally locked 6.3 packages. Ordinary `uv run` checks whether +the lock matches the project; it does not automatically seek a newer nightly +every run. Add `--frozen` to preserve a recorded lock, and include the same +extras as the installation when you want both integrations present. -To reproduce a report, place its generated `uv.lock` at the repository root and -install the same package set without refreshing: +Print installed versions without importing or launching Isaac Sim: ```bash -uv sync --frozen --extra importers +uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset-isolated', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" ``` -For a full-runtime report, use `--extra isaacsim` instead. The documented -`uv run` commands work with the selected extra and locally refreshed lock. -Add `--frozen` when a test must preserve the recorded resolution. +## Verified package set -Print the standalone importer versions without launching a runtime: +The full Linux x86_64 install dry-run on November 20, 2026, resolved 445 packages, +including: + +| Package | Version | +| --- | --- | +| Isaac Sim and standalone importer | `6.3.0a43+release.58948.6d33ca13.gl` | +| URDF USD converter | `0.4.0` | +| MuJoCo USD converter | `0.9.0` | +| USD Optimize | `1.4.0` | + +Later nightly builds may specify different converter versions. Record the +installed-version output and the generated lock with every QA result. + +To discard only the locally generated lock after recording the result: ```bash -uv run --frozen --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim-asset', 'isaacsim-common', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" +git restore uv.lock ``` -If registry requests time out, set `UV_HTTP_TIMEOUT` to `120` before retrying: -`export UV_HTTP_TIMEOUT=120` in Bash, `$env:UV_HTTP_TIMEOUT="120"` in PowerShell, -or `set UV_HTTP_TIMEOUT=120` in Command Prompt. - -## Package versions checked on November 23, 2026 - -| Package | Standalone importer QA | Full runtime QA | -| --- | --- | --- | -| Isaac Sim | Not installed | `6.3.0rc3+release.59333.3164eac4.gl` | -| Isaac Sim asset | `7.0.0a2.dev58610+gl.698c657` | Same 6.3 build as the runtime | -| Common and robot schema | Same 7.0 build as the asset package | Selected by the runtime | -| URDF USD converter | `0.4.0` | Selected by the runtime | -| MuJoCo USD converter | `0.9.0` | Selected by the runtime | -| USD Optimize | `1.3.1` | Selected by the runtime | - -The standalone set was installed on Linux x86_64 and exercised through Isaac -Lab's URDF and MJCF converters. Both produced USD geometry, joints, articulation -roots, and reusable cached outputs without launching Kit. The importer emitted -warnings for unsupported MJCF procedural textures/lights and missing actuator -gain data in the fixtures. Full Isaac Sim RC3 was validated by dependency -resolution only; Windows and ARM64 runtime execution were not tested locally. - -Record installed versions and the generated lock for every QA result, since -later nightly builds may select different dependencies. After recording the -result, `git restore uv.lock` restores the committed public-package lock; refresh -again before the next QA pass. - -GitHub-hosted runners cannot access the internal registry. Frozen jobs using -the committed lock exercise the public package set rather than these QA builds. +Refresh again before the next QA run. GitHub-hosted jobs cannot access the +internal index; frozen jobs using the committed lock exercise the public package +set rather than this QA resolution. diff --git a/pyproject.toml b/pyproject.toml index 56e0797160de..aee08fa577fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ video = ["moviepy>=1.0.3,<2.0.0.dev0"] optix = ["newton[optix]"] importers = [ - "isaacsim-asset>=7.0.0.dev0,<7.0.0rc0", + "isaacsim-asset-isolated==6.2.0.1", "tinyobjloader==2.0.0rc13", ] @@ -409,8 +409,6 @@ explicit = true [tool.uv] index-strategy = "unsafe-first-match" prerelease = "allow" -# The standalone 7.0 importer replaces the asset distribution pinned by full Isaac Sim 6.3. -conflicts = [[{ extra = "importers" }, { extra = "isaacsim" }]] # Platforms Isaac Lab supports (docs/source/isaaclab/installation.rst and the # install CI matrix): Ubuntu 22.04 x86_64, Linux aarch64 (DGX Spark / Jetson), and # Windows 11 x86_64. Restricting the resolution universe keeps macOS and other @@ -425,8 +423,9 @@ environments = [ # ``importers`` extras pin older versions of these packages, so the overrides prevent downgrades. # Direct torch-stack pins also apply to published wheels; overrides reconcile Isaac Sim's older pins. override-dependencies = [ - # QA-only release-compatible range includes the latest Isaac Sim 6.3 candidates. - "isaacsim[all,extscache]>=6.3.0rc3,<6.4", + # QA-only nightly ranges replace the published Isaac Sim and standalone importer pins. + "isaacsim[all,extscache]>=6.3.0.dev0,<6.3.0rc0", + "isaacsim-asset-isolated>=6.3.0.dev0,<6.3.0rc0", "numpy>=2", "mujoco~=3.17.0", "mujoco-warp~=3.17.0", @@ -456,7 +455,7 @@ egl-probe = { CMAKE_POLICY_VERSION_MINIMUM = "3.5" } [tool.uv.sources] isaacsim = { index = "isaacsim-internal" } -isaacsim-asset = { index = "isaacsim-internal" } +isaacsim-asset-isolated = { index = "isaacsim-internal" } ovstorage = { index = "pypi-public" } ovphysx = { index = "pypi-public" } ovrtx = { index = "pypi-public" } From 212453f558e7d8ce6ceaf28ad04d003225e74057 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Tue, 24 Nov 2026 10:10:21 -0800 Subject: [PATCH 04/12] Allow asset 7.x alongside Isaac Sim 6.3 for QA --- README_QA_INTERNAL_PACKAGES.md | 67 ++++++++++++++++++++++------------ pyproject.toml | 10 ++--- 2 files changed, 48 insertions(+), 29 deletions(-) diff --git a/README_QA_INTERNAL_PACKAGES.md b/README_QA_INTERNAL_PACKAGES.md index 34d38f2f48bd..82a91ceaa583 100644 --- a/README_QA_INTERNAL_PACKAGES.md +++ b/README_QA_INTERNAL_PACKAGES.md @@ -1,23 +1,24 @@ # Isaac Lab 3.1 QA with internal Isaac Sim 6.3 -This temporary QA patch uses internal Isaac Sim 6.3 and its standalone asset -importer. Run the commands from your Isaac Lab checkout on the NVIDIA network -or VPN, with uv installed. The patch configures the internal registry. +This temporary QA patch uses internal Isaac Sim 6.3 with the latest standalone +`isaacsim-asset` package, including 7.0 builds. Run the commands from your Isaac +Lab checkout on the NVIDIA network or VPN, with uv installed. The patch +configures the internal registry. ## Apply the QA patch -Start from the checkout you intend to test, with a clean working tree. Fetch the -original QA commit from the fork and cherry-pick it onto a local QA branch: +Start with a clean working tree and create a local branch from the QA fork: ```bash -git switch -c qa/3.1-internal-isaacsim git fetch https://github.com/kellyguo11/IsaacLab-public.git kellyg/release-3.1.0-qa-internal-isaacsim -git cherry-pick 9376446a1c3cd7755d6765133a41c7be8e20861c +git switch -c qa/3.1-internal-isaacsim FETCH_HEAD ``` -The PR targets `main` until `release/3.1.0` exists. This patch changes only root -dependency configuration and this README. The committed `uv.lock` stays at the -base branch's versions; refresh it locally before installing or running QA. +For cherry-picking only the QA changes onto another base, use the commits listed +in [the draft PR](https://github.com/isaac-sim/IsaacLab/pull/9137). The PR targets +`main` until `release/3.1.0` exists. The QA changes affect only root dependency +configuration and this README. The committed `uv.lock` stays at the base +branch's versions; refresh it locally before installing or running QA. ## Refresh and install the nightly dependencies @@ -25,14 +26,21 @@ Run this same one-line command on Linux, Windows PowerShell, or Windows Command Prompt at the start of each QA pass: ```bash -uv sync --extra isaacsim --extra importers -P isaacsim -P isaacsim-asset-isolated -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize +uv sync --extra isaacsim --extra importers -P isaacsim -P isaacsim-asset -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize ``` `-P` refreshes package metadata and ignores the corresponding versions in the -existing local lock. Isaac Sim and the standalone importer use -`>=6.3.0.dev0,<6.3.0rc0`, allowing new 6.3 alpha/beta nightlies without editing -the version number. The previous converter and optimizer overrides are removed -so the selected Isaac Sim packages determine their matched dependencies. +existing local lock. Isaac Sim uses `>=6.3.0rc3,<6.4`, including new release +candidates. The asset requirement and UV override use `>=6.3.0.dev0,<8`, allowing +both 6.3 and 7.x builds. The override replaces Isaac Sim's exact 6.3 asset +requirement; widening the ordinary requirement alone would still conflict with +that pin. With `-P isaacsim-asset`, UV selects the newest available asset build +in the range, currently 7.0, independently of the runtime's asset pin. + +The range alone does not upgrade an existing local lock: keep `-P` in the nightly +refresh command. `isaacsim-asset-isolated` is no longer requested. The selected +asset package supplies its matched converter, common, schema, and optimizer +dependencies. For importer-only QA, omit `--extra isaacsim`. To test OV integrations alongside Isaac Sim, add `--extra ov`; those packages retain the base branch's public pins. @@ -57,28 +65,39 @@ uv sync --frozen --extra isaacsim --extra importers ## Use the documented uv commands After refreshing once, the normal documented `uv run --extra isaacsim ...` -commands use the locally locked 6.3 packages. Ordinary `uv run` checks whether -the lock matches the project; it does not automatically seek a newer nightly -every run. Add `--frozen` to preserve a recorded lock, and include the same -extras as the installation when you want both integrations present. +commands use the locally locked 6.3 runtime and 7.0 asset packages. Ordinary +`uv run` checks whether the lock matches the project; it does not automatically +seek a newer nightly every run. Add `--frozen` to preserve a recorded lock, and +include the same extras as the installation when you want both integrations +present. + +When Kit is running, Isaac Lab enables and imports the Kit URDF/MJCF extensions. +Without Kit, it imports the standalone asset wheel. The pip override selects the +installed asset distribution; it does not override Kit's extension selection. +In the combined smoke test, Kit downloaded its importer extensions from NVIDIA's +extension registry on first use. Allow access to that registry as well as the +internal pip registry when testing Kit conversions. Print installed versions without importing or launching Isaac Sim: ```bash -uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset-isolated', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" +uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset', 'isaacsim-common', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" ``` ## Verified package set -The full Linux x86_64 install dry-run on November 20, 2026, resolved 445 packages, -including: +The combined Linux x86_64 installation on November 24, 2026, resolved 449 +packages. URDF and MJCF conversions passed both with Kit running and without +Kit. The dependency-configuration tests passed (13 tests), as did the repository +formatting and lint checks. The installed versions included: | Package | Version | | --- | --- | -| Isaac Sim and standalone importer | `6.3.0a43+release.58948.6d33ca13.gl` | +| Isaac Sim | `6.3.0rc4+release.59505.a720a5f8.gl` | +| Asset, common, and robot schema | `7.0.0a2.dev58610+gl.698c657` | | URDF USD converter | `0.4.0` | | MuJoCo USD converter | `0.9.0` | -| USD Optimize | `1.4.0` | +| USD Optimize | `1.3.1` | Later nightly builds may specify different converter versions. Record the installed-version output and the generated lock with every QA result. diff --git a/pyproject.toml b/pyproject.toml index 75f97af023b8..6910732b9b1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ video = ["moviepy>=1.0.3,<2.0.0.dev0"] optix = ["newton[optix]"] importers = [ - "isaacsim-asset-isolated==6.2.0.1", + "isaacsim-asset>=6.3.0.dev0,<8", "tinyobjloader==2.0.0rc13", ] @@ -433,9 +433,9 @@ environments = [ # ``importers`` extras pin older versions of these packages, so the overrides prevent downgrades. # Direct torch-stack pins also apply to published wheels; overrides reconcile Isaac Sim's older pins. override-dependencies = [ - # QA-only nightly ranges replace the published Isaac Sim and standalone importer pins. - "isaacsim[all,extscache]>=6.3.0.dev0,<6.3.0rc0", - "isaacsim-asset-isolated>=6.3.0.dev0,<6.3.0rc0", + # QA-only overrides allow the latest asset wheel to replace Isaac Sim's exact asset pin. + "isaacsim[all,extscache]>=6.3.0rc3,<6.4", + "isaacsim-asset>=6.3.0.dev0,<8", # Capture CloudXR requires >=17.3; override Isaac Sim 6.2's <15 and Viser 1.0's <17 caps. "websockets>=17.3", "numpy>=2", @@ -467,7 +467,7 @@ egl-probe = { CMAKE_POLICY_VERSION_MINIMUM = "3.5" } [tool.uv.sources] isaacsim = { index = "isaacsim-internal" } -isaacsim-asset-isolated = { index = "isaacsim-internal" } +isaacsim-asset = { index = "isaacsim-internal" } ovstorage = { index = "pypi-public" } ovphysx = { index = "pypi-public" } ovrtx = { index = "pypi-public" } From 5aa49b987145fdbfc2b16c93ad27becc51b6fac7 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Wed, 25 Nov 2026 08:36:07 -0800 Subject: [PATCH 05/12] Use public isolated importers for Isaac Sim 6.3 QA --- README_QA_INTERNAL_PACKAGES.md | 74 +++++++++++++++++----------------- pyproject.toml | 11 +++-- 2 files changed, 43 insertions(+), 42 deletions(-) diff --git a/README_QA_INTERNAL_PACKAGES.md b/README_QA_INTERNAL_PACKAGES.md index 82a91ceaa583..c9cd4a4aa2ee 100644 --- a/README_QA_INTERNAL_PACKAGES.md +++ b/README_QA_INTERNAL_PACKAGES.md @@ -1,9 +1,9 @@ # Isaac Lab 3.1 QA with internal Isaac Sim 6.3 -This temporary QA patch uses internal Isaac Sim 6.3 with the latest standalone -`isaacsim-asset` package, including 7.0 builds. Run the commands from your Isaac -Lab checkout on the NVIDIA network or VPN, with uv installed. The patch -configures the internal registry. +This temporary QA patch uses internal Isaac Sim 6.3 with the public standalone +`isaacsim-asset-isolated==6.2.0.1` importer. Run the commands from your Isaac Lab +checkout on the NVIDIA network or VPN, with uv installed. The patch configures +the internal registry for Isaac Sim. ## Apply the QA patch @@ -14,8 +14,8 @@ git fetch https://github.com/kellyguo11/IsaacLab-public.git kellyg/release-3.1.0 git switch -c qa/3.1-internal-isaacsim FETCH_HEAD ``` -For cherry-picking only the QA changes onto another base, use the commits listed -in [the draft PR](https://github.com/isaac-sim/IsaacLab/pull/9137). The PR targets +To apply only the QA changes to another base, use the patch commands listed in +[the draft PR](https://github.com/isaac-sim/IsaacLab/pull/9137). The PR targets `main` until `release/3.1.0` exists. The QA changes affect only root dependency configuration and this README. The committed `uv.lock` stays at the base branch's versions; refresh it locally before installing or running QA. @@ -26,21 +26,19 @@ Run this same one-line command on Linux, Windows PowerShell, or Windows Command Prompt at the start of each QA pass: ```bash -uv sync --extra isaacsim --extra importers -P isaacsim -P isaacsim-asset -P urdf-usd-converter -P mujoco-usd-converter -P usd-optimize +uv sync --extra isaacsim --extra importers -P isaacsim ``` -`-P` refreshes package metadata and ignores the corresponding versions in the -existing local lock. Isaac Sim uses `>=6.3.0rc3,<6.4`, including new release -candidates. The asset requirement and UV override use `>=6.3.0.dev0,<8`, allowing -both 6.3 and 7.x builds. The override replaces Isaac Sim's exact 6.3 asset -requirement; widening the ordinary requirement alone would still conflict with -that pin. With `-P isaacsim-asset`, UV selects the newest available asset build -in the range, currently 7.0, independently of the runtime's asset pin. +`-P isaacsim` refreshes Isaac Sim and its version-matched runtime packages, +ignoring the previous runtime version in the local lock. The QA override uses +`>=6.3.0rc3,<6.4`, allowing new 6.3 release candidates without editing build +numbers. Keep `-P isaacsim` in the nightly refresh command; the range alone does +not upgrade an existing lock. -The range alone does not upgrade an existing local lock: keep `-P` in the nightly -refresh command. `isaacsim-asset-isolated` is no longer requested. The selected -asset package supplies its matched converter, common, schema, and optimizer -dependencies. +The standalone importer remains pinned to public `6.2.0.1`. The converter and +USD compatibility overrides match the base branch. Isaac Sim retains its own +matching `isaacsim-asset==6.3...` Kit bundle. There is no standalone asset 7.0 +override and no internal standalone importer dependency. For importer-only QA, omit `--extra isaacsim`. To test OV integrations alongside Isaac Sim, add `--extra ov`; those packages retain the base branch's public pins. @@ -65,42 +63,42 @@ uv sync --frozen --extra isaacsim --extra importers ## Use the documented uv commands After refreshing once, the normal documented `uv run --extra isaacsim ...` -commands use the locally locked 6.3 runtime and 7.0 asset packages. Ordinary -`uv run` checks whether the lock matches the project; it does not automatically -seek a newer nightly every run. Add `--frozen` to preserve a recorded lock, and -include the same extras as the installation when you want both integrations -present. - -When Kit is running, Isaac Lab enables and imports the Kit URDF/MJCF extensions. -Without Kit, it imports the standalone asset wheel. The pip override selects the -installed asset distribution; it does not override Kit's extension selection. -In the combined smoke test, Kit downloaded its importer extensions from NVIDIA's -extension registry on first use. Allow access to that registry as well as the -internal pip registry when testing Kit conversions. +commands use the locally locked 6.3 runtime and public 6.2 standalone importer. +Ordinary `uv run` checks whether the lock matches the project; it does not +automatically seek a newer nightly every run. Add `--frozen` to preserve a +recorded lock, and include the same extras as the installation when you want +both integrations present. + +When Kit is running, Isaac Lab enables and imports the URDF/MJCF extensions from +Isaac Sim's asset bundle. Without Kit, it imports the public standalone importer. +The public importer does not select or replace the Kit extensions. Print installed versions without importing or launching Isaac Sim: ```bash -uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset', 'isaacsim-common', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" +uv run --frozen --extra isaacsim --extra importers python -c "from importlib.metadata import version; packages = ('isaacsim', 'isaacsim-asset', 'isaacsim-asset-isolated', 'isaacsim-robot-schema', 'urdf-usd-converter', 'mujoco-usd-converter', 'usd-optimize'); print({p: version(p) for p in packages})" ``` ## Verified package set -The combined Linux x86_64 installation on November 24, 2026, resolved 449 +The combined Linux x86_64 installation on November 25, 2026, resolved 451 packages. URDF and MJCF conversions passed both with Kit running and without Kit. The dependency-configuration tests passed (13 tests), as did the repository formatting and lint checks. The installed versions included: | Package | Version | | --- | --- | -| Isaac Sim | `6.3.0rc4+release.59505.a720a5f8.gl` | -| Asset, common, and robot schema | `7.0.0a2.dev58610+gl.698c657` | -| URDF USD converter | `0.4.0` | -| MuJoCo USD converter | `0.9.0` | +| Isaac Sim and Kit asset bundle | `6.3.0rc4+release.59505.a720a5f8.gl` | +| Public standalone importer | `6.2.0.1` | +| Robot schema | `6.2.0.0` | +| URDF USD converter | `0.3.4` | +| MuJoCo USD converter | `0.7.0` | | USD Optimize | `1.3.1` | -Later nightly builds may specify different converter versions. Record the -installed-version output and the generated lock with every QA result. +The nightly install dry-run also resolved Isaac Sim +`6.3.0rc5+release.59636.188cdb4a.gl` with the same public importer. Runtime smoke +tests used the cached RC4 build shown above. Record the installed-version output +and the generated lock with every QA result. To discard only the locally generated lock after recording the result: diff --git a/pyproject.toml b/pyproject.toml index 899585c836b9..d10671a72c16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,7 +124,7 @@ newton-neural = [ ] importers = [ - "isaacsim-asset>=6.3.0.dev0,<8", + "isaacsim-asset-isolated==6.2.0.1", "tinyobjloader==2.0.0rc13", ] @@ -440,9 +440,8 @@ environments = [ # ``importers`` extras pin older versions of these packages, so the overrides prevent downgrades. # Direct torch-stack pins also apply to published wheels; overrides reconcile Isaac Sim's older pins. override-dependencies = [ - # QA-only overrides allow the latest asset wheel to replace Isaac Sim's exact asset pin. + # QA-only nightly range replaces the published Isaac Sim pin. "isaacsim[all,extscache]>=6.3.0rc3,<6.4", - "isaacsim-asset>=6.3.0.dev0,<8", # Capture CloudXR requires >=17.3; override Isaac Sim 6.2's <15 and Viser 1.0's <17 caps. "websockets>=17.3", "numpy>=2", @@ -454,6 +453,11 @@ override-dependencies = [ "newton-usd-schemas>=0.5.0", # isaacsim-asset-isolated and isaacsim-robot-schema 6.2 pin usd-exchange ==2.3.0. "usd-exchange==3.0.1", + # usd-optimize must share usd-exchange's OpenUSD build (26.08); bump the two together. + "usd-optimize~=1.3.1", + # Standalone importer 6.2.0.1 requires these converters; Isaac Sim 6.2 pins older releases. + "urdf-usd-converter==0.3.4", + "mujoco-usd-converter==0.7.0", "torch==2.11.0", "torchvision==0.26.0", # isaacsim-core 6.2 pins fsspec 2026.2.0, while torch 2.11 requires 2026.6.0. @@ -474,7 +478,6 @@ egl-probe = { CMAKE_POLICY_VERSION_MINIMUM = "3.5" } [tool.uv.sources] isaacsim = { index = "isaacsim-internal" } -isaacsim-asset = { index = "isaacsim-internal" } ovstorage = { index = "pypi-public" } ovphysx = { index = "pypi-public" } ovrtx = { index = "pypi-public" } From f886ff5fcd1ae6fc45110d5962710379829fe7d9 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Wed, 25 Nov 2026 11:27:22 -0800 Subject: [PATCH 06/12] Restore release backport option in PR template (#9222) ## Description Restore the **Release backport** section ahead of the upcoming release branch cutoff so contributors can request backports after their PRs merge into `main`. Reuse the existing `` checkbox marker recognized by the backport workflow. Keep the option unchecked by default and refer to the active release branch so the template follows the configured release target. ## Type of change - Documentation update ## Validation - All repository pre-commit hooks passed: `uv run --no-project --with pre-commit python -m pre_commit run --all-files`. - Verified the existing backport parser ignores the unchecked template option and recognizes both `[x]` and `[X]` selections. - `git diff --check` passed. `uv run isaaclab --format` could not run because the project lockfile supports Linux and Windows, excluding this macOS host; the same pre-commit hooks were run directly through uv instead. No source packages are changed, so no package changelog fragment is required. --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c64c8b6643f0..a461be2a1ded 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -26,6 +26,10 @@ is demanded by more than one party. --> - Breaking change (existing functionality will not work without user modification) - Documentation update +## Release backport + +- [ ] Backport this pull request to the active release branch after it merges into `main` + ## Screenshots Please attach before and after screenshots of the change if applicable. From 76b6530954689623e272021263a2fcc1741b7bc2 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Wed, 25 Nov 2026 12:01:18 -0800 Subject: [PATCH 07/12] Restore four-worker standalone smoke tests (#9210) #9145 serialized standalone smoke tests, increasing non-Kit test execution from roughly 7 minutes to 20 minutes. Restore four pytest workers within the existing CI job slot budgets. Runner counts, launch cases, assertions, and timeouts stay unchanged. Kit smoke-test children use a test-only bootstrap that flushes Python and native stdout/stderr instead of Isaac Sim 6.3's global `fflush(NULL)`, which was observed hanging on an unrelated native file lock. Normal app cleanup still runs. Production launchers and simulator code are unchanged; no new tests are added. Validation on `005a4d524`: - Full formatting/lint, changelog, and whitespace checks passed. - [Full GPU CI passed](https://github.com/isaac-sim/IsaacLab/actions/runs/45684084621/attempts/1). - Kit: 19 passed / 2 skipped in 4m32s; [repeat passed in 4m34s](https://github.com/isaac-sim/IsaacLab/actions/runs/45684084621/attempts/2). - Non-Kit: 23 passed / 3 skipped in 10m27s; [repeat passed in 9m11s](https://github.com/isaac-sim/IsaacLab/actions/runs/45684084621/attempts/3). - No timeout or crash occurred in either standalone group across those runs. Times above measure test execution, excluding job setup. Native RTX destruction remains slow for H1/NIST under concurrent load: they reached 292s/288s in the first run and 275s/283s in the repeat, against the unchanged 300s limit. The green runs demonstrate that the test-only bootstrap works, but the native teardown delay remains a timeout-margin risk. This PR does not claim to fix that separate native delay. --- .../concurrent-standalone-smoke.skip | 0 source/isaaclab/test/app/_standalone_kit.py | 55 +++++++++++++++++++ .../test/app/standalone_script_cases.py | 2 + tools/test_settings.py | 4 +- 4 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 source/isaaclab/changelog.d/concurrent-standalone-smoke.skip create mode 100644 source/isaaclab/test/app/_standalone_kit.py diff --git a/source/isaaclab/changelog.d/concurrent-standalone-smoke.skip b/source/isaaclab/changelog.d/concurrent-standalone-smoke.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab/test/app/_standalone_kit.py b/source/isaaclab/test/app/_standalone_kit.py new file mode 100644 index 000000000000..bb2ca080f063 --- /dev/null +++ b/source/isaaclab/test/app/_standalone_kit.py @@ -0,0 +1,55 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Run Kit smoke-test children without globally flushing background workers' native files.""" + +import ctypes +import os +import runpy +import sys +from pathlib import Path + + +def flush_stdio() -> None: + """Flush Python and native stdout/stderr before Kit's fast shutdown exits the process. + + Flushing every C stream with ``fflush(NULL)`` can wait forever for a file lock held by a + background thread. Only the two standard output streams need flushing before ``_exit``. + """ + for stream in (sys.stdout, sys.stderr): + try: + stream.flush() + except (ValueError, OSError, AttributeError): + pass + try: + libc = ctypes.CDLL("ucrtbase" if os.name == "nt" else None) + libc.fflush.argtypes = [ctypes.c_void_p] + libc.fflush.restype = ctypes.c_int + if os.name == "nt": + libc.__acrt_iob_func.argtypes = [ctypes.c_uint] + libc.__acrt_iob_func.restype = ctypes.c_void_p + streams = (libc.__acrt_iob_func(1), libc.__acrt_iob_func(2)) + else: + names = ("__stdoutp", "__stderrp") if sys.platform == "darwin" else ("stdout", "stderr") + streams = tuple(ctypes.c_void_p.in_dll(libc, name) for name in names) + for stream in streams: + libc.fflush(stream) + except (ImportError, OSError, AttributeError, TypeError, ValueError): + pass + + +if __name__ == "__main__": + from isaacsim.simulation_app import SimulationApp + + # Isaac Sim 6.3's fflush(NULL) can block on an unrelated background stream lock. + # Limit this workaround to the smoke-test child; normal Kit cleanup still runs. + SimulationApp._flush_stdio = staticmethod(flush_stdio) + sys.argv.pop(0) + if sys.argv[0] == "-m": + sys.argv.pop(0) + runpy.run_module(sys.argv[0], run_name="__main__", alter_sys=True) + else: + sys.path[0] = str(Path(sys.argv[0]).resolve().parent) + runpy.run_path(sys.argv[0], run_name="__main__") diff --git a/source/isaaclab/test/app/standalone_script_cases.py b/source/isaaclab/test/app/standalone_script_cases.py index 57ab7185cc8a..ecf4e6bc3dcf 100644 --- a/source/isaaclab/test/app/standalone_script_cases.py +++ b/source/isaaclab/test/app/standalone_script_cases.py @@ -176,6 +176,8 @@ def command(self) -> list[str]: command.extend((self.renderer_option, self.renderer_backend)) if self.visualizer is not None: command.extend((self.spec.visualizer_option, self.visualizer)) + if self.physics_backend == "isaacsim_physx" or self.renderer_backend == "isaac_rtx" or self.visualizer == "kit": + command.insert(5, str(Path(__file__).with_name("_standalone_kit.py"))) return command diff --git a/tools/test_settings.py b/tools/test_settings.py index dbd3002b5eba..df1bc68c3169 100644 --- a/tools/test_settings.py +++ b/tools/test_settings.py @@ -71,8 +71,8 @@ """Per-test startup timeouts for cold external asset downloads.""" PYTEST_WORKERS = { - # Overlapping standalone RTX apps can stall in native renderer destruction on a shared GPU. - "test_standalone_scripts.py": 1, + # Keep standalone launches concurrent within the CI job's existing slot budget. + "test_standalone_scripts.py": 4, # Contributed-environment smoke tests: environment runs of several seconds to 2 min each. The camera file # stays whole: its workers would each start the RTX renderer, and one environment dominates it. "test_contrib_environments_kit.py": 2, From b022251de5b7e64126dec717fa809971d9e73472 Mon Sep 17 00:00:00 2001 From: Kelly Guo Date: Wed, 25 Nov 2026 13:02:35 -0800 Subject: [PATCH 08/12] Add release/3.1.0 to built documentation versions (#9227) ## Description Add `release/3.1.0` to the Sphinx branch allowlist and the multi-version docs deployment workflow so it is included in built documentation versions. Update the workflow comment to describe the selected branches. ## Type of change - Documentation update ## Validation - Passed all repository formatting and lint checks: `uv run --no-sync isaaclab --format`. - Confirmed the Sphinx and CI allowlists match, include `main`, `develop`, and `release/3.1.0`, and exclude other release branches and similar names. - Confirmed the upstream `release/3.1.0` branch exists. - Full documentation build left to CI. ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the pre-commit checks. - [x] I have made corresponding changes to the documentation configuration. - [x] I have validated the changed behavior with focused coverage. - Changelog fragment and test changes are not applicable to this docs configuration change. --- .github/workflows/docs.yaml | 8 ++++---- docs/conf.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 9bdd4118a952..a0e47dc95c12 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -115,10 +115,10 @@ jobs: env: # "deploy" branches build the full set of versions so every page # has a complete version dropdown during the branch-name cutover: main, - # develop (while it exists), and tags >= v2.0.0 (including pre-release - # suffixes like -beta, -rc1, or -EA). v1.x tags and release branches are - # excluded, along with the superseded v3.0.0 pre-releases. - SMV_BRANCH_WHITELIST: '^(main|develop)$' + # develop (while it exists), release/3.1.0, and tags >= v2.0.0 (including + # pre-release suffixes like -beta, -rc1, or -EA). v1.x tags and other release + # branches are excluded, along with the superseded v3.0.0 pre-releases. + SMV_BRANCH_WHITELIST: '^(main|develop|release/3\.1\.0)$' SMV_TAG_WHITELIST: '^(?!v3\.0\.0-)v[2-9]\d*\.\d+\.\d+(-[A-Za-z0-9.]+)?$' run: | git fetch --prune --unshallow --tags diff --git a/docs/conf.py b/docs/conf.py index 1c091b04875f..98d154127d3b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -413,7 +413,7 @@ def _read_pinned_versions() -> dict: # Whitelist pattern for remotes smv_remote_whitelist = r"^.*$" # Whitelist pattern for branches (set to None to ignore all branches) -smv_branch_whitelist = os.getenv("SMV_BRANCH_WHITELIST", r"^(main|develop)$") +smv_branch_whitelist = os.getenv("SMV_BRANCH_WHITELIST", r"^(main|develop|release/3\.1\.0)$") # Whitelist pattern for tags (set to None to ignore all tags). # Matches vMAJOR.MINOR.PATCH with an optional pre-release suffix like -beta or -rc1, # excluding the superseded v3.0.0 pre-releases. From d7754700146bb8f2e89ab69add49574e5abcf5ad Mon Sep 17 00:00:00 2001 From: Mehdi Ataei Date: Wed, 25 Nov 2026 16:29:12 -0500 Subject: [PATCH 09/12] Run NeRD models without torch.compile where Triton is missing (#9225) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description On Windows, `scripts/neural/train.py` failed at the first optimizer step: ``` torch._inductor.exc.TritonMissing: Cannot find a working triton installation. ``` `torch.compile` needs Triton to generate CUDA code, and PyTorch installs Triton on Linux only. The training script compiled the loss on any CUDA device, and the `newton_nerd` and `newton_mjwarp_nerd` physics presets compiled the model step the same way, so policy training and playback on a model failed on Windows too. This change makes the default depend on whether Triton is installed: - `isaaclab_neural.nerd.default_compile(device)` returns `True` on CUDA where Triton is installed. Where it is missing, it returns `False` and logs a warning that the model runs without `torch.compile`. - `scripts/neural/train.py` uses it for the loss and for the rollouts of the validation report. - `NeRDSolver` and `MJWarpNeRDSolver` use it when `compile` is left at `None`. An explicit `compile=True` or `compile=False` is passed through unchanged. Without `torch.compile` the model is slower and otherwise equivalent. Behavior on Linux does not change. The how-to and the `compile` field docstrings describe the new default. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## How this was tested This was not run on Windows. The missing Triton was reproduced on Linux with a CUDA device by making `import triton` fail (`sys.modules["triton"] = None`). On `main` this gives the same `TritonMissing` error at the same line of `newton_neural` as on Windows. | Entry point | `main`, Triton hidden | This branch, Triton hidden | | --- | --- | --- | | `train.py --task Isaac-Reach-Franka` | `TritonMissing` | Trains, saves and reports | | `Isaac-Reach-Franka physics=newton_nerd`, 60 steps | `TritonMissing` | Steps, `compiled=False`, finite observations | | `Isaac-Reorient-Cube-Allegro physics=newton_mjwarp_nerd`, 60 steps | `TritonMissing` | Steps, `compiled=False`, finite observations | With Triton present, `train.py` still compiles the loss. Three regression tests hide Triton the same way, one per entry point. Each fails with the fix disabled and passes with it: - `scripts/neural/test/test_nerd_train.py::test_training_without_triton` - `source/isaaclab_tasks/test/neural/test_nerd_solver.py::test_nerd_task_without_triton` - `source/isaaclab_tasks/test/neural/test_mjwarp_nerd_solver.py::test_free_motion_task_without_triton` `test_nerd_train.py` now records its dataset once per module, so the new test adds no second recording. Not tested: a real Windows run. Only the `torch.compile` failure is addressed here; any other Windows-specific issue further along the workflow would not have shown up on Linux. ## Release backport - [x] Backport this pull request to the active release branch after it merges into `main` ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [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 - [x] I have added a changelog fragment under `source//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 --- .github/workflows/windows-ci.yaml | 5 +-- docs/source/how-to/neural_robot_dynamics.rst | 4 +++ scripts/neural/test/test_nerd_train.py | 33 ++++++++++++++----- scripts/neural/train.py | 30 +++++++++++------ .../mataei-nerd-windows-eager.fixed.rst | 4 +++ .../isaaclab_neural/isaaclab_neural/nerd.py | 25 +++++++++++++- .../physics/mjwarp_nerd_solver.py | 6 +++- .../physics/mjwarp_nerd_solver_cfg.py | 6 +++- .../isaaclab_neural/physics/nerd_solver.py | 7 ++-- .../physics/nerd_solver_cfg.py | 6 +++- .../mataei-nerd-windows-eager.skip | 0 .../test/neural/test_mjwarp_nerd_solver.py | 13 ++++++++ .../test/neural/test_nerd_solver.py | 14 ++++++++ 13 files changed, 127 insertions(+), 26 deletions(-) create mode 100644 source/isaaclab_neural/changelog.d/mataei-nerd-windows-eager.fixed.rst create mode 100644 source/isaaclab_tasks/changelog.d/mataei-nerd-windows-eager.skip diff --git a/.github/workflows/windows-ci.yaml b/.github/workflows/windows-ci.yaml index bc57493a7b7b..2741bf90d1d4 100644 --- a/.github/workflows/windows-ci.yaml +++ b/.github/workflows/windows-ci.yaml @@ -104,11 +104,12 @@ jobs: if (Test-Path $env:UV_PROJECT_ENVIRONMENT) { Remove-Item -Recurse -Force $env:UV_PROJECT_ENVIRONMENT } $env:UV_CACHE_DIR = "$env:RUNNER_TEMP\uv-cache" } - uv sync --frozen --extra test --extra isaacsim --extra ov + # The neural dynamics test needs the newton-neural extra and is skipped without it. + uv sync --frozen --extra test --extra isaacsim --extra ov --extra newton-neural if ($LASTEXITCODE -ne 0) { # A job killed mid-sync can leave the kept environment broken, so rebuild it once. Remove-Item -Recurse -Force $env:UV_PROJECT_ENVIRONMENT -ErrorAction SilentlyContinue - uv sync --frozen --extra test --extra isaacsim --extra ov + uv sync --frozen --extra test --extra isaacsim --extra ov --extra newton-neural } - name: Resolve cache keys diff --git a/docs/source/how-to/neural_robot_dynamics.rst b/docs/source/how-to/neural_robot_dynamics.rst index 9da21b92f6c3..3dd5da359a1f 100644 --- a/docs/source/how-to/neural_robot_dynamics.rst +++ b/docs/source/how-to/neural_robot_dynamics.rst @@ -59,6 +59,10 @@ without recording again: ``model.backbone_spans=[1,1]`` configures the model def training refuses a dataset that was recorded with other values. An output checkpoint is saved before the validation report. +On a GPU, training and the physics presets run the model through ``torch.compile``, which needs Triton to +generate CUDA code. PyTorch installs Triton on Linux only. Where it is missing, such as on Windows, they run +the model without ``torch.compile`` and log a warning. This is slower and otherwise equivalent. + Franka explores the arm in free space using mixed joint targets. ANYmal explores moving and tilted poses using held joint targets and ground probes. Allegro records independent single-solver-step samples with free-acceleration labels. Its recording configuration declares the reduced timestep diff --git a/scripts/neural/test/test_nerd_train.py b/scripts/neural/test/test_nerd_train.py index 529121a7fbba..98276c7cc412 100644 --- a/scripts/neural/test/test_nerd_train.py +++ b/scripts/neural/test/test_nerd_train.py @@ -24,18 +24,28 @@ pytestmark = [pytest.mark.integration, pytest.mark.kitless] -def test_one_dataset_fits_any_architecture(tmp_path, capsys): +@pytest.fixture(scope="module") +def dataset(tmp_path_factory: pytest.TempPathFactory) -> Path: + """A small recording of the reach task, taken once for all tests of this module.""" + dataset = tmp_path_factory.mktemp("reach_franka") / "dataset" + record_dataset(FRANKA_REACH, dataset, 8, 128, cuda_device()) + return dataset + + +def _fit(dataset: Path, checkpoint: Path, *overrides: str) -> NeRDBase: + """Train the model of the reach task on ``dataset`` for two steps with ``train.py`` and load ``checkpoint``.""" + argv = ["--task", FRANKA_REACH, "--dataset", str(dataset), "--checkpoint", str(checkpoint)] + argv += ["--device", cuda_device(), "--max_steps", "2", "agent.batch_size=4", "agent.horizons=[1]", *overrides] + runpy.run_path(str(Path(__file__).resolve().parents[1] / "train.py"))["main"](argv) + return NeRDBase.load(checkpoint, device="cpu") + + +def test_one_dataset_fits_any_architecture(dataset, tmp_path, capsys): """One recording trains the task's architecture and another one, and refuses other recorded inputs.""" - dataset, device = tmp_path / "dataset", cuda_device() - record_dataset(FRANKA_REACH, dataset, 8, 128, device) recorded = TrajectoryDataset(dataset).generation["isaaclab"] def fit(name: str, *overrides: str) -> NeRDBase: - checkpoint = tmp_path / "output" / name - argv = ["--task", FRANKA_REACH, "--dataset", str(dataset), "--checkpoint", str(checkpoint)] - argv += ["--device", device, "--max_steps", "2", "agent.batch_size=4", "agent.horizons=[1]", *overrides] - runpy.run_path(str(Path(__file__).resolve().parents[1] / "train.py"))["main"](argv) - return NeRDBase.load(checkpoint, device="cpu") + return _fit(dataset, tmp_path / "output" / name, *overrides) declared = fit("declared.pt") assert declared.fitted @@ -53,3 +63,10 @@ def fit(name: str, *overrides: str) -> NeRDBase: fit("contact.pt", "model.contact_bodies=panda_hand") assert "record the dataset again" in capsys.readouterr().err assert not (tmp_path / "output" / "contact.pt").exists() + + +def test_training_without_triton(dataset, tmp_path, monkeypatch, caplog): + """Without Triton, which PyTorch installs on Linux only, the script trains and reports without ``torch.compile``.""" + monkeypatch.setitem(sys.modules, "triton", None) # Importing Triton fails, as where it is not installed + assert _fit(dataset, tmp_path / "eager.pt").fitted + assert "Triton is not installed" in caplog.text diff --git a/scripts/neural/train.py b/scripts/neural/train.py index f3bc13539712..5df71c9e503b 100644 --- a/scripts/neural/train.py +++ b/scripts/neural/train.py @@ -24,7 +24,7 @@ import torch from isaaclab_neural import NeRDTrainingCfg -from isaaclab_neural.nerd import build_model +from isaaclab_neural.nerd import build_model, default_compile from newton_neural.data import TrajectoryDataset, TrajectoryWindows from newton_neural.evaluation import rollout_error from newton_neural.models import NeRDBase @@ -62,15 +62,19 @@ def check_report(nerd: NeRDBase, held_out: TrajectoryWindows, cfg: NeRDTrainingC ) -def fit(nerd: NeRDBase, windows: TrajectoryWindows, cfg: NeRDTrainingCfg) -> None: - """Fit the normalization of ``nerd`` to ``windows`` and train it for ``cfg.max_steps`` optimizer steps.""" +def fit(nerd: NeRDBase, windows: TrajectoryWindows, cfg: NeRDTrainingCfg, compiled: bool) -> None: + """Fit the normalization of ``nerd`` to ``windows`` and train it for ``cfg.max_steps`` optimizer steps. + + With ``compiled``, the loss runs through ``torch.compile``. + """ nerd.fit_normalization(windows.loader(cfg.batch_size)) loss = LossOneStep(noise=cfg.noise) - if nerd.device.type == "cuda": + if compiled: loss.compile() # The first step compiles the loss, which pays off over thousands of steps optimizer = create_optimizer(nerd, lr=cfg.learning_rate) schedule = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, cfg.max_steps) - print(f"Training for {cfg.max_steps} steps. On a GPU the first one compiles the loss and takes much longer.") + first_step = " The first one compiles the loss and takes much longer." if compiled else "" + print(f"Training for {cfg.max_steps} steps.{first_step}") start = time.perf_counter() batches = itertools.islice(windows.loader(cfg.batch_size, epochs=None), cfg.max_steps) for step, batch in enumerate(batches, start=1): @@ -83,8 +87,11 @@ def fit(nerd: NeRDBase, windows: TrajectoryWindows, cfg: NeRDTrainingCfg) -> Non print(f"Step {step} of {cfg.max_steps}, loss {error.item():.4f}, {time.perf_counter() - start:.0f} s.") -def report(nerd: NeRDBase, held_out: TrajectoryWindows, cfg: NeRDTrainingCfg) -> None: - """Print the error of ``nerd`` on the robots that it was not trained on.""" +def report(nerd: NeRDBase, held_out: TrajectoryWindows, cfg: NeRDTrainingCfg, compiled: bool) -> None: + """Print the error of ``nerd`` on the robots that it was not trained on. + + With ``compiled``, the rollouts of the model run through ``torch.compile``. + """ if not nerd.prediction.integrates: # A model inside a solver gives no next state to roll out, so its one step error is what there is to report. loss = LossOneStep() @@ -99,7 +106,9 @@ def report(nerd: NeRDBase, held_out: TrajectoryWindows, cfg: NeRDTrainingCfg) -> if nerd.receptive_field is None: del starts["in the middle of an episode"] for where, from_episode_start in starts.items(): - errors = rollout_error(nerd, held_out, horizons=cfg.horizons, from_episode_start=from_episode_start) + errors = rollout_error( + nerd, held_out, horizons=cfg.horizons, from_episode_start=from_episode_start, compile=compiled + ) for horizon, error in errors.items(): print( f"Started {where}, after {horizon * held_out.frame_dt:.2f} s alone the joint coordinates are off by " @@ -140,10 +149,11 @@ def main(argv: list[str] | None = None) -> None: check_report(nerd, held_out, cfg) except ValueError as error: parser.error(str(error)) - fit(nerd, windows, cfg) + compiled = default_compile(nerd.device) # On a GPU, where PyTorch has the Triton that torch.compile needs + fit(nerd, windows, cfg, compiled) checkpoint.parent.mkdir(parents=True, exist_ok=True) nerd.save(checkpoint) # Save before reporting so a report failure cannot lose trained weights. - report(nerd, held_out, cfg) + report(nerd, held_out, cfg, compiled) print(f"Saved {checkpoint.resolve()}") diff --git a/source/isaaclab_neural/changelog.d/mataei-nerd-windows-eager.fixed.rst b/source/isaaclab_neural/changelog.d/mataei-nerd-windows-eager.fixed.rst new file mode 100644 index 000000000000..811ba4f4b235 --- /dev/null +++ b/source/isaaclab_neural/changelog.d/mataei-nerd-windows-eager.fixed.rst @@ -0,0 +1,4 @@ +* Fixed ``scripts/neural/train.py`` and the :class:`~isaaclab_neural.physics.NeRDSolverCfg` and + :class:`~isaaclab_neural.physics.MJWarpNeRDSolverCfg` physics presets failing on Windows with + ``TritonMissing``. ``torch.compile`` needs Triton to generate CUDA code, and PyTorch installs it on Linux + only, so a model now trains and runs without ``torch.compile`` by default where Triton is missing. diff --git a/source/isaaclab_neural/isaaclab_neural/nerd.py b/source/isaaclab_neural/isaaclab_neural/nerd.py index a667bb06c88e..5dd1ce51517b 100644 --- a/source/isaaclab_neural/isaaclab_neural/nerd.py +++ b/source/isaaclab_neural/isaaclab_neural/nerd.py @@ -3,12 +3,15 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Construction of the model that a :class:`~isaaclab_neural.NeRDCfg` defines.""" +"""Construction of the model that a :class:`~isaaclab_neural.NeRDCfg` defines, and how it runs by default.""" from __future__ import annotations +import importlib.util +import logging from typing import TYPE_CHECKING +import torch from newton_neural.backbones import BackboneFlash from newton_neural.contacts import ContactInputBase from newton_neural.models import FlashNeRD @@ -22,6 +25,26 @@ from .nerd_cfg import NeRDCfg +logger = logging.getLogger(__name__) + + +def default_compile(device: torch.device | str) -> bool: + """Return whether a model on ``device`` runs through ``torch.compile`` when no setting says otherwise. + + ``torch.compile`` generates CUDA code with Triton, which PyTorch installs on Linux only. Where Triton is + missing, such as on Windows, the model runs without ``torch.compile``, which is slower and otherwise + equivalent. + """ + if torch.device(device).type != "cuda": + return False + if importlib.util.find_spec("triton") is not None: + return True + logger.warning( + "Triton is not installed, so torch.compile cannot generate CUDA code and the neural dynamics model runs" + " without it. This is slower and otherwise equivalent. PyTorch installs Triton on Linux only." + ) + return False + def build_model(dataset: TrajectoryDataset, cfg: NeRDCfg) -> NeRDBase: """Build the model that ``cfg`` defines on the robot that ``dataset`` describes. diff --git a/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py b/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py index 7fcf08100c6a..9570270a7b6f 100644 --- a/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py +++ b/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py @@ -16,6 +16,7 @@ from newton import Model from newton_neural.solvers import SolverNeRDMuJoCo, load_nerd +from ..nerd import default_compile from .nerd_solver import ( COUPLING_ERROR, articulation_pattern, @@ -49,11 +50,14 @@ def coupling_error(cls, cfg: MJWarpNeRDSolverCfg, in_place: bool) -> str: def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | None) -> SolverNeRDMuJoCo: """Build ``SolverNeRDMuJoCo`` from ``self.cfg`` and validate the Newton model.""" - nerd = load_nerd(self.cfg.checkpoint, wp.device_to_torch(model.device)) + device = wp.device_to_torch(model.device) + nerd = load_nerd(self.cfg.checkpoint, device) require_articulation(nerd) # Collect matching MJWarpSolverCfg constructor kwargs (no determinism overrides since NOT_GUARANTEED). options = solver_kwargs(self.solver_class, self.cfg, mode) options.pop("ls_parallel", None) # Deprecated in Newton; omit to avoid deprecation warning + if options.get("compile") is None: + options["compile"] = default_compile(device) if model._has_body_variants: options["separate_worlds"] = True options["articulation"] = articulation_pattern(model, self.cfg.articulation, env_template) diff --git a/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver_cfg.py b/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver_cfg.py index 7f8116cde1ad..62bea4ac1711 100644 --- a/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver_cfg.py +++ b/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver_cfg.py @@ -46,7 +46,11 @@ class MJWarpNeRDSolverCfg(MJWarpSolverCfg): """Optional inference precision override (``"fp32"``, ``"tf32"``, ``"fp16"``, ``"bf16"``; checkpoint default).""" compile: bool | None = None - """Optional ``torch.compile`` toggle (defaults to ``True`` on CUDA).""" + """Optional ``torch.compile`` toggle (defaults to ``True`` on CUDA where Triton is installed). + + ``torch.compile`` needs Triton for CUDA, and PyTorch installs it on Linux only. Elsewhere, such as on + Windows, the default is ``False``: the model runs slower and is otherwise equivalent. + """ def validate_config(self) -> None: """Raise ``ValueError`` if :attr:`checkpoint` is empty or does not exist, with training instructions.""" diff --git a/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py b/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py index 1a623765aec3..88095958ee91 100644 --- a/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py +++ b/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py @@ -22,6 +22,8 @@ from isaaclab.cloner import expand_env_regex_ns +from ..nerd import default_compile + if TYPE_CHECKING: from .nerd_solver_cfg import NeRDSolverCfg @@ -73,7 +75,8 @@ def coupling_error(cls, cfg: NeRDSolverCfg, in_place: bool) -> str: def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | None) -> SolverNeRD: """Build ``SolverNeRD`` for the configured articulation and validate the Newton model.""" cfg = self.cfg - nerd = load_nerd(cfg.checkpoint, wp.device_to_torch(model.device)) + device = wp.device_to_torch(model.device) + nerd = load_nerd(cfg.checkpoint, device) require_articulation(nerd) requested = model.get_requested_state_attributes() unwritten = [f"{name} ({readers})" for name, readers in _UNWRITTEN_STATE.items() if name in requested] @@ -88,7 +91,7 @@ def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | No nerd, articulation=articulation_pattern(model, cfg.articulation, env_template), precision=cfg.precision, - compile=cfg.compile, + compile=default_compile(device) if cfg.compile is None else cfg.compile, # Disable internal solver graphs because Isaac Lab captures the full physics step itself. use_cuda_graph=False, ) diff --git a/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver_cfg.py b/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver_cfg.py index 777aa50dd4f9..ab288401d7b2 100644 --- a/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver_cfg.py +++ b/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver_cfg.py @@ -54,7 +54,11 @@ class NeRDSolverCfg(NewtonSolverCfg): """Optional inference precision override (``"fp32"``, ``"tf32"``, ``"fp16"``, ``"bf16"``; checkpoint default).""" compile: bool | None = None - """Optional ``torch.compile`` toggle (defaults to ``True`` on CUDA).""" + """Optional ``torch.compile`` toggle (defaults to ``True`` on CUDA where Triton is installed). + + ``torch.compile`` needs Triton for CUDA, and PyTorch installs it on Linux only. Elsewhere, such as on + Windows, the default is ``False``: the model runs slower and is otherwise equivalent. + """ def validate_config(self) -> None: """Raise ``ValueError`` if :attr:`checkpoint` is empty or does not exist, with training instructions.""" diff --git a/source/isaaclab_tasks/changelog.d/mataei-nerd-windows-eager.skip b/source/isaaclab_tasks/changelog.d/mataei-nerd-windows-eager.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_tasks/test/neural/test_mjwarp_nerd_solver.py b/source/isaaclab_tasks/test/neural/test_mjwarp_nerd_solver.py index 6605861d26e9..d521711ff1ea 100644 --- a/source/isaaclab_tasks/test/neural/test_mjwarp_nerd_solver.py +++ b/source/isaaclab_tasks/test/neural/test_mjwarp_nerd_solver.py @@ -7,6 +7,7 @@ from __future__ import annotations +import sys from pathlib import Path import pytest @@ -106,6 +107,18 @@ def test_solver_settings(checkpoint: Path, device: str): assert observations["policy"].isfinite().all() +@pytest.mark.parametrize("device", test_devices(DeviceScope.CUDA)) +def test_free_motion_task_without_triton(checkpoint: Path, device: str, monkeypatch: pytest.MonkeyPatch): + """Without Triton, which PyTorch installs on Linux only, the solver steps the model without ``torch.compile``.""" + monkeypatch.setitem(sys.modules, "triton", None) # Importing Triton fails, as where it is not installed + with environment(TASK, nerd_task_cfg(TASK, checkpoint, 4, device)) as env: + env.reset() + action = torch.zeros(4, env.action_manager.total_action_dim, device=device) + observations, *_ = env.step(action) + assert observations["policy"].isfinite().all() + assert not env.sim.backend_manager.backend.solver.stepper.compiled + + @pytest.mark.parametrize("device", test_devices(DeviceScope.CUDA)) def test_refusals(checkpoint: Path, device: str, tmp_path: Path): """Expect a task that does not fit the model to be refused with the configuration to change.""" diff --git a/source/isaaclab_tasks/test/neural/test_nerd_solver.py b/source/isaaclab_tasks/test/neural/test_nerd_solver.py index cc85ffc82ab5..626e2974c9ae 100644 --- a/source/isaaclab_tasks/test/neural/test_nerd_solver.py +++ b/source/isaaclab_tasks/test/neural/test_nerd_solver.py @@ -7,6 +7,7 @@ from __future__ import annotations +import sys from pathlib import Path from typing import Any @@ -225,6 +226,19 @@ def test_nerd_task_without_contact_sensors(checkpoint: Path, device: str): assert list(backend.graphs) == [("simulate", 1)] +# Windows CI runs this where Triton is really missing, with the model that the scripts record and train there. +@pytest.mark.windows_ci +@pytest.mark.parametrize("device", test_devices(DeviceScope.CUDA)) +def test_nerd_task_without_triton(checkpoint: Path, device: str, monkeypatch: pytest.MonkeyPatch): + """Without Triton, which PyTorch installs on Linux only, the solver steps the model without ``torch.compile``.""" + monkeypatch.setitem(sys.modules, "triton", None) # Importing Triton fails, as where it is not installed + with environment(TASK, nerd_task_cfg(TASK, checkpoint, 4, device)) as env: + env.reset() + observations, *_ = env.step(_random_actions(env)) + assert observations["policy"].isfinite().all() + assert not env.sim.backend_manager.backend.solver.stepper.compiled + + @pytest.mark.parametrize("device", test_devices(DeviceScope.CUDA)) def test_step_without_an_environment(checkpoint: Path, device: str): """A standalone simulation uses its declared timestep without an environment-specific timing handshake.""" From 3dbc052bbb1db8914149e6d93fbd24416263b2c3 Mon Sep 17 00:00:00 2001 From: Mehdi Ataei Date: Wed, 25 Nov 2026 16:29:24 -0500 Subject: [PATCH 10/12] Introduce NeRD and its tradeoffs in the neural dynamics how-to (#9224) # Description The neural robot dynamics how-to used the NeRD acronym (`NeRDCfg`, `NeRDTrainingCfg`) without ever naming it, and went from one sentence straight into configuration details. This change: - Names the acronym in the page title and in the how-to index entry, and defines it on first use. - Adds "When to train on a model": what a model speeds up, when it is a good fit, and the tradeoffs to expect. - Adds "What the model replaces": a model replaces the dynamics solve of one robot, not the renderer or the rest of the simulation, and how that differs between `physics=newton_nerd` and `physics=newton_mjwarp_nerd`. Documentation only; no behavior changes. ## Type of change - Documentation update ## Release backport - [x] Backport this pull request to the active release branch after it merges into `main` ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [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 (not applicable: no behavior or test changes) - [ ] I have added a changelog fragment under `source//changelog.d/` for every touched package (not applicable: no source package is touched) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --- docs/source/how-to/index.rst | 4 +- docs/source/how-to/neural_robot_dynamics.rst | 52 ++++++++++++++++++-- 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/docs/source/how-to/index.rst b/docs/source/how-to/index.rst index 10800858a7f2..bc25236e21ed 100644 --- a/docs/source/how-to/index.rst +++ b/docs/source/how-to/index.rst @@ -354,9 +354,9 @@ How-to Guides .. container:: guide-entry - :doc:`Training on neural robot dynamics ` + :doc:`Training on neural robot dynamics (NeRD) ` - Record robot trajectories from a task, train a neural dynamics model, and train RL policies on it. + Record robot trajectories from a task, train a neural robot dynamics (NeRD) model, and train RL policies on it. .. container:: guide-metadata diff --git a/docs/source/how-to/neural_robot_dynamics.rst b/docs/source/how-to/neural_robot_dynamics.rst index 3dd5da359a1f..e92db9b0a755 100644 --- a/docs/source/how-to/neural_robot_dynamics.rst +++ b/docs/source/how-to/neural_robot_dynamics.rst @@ -7,11 +7,55 @@ .. _newton-neural-robot-dynamics: -Training on neural robot dynamics -================================= +Training on neural robot dynamics (NeRD) +======================================== -The optional ``newton-neural`` integration records robot dynamics, fits a model and runs policies -through Newton's existing lifecycle. Install it with ``uv sync --extra newton-neural``. +A neural robot dynamics (NeRD) model is a neural network that predicts how one robot moves. It is +trained on trajectories recorded from a physics solver and then steps that robot in the solver's place. +The optional ``newton-neural`` integration records the trajectories of a task, fits a model to them and +runs policies on the model through Newton's existing lifecycle. Install it with +``uv sync --extra newton-neural``. + +When to train on a model +------------------------ + +Reinforcement learning needs a large number of simulation steps, and the physics step is often what +limits it: resolving contact accurately takes small substeps and iterative constraint solves in every +environment. A NeRD model advances the robot in all environments with one forward pass of fixed cost. + +A model is a good fit when: + +* the task runs many parallel environments of one robot, and physics stepping limits training speed; +* the robot, its actuators and the control period are fixed, so one recording describes them. + +Expect these tradeoffs: + +* A model is recorded and trained before any policy trains on it. The recording does not depend on a + policy, so one model serves every policy that drives the robot with the same controls and control + period. +* A checkpoint holds for the recorded robot, drive gains and timestep. A task that changes them needs + a new recording and a new model. +* Predictions are reliable only for the states, controls and contacts that the recording covers. +* Policy training speeds up by less than the physics step does, because the rewards, resets and + observations of the task run as before. +* A policy trained on a model should be evaluated on a numerical solver before it is used elsewhere. + See `Evaluate an explicit policy`_. + +What the model replaces +----------------------- + +A NeRD model replaces the dynamics solve of one robot, in one of two ways. It does not replace the +renderer or the rest of the simulation: Newton still owns the scene, states, controls, collision +detection and sensors, and Isaac Lab still owns resets, observations, rewards and rendering. + +* With :class:`~isaaclab_neural.physics.NeRDSolverCfg` (``physics=newton_nerd``), the model takes the + place of the solver. One forward pass advances the robot by one control period. Where the task has + contact, it reaches the model through contact inputs that Newton computes. +* With :class:`~isaaclab_neural.physics.MJWarpNeRDSolverCfg` (``physics=newton_mjwarp_nerd``), the model + predicts only the free motion of the robot inside MuJoCo Warp, which still solves contacts and moves + the other bodies of the scene. + +`Run policies`_ lists what each of the two supports. Configuration ownership ----------------------- From ebf162ae5fe6a825753a6d2006cd6b13cd6feb4b Mon Sep 17 00:00:00 2001 From: Ege Sekkin <72572910+nvsekkin@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:53:28 -0500 Subject: [PATCH 11/12] Remove the Kit visualizer's lidar drawing (#9223) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Removes lidar hit drawing from the Kit visualizer because OvRTX lidars cannot run with Kit. Lidar hits can be viewed in the Newton GL and Viser visualizers. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] 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 - [x] I have added a changelog fragment under `source//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 --- ...ekkin-remove-kit-lidar-drawing.removed.rst | 2 + .../kit/kit_visualizer.py | 42 +------------------ .../isaaclab_visualizers/lidar_points.py | 2 +- .../test/test_lidar_points.py | 2 +- 4 files changed, 6 insertions(+), 42 deletions(-) create mode 100644 source/isaaclab_visualizers/changelog.d/esekkin-remove-kit-lidar-drawing.removed.rst diff --git a/source/isaaclab_visualizers/changelog.d/esekkin-remove-kit-lidar-drawing.removed.rst b/source/isaaclab_visualizers/changelog.d/esekkin-remove-kit-lidar-drawing.removed.rst new file mode 100644 index 000000000000..f5f9de032755 --- /dev/null +++ b/source/isaaclab_visualizers/changelog.d/esekkin-remove-kit-lidar-drawing.removed.rst @@ -0,0 +1,2 @@ +* Removed lidar hit drawing from :class:`~isaaclab_visualizers.kit.KitVisualizer` because OvRTX lidars cannot run + with Kit. View lidar hits in the Newton GL or Viser visualizer. diff --git a/source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py b/source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py index 3232b2302c5b..36eb0ab90d0c 100644 --- a/source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py +++ b/source/isaaclab_visualizers/isaaclab_visualizers/kit/kit_visualizer.py @@ -11,7 +11,7 @@ import logging import signal import warnings -from typing import TYPE_CHECKING, Any, ClassVar +from typing import TYPE_CHECKING, ClassVar import numpy as np import torch @@ -27,7 +27,7 @@ from isaaclab.visualizers.visualizer_cfg import PerspectiveCameraCfg from isaaclab_visualizers.desktop_entry import write_desktop_entry -from isaaclab_visualizers.lidar_points import LIDAR_POINT_COLOR, collect_lidar_hits, frame_visualizer_closeup +from isaaclab_visualizers.lidar_points import frame_visualizer_closeup from .kit_key_event_source import KitKeyEventSource @@ -99,8 +99,6 @@ def __init__(self, cfg: VisualizerCfg): self._app_pumped_this_step: bool = False self._controls_kit_timeline = False self._owns_kit_timeline = False - self._lidar_draw = None - self._lidar_draw_unavailable = False # Camera tracking state (replaces ViewportCameraController) self._interactive_scene = None # set from SimulationContext._interactive_scene in initialize() self._viewer_origin: torch.Tensor | None = None # world-space origin offset for eye/lookat @@ -208,7 +206,6 @@ def step(self, dt: float) -> None: self._fabric.update_geometries(provider, self._sim.render_generation) if self.cfg.backend.origin_type == "asset": self._update_asset_tracking_camera() - self._draw_lidar_points() self._app_pumped_this_step = self._pump_kit_app_update() if self._camera_image_provider is not None: image = self.current_image_view.frame.data if self.is_training_paused() else self.render_tiled_rgba_array() @@ -226,41 +223,6 @@ def step(self, dt: float) -> None: # simulation / debug-vis step; re-apply PointInstancer invisibleIds each step when partial viz is on. self._refresh_partial_viz_point_instancers_if_needed() - def _draw_lidar_points(self) -> None: - """Draw one environment's lidar hits in the Kit viewport. - - Debug draw is a viewport overlay, so the lidar product does not scan the points. A missing - debug-draw interface is reported once and the step continues. - """ - hits = collect_lidar_hits(self._sim, self._env_ids) - if hits is None: - return - draw = self._lidar_debug_draw() - if draw is None: - return - draw.clear_points() - color = (*LIDAR_POINT_COLOR, 1.0) - for _, points in hits: - if len(points) == 0: - continue - positions = [(float(point[0]), float(point[1]), float(point[2])) for point in points] - draw.draw_points(positions, [color] * len(positions), [6.0] * len(positions)) - - def _lidar_debug_draw(self) -> Any | None: - """Return the Kit debug-draw interface, or None when it cannot be acquired.""" - if self._lidar_draw_unavailable: - return None - if self._lidar_draw is None: - try: - from isaacsim.util.debug_draw import _debug_draw - - self._lidar_draw = _debug_draw.acquire_debug_draw_interface() - except Exception as exc: - logger.warning("[KitVisualizer] Lidar point drawing is unavailable: %s", exc) - self._lidar_draw_unavailable = True - return None - return self._lidar_draw - def close(self) -> None: """Close viewport resources and restore temporary state.""" if not self._is_initialized: diff --git a/source/isaaclab_visualizers/isaaclab_visualizers/lidar_points.py b/source/isaaclab_visualizers/isaaclab_visualizers/lidar_points.py index fa9ebb8f46fe..8bbace385116 100644 --- a/source/isaaclab_visualizers/isaaclab_visualizers/lidar_points.py +++ b/source/isaaclab_visualizers/isaaclab_visualizers/lidar_points.py @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""World-frame lidar hits shared by the Newton GL, Viser, and Kit visualizers.""" +"""World-frame lidar hits drawn by Newton GL and Viser, and the default camera framing they share with Kit.""" from __future__ import annotations diff --git a/source/isaaclab_visualizers/test/test_lidar_points.py b/source/isaaclab_visualizers/test/test_lidar_points.py index 0a7b9d1ee615..e9cd5af5c4ed 100644 --- a/source/isaaclab_visualizers/test/test_lidar_points.py +++ b/source/isaaclab_visualizers/test/test_lidar_points.py @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""World-frame lidar hits drawn by the Newton GL, Viser, and Kit visualizers.""" +"""World-frame lidar hits drawn by the Newton GL and Viser visualizers.""" from __future__ import annotations From c1afcee17283aacaebd5ccdbb4e823827752ffd6 Mon Sep 17 00:00:00 2001 From: Fanxing-LI <148536012+Fanxing-LI@users.noreply.github.com> Date: Thu, 26 Nov 2026 13:11:09 +0800 Subject: [PATCH 12/12] Fix RLinf playback checkpoint selectors and update the VLA post-training guide (#9155) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Follow-up to #7776. Verifying the RLinf VLA post-training guide end to end turned up two defects in the `isaaclab_rl` RLinf entry points and several problems in the guide itself. This PR fixes them and removes the remaining references to personal Hugging Face checkpoints. **Entry point fixes (`isaaclab_rl`)** - `isaaclab play --rl_library rlinf --checkpoint latest|best` never found a checkpoint. Playback looked up run manifests with `env.eval.init_params.id`, while training records `env.train.init_params.id`. All three shipped recipes use a distinct `...-Eval` id for evaluation, so the lookup always failed with `No compatible manifested run with a checkpoint was found`. Playback now resolves the selector against the training id, matching `train_rlinf.py`; an explicit `--task` still takes precedence. - A relative `--config_path` failed with `initialize_config_dir() requires an absolute config_dir as input`. The path is now resolved to an absolute directory before Hydra is initialized. - The launch test is now a train → play round trip with a relative config directory: training writes the run manifest, and playback resolves `latest` through it although the recipe's eval task id differs from its training id. Reverting either fix, or making training record the eval id, turns the test red with the original errors. **Documentation (`rlinf_vla_posttraining.rst`)** - Remove the paragraph that pointed at the task author's personal checkpoint repositories. - Move the `assemble_trocar` `hf download` from the prerequisites into a new "Assemble Trocar checkpoint" subsection after the Step 2 dependency pins, and run it with `uv run --no-sync`. With the lockfile's `huggingface-hub` 1.x and `typer` 0.27, `hf` downloads the files but exits non-zero with a `click.exceptions.Exit` traceback; any `huggingface-hub` < 1.0 works. The Step 2 floor is raised to `>=0.34`, the first release that ships the `hf` CLI. - Add `Environments/Grid` to the local-mirror subtree list; the default `GroundPlaneCfg` USD is loaded from there. - Mark flash-attn as optional for GR00T N1.7, which falls back to PyTorch SDPA attention with a warning when the package is missing (building it needs a CUDA 13 `nvcc` to match the lockfile's torch). - Add `--no-sync` to the `uv run isaaclab ...` commands in "Key Files" so they do not re-sync the environment. No linked issue. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Screenshots Not applicable (CLI and documentation changes). ## Validation - `uv run python -m pytest source/isaaclab_rl/test/test_entrypoints.py` passes (the one skrl parser test was deselected locally because `skrl` is not installed in my environment). - Mutation checks: reverting the playback fix fails the new test with the manifest `ValueError`; reverting the config-path fix fails it with the Hydra `initialize_config_dir()` error; making training record the eval id fails it with the manifest `ValueError`. - `pre-commit` on the changed files, the changelog gate (`tools/changelog/cli.py check`), and a Sphinx render of the guide pass. - No GPU training or evaluation runs were performed for this PR; the code changes are confined to CLI argument handling. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [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 - [x] I have added a changelog fragment under `source//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 --- .../rlinf_vla_posttraining.rst | 45 ++++++++-------- .../rlinf-play-checkpoint-selectors.fixed.rst | 3 ++ .../entrypoints/backends/cli_args_rlinf.py | 5 +- .../entrypoints/backends/play_rlinf.py | 3 +- source/isaaclab_rl/test/test_entrypoints.py | 54 ++++++++++++------- 5 files changed, 66 insertions(+), 44 deletions(-) create mode 100644 source/isaaclab_rl/changelog.d/rlinf-play-checkpoint-selectors.fixed.rst diff --git a/docs/source/experimental-features/rlinf_vla_posttraining.rst b/docs/source/experimental-features/rlinf_vla_posttraining.rst index 81e72d0ea8d2..490185dfe3f9 100644 --- a/docs/source/experimental-features/rlinf_vla_posttraining.rst +++ b/docs/source/experimental-features/rlinf_vla_posttraining.rst @@ -33,11 +33,8 @@ Prerequisites - **Isaac Lab** installed and configured - **Isaac-GR00T** repo (for VLA inference and data transforms) - A **pretrained VLA checkpoint** in HuggingFace format. A pretrained GR00T checkpoint for - ``assemble_trocar`` is available and can be downloaded via: - - .. code-block:: bash - - hf download --repo-type model nvidia/Assemble_Trocar --local-dir /path/to/local/models + ``assemble_trocar`` is available on Hugging Face; download it after installing the dependency + pins (see :ref:`rlinf-assemble-trocar-checkpoint`). - Multi-GPU setup recommended (FSDP requires at least 1 GPU) Installation @@ -63,7 +60,7 @@ the alternative model dependencies below. # Step 2: Install packages with conflicting constraints (--no-deps to bypass resolver) uv pip install transformers==4.51.3 "tokenizers>=0.21,<0.22" \ - "huggingface-hub>=0.30,<1.0" --no-deps + "huggingface-hub>=0.34,<1.0" --no-deps # Use the official PyTorch3D v0.7.9 tag instead of the older pipablepytorch3d package. # GR00T N1.5 only uses pytorch3d.transforms, so skip the compiled extension. PYTORCH3D_NO_EXTENSION=1 uv pip install --no-build-isolation \ @@ -87,6 +84,20 @@ The packages installed above intentionally differ from the versions in the Isaac Lab lockfile. Use ``uv run --no-sync`` for the commands below so that ``uv`` does not replace these GR00T-compatible versions before launching. +.. _rlinf-assemble-trocar-checkpoint: + +Assemble Trocar checkpoint +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Download the pretrained GR00T N1.5 checkpoint for ``assemble_trocar`` after Step 2. With the +``huggingface-hub`` 1.x and ``typer`` 0.27 releases of the Isaac Lab lockfile, the ``hf`` command downloads +the files but then exits with a non-zero status and a ``click.exceptions.Exit`` traceback, so run it with the +pinned ``huggingface-hub`` release: + +.. code-block:: bash + + uv run --no-sync hf download --repo-type model nvidia/Assemble_Trocar --local-dir /path/to/local/models + .. _rlinf-skipping-flash-attn: Skipping flash-attn for N1.5 @@ -100,7 +111,7 @@ If Step 4 fails, skip installation of flash-attn and apply this patch instead: git apply /path/to/IsaacLab/scripts/imitation_learning/locomanipulation_sdg/gr00t/no_flash_attn.patch The patch switches GR00T to PyTorch SDPA, so flash-attn is no longer required. -The training and evaluation commands below work unchanged. This patch does not apply to N1.7. +The training and evaluation commands below work unchanged. N1.7 does not need this patch (see below). GR00T N1.7 ~~~~~~~~~~ @@ -113,6 +124,8 @@ package with incompatible APIs. After Step 1 above, replace Steps 2–4 with: uv pip install --no-deps \ "git+https://github.com/NVIDIA/Isaac-GR00T.git@1a1837f20538b7d7e21f977a11a5aee14f99803c" \ "transformers==4.57.3" "tokenizers>=0.22,<0.23" "huggingface-hub>=0.34,<1.0" + # Optional: building flash-attn requires a CUDA 13 nvcc. Without it, N1.7 logs a warning + # and runs the backbone with PyTorch SDPA attention instead. uv pip install --no-deps --no-build-isolation "flash-attn==2.8.3" Set ``actor.model.model_type: gr00t_n1d7`` in the task YAML. RLinf loads the model and @@ -151,18 +164,6 @@ The H2 examples use N1.7. Download the checkpoint for either task and the shared Authenticate with ``uv run --no-sync hf auth login`` if required, using an account with access to the selected checkpoint repositories. -The recorded evaluations used the task author's checkpoints below. Repository access is required; -anonymous requests return HTTP 401. - -* Apple: repository ``LiFanxing/pnp_apple``, revision ``1f136aee682574518e8fc36e20a091211f10c8b4``, - directory ``checkpoint_1``. -* Pack AGX: repository ``LiFanxing/pack_agx``, revision ``40a2c24c04e58a66d1c703dd0cb3027c696eb76c``, - directory ``rl_pack_agx_orin_contR_004pos_10ang-1/global_step_800``. - -To use either with the shared Cosmos backbone, authenticate and download the indicated directory at -its revision, then pass its local path to ``isaaclab play`` with ``--model_path``. The directory must -contain ``config.json``. - The H2 + Sharpa robot, NuRec capture, and scene objects are hosted on the official Isaac asset server under :attr:`~isaaclab.utils.assets.ISAACLAB_NUCLEUS_DIR`. To use a local mirror, configure the shared Isaac asset root before launching: @@ -172,7 +173,8 @@ Isaac asset root before launching: export ISAACSIM_ASSET_ROOT=/path/to/mirror The mirror must retain the ``Isaac/IsaacLab`` subtree, including ``Robots/Unitree/H2``, -``Environments/NuRec``, and ``Objects``. For example, the robot USD must be located at +``Environments/Grid`` (the default ground plane), ``Environments/NuRec``, and ``Objects``. +For example, the robot USD must be located at ``/path/to/mirror/Isaac/IsaacLab/Robots/Unitree/H2/H2_with_sharpa_flat.usd``. @@ -392,7 +394,8 @@ Key Files └── extension.py # Task registration, obs/action conversion For detailed configuration options, CLI arguments, and how to add new tasks, -use the unified ``uv run isaaclab train --rl_library rlinf`` and ``uv run isaaclab play --rl_library rlinf`` commands. +use the unified ``uv run --no-sync isaaclab train --rl_library rlinf`` and +``uv run --no-sync isaaclab play --rl_library rlinf`` commands. Attribution and Citation ------------------------ diff --git a/source/isaaclab_rl/changelog.d/rlinf-play-checkpoint-selectors.fixed.rst b/source/isaaclab_rl/changelog.d/rlinf-play-checkpoint-selectors.fixed.rst new file mode 100644 index 000000000000..41002fbcd54d --- /dev/null +++ b/source/isaaclab_rl/changelog.d/rlinf-play-checkpoint-selectors.fixed.rst @@ -0,0 +1,3 @@ +* Resolved ``--checkpoint latest`` and ``best`` in RLinf playback against the training task id recorded in + run manifests, so recipes with a separate evaluation task id find their checkpoints. +* Resolved a relative RLinf ``--config_path`` to an absolute directory, which Hydra requires. diff --git a/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/cli_args_rlinf.py b/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/cli_args_rlinf.py index cd81f6abcccf..f84dd14a5146 100644 --- a/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/cli_args_rlinf.py +++ b/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/cli_args_rlinf.py @@ -64,12 +64,13 @@ def resolve_config_dir(config_name: str, explicit_path: str | None) -> str: Resolution order: - 1. *explicit_path* if provided (``--config_path``). + 1. *explicit_path* if provided (``--config_path``), resolved to an absolute path. 2. The ``isaaclab_tasks`` package tree, searched for a matching YAML. 3. The directory containing the RLinf entrypoint implementation. """ if explicit_path is not None: - return explicit_path + # Hydra's initialize_config_dir() rejects relative directories + return str(Path(explicit_path).expanduser().resolve()) spec = importlib.util.find_spec("isaaclab_tasks") if spec is not None and spec.origin is not None: matches = list(Path(spec.origin).parent.rglob(f"{config_name}.yaml")) diff --git a/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/play_rlinf.py b/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/play_rlinf.py index 4d7374de577c..6490a4d16f5c 100644 --- a/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/play_rlinf.py +++ b/source/isaaclab_rl/isaaclab_rl/entrypoints/backends/play_rlinf.py @@ -96,10 +96,11 @@ def run(argv: list[str]) -> None: if args_cli.model_path: cfg.rollout.model.model_path = args_cli.model_path if args_cli.checkpoint: + # training runs record env.train.init_params.id in their manifests, which may differ from the eval id cfg.runner.ckpt_path = cli_args.resolve_rlinf_checkpoint( args_cli.checkpoint, log_root_path=str(Path("logs") / "rlinf"), - task=args_cli.task or task_id, + task=args_cli.task or cfg.env.train.init_params.id, config_name=config_name, ) if args_cli.video: diff --git a/source/isaaclab_rl/test/test_entrypoints.py b/source/isaaclab_rl/test/test_entrypoints.py index fefdc4e457a1..e274ba6dbb8f 100644 --- a/source/isaaclab_rl/test/test_entrypoints.py +++ b/source/isaaclab_rl/test/test_entrypoints.py @@ -512,9 +512,13 @@ def test_rlinf_rejects_pretrained_checkpoint() -> None: resolve_rlinf_checkpoint("pretrained", log_root_path="logs/rlinf", task="Isaac-Task", config_name="ppo") -@pytest.mark.parametrize("backend", [train_rlinf, play_rlinf], ids=["train", "play"]) -def test_rlinf_launch_passes_checkpoint_and_model_config_to_workers(tmp_path: Path, monkeypatch, backend) -> None: - """Real CLI composition supplies the native RLinf weight/resume hooks before workers start.""" +def test_rlinf_launch_passes_checkpoint_and_model_config_to_workers(tmp_path: Path, monkeypatch) -> None: + """Real CLI composition supplies the native RLinf weight/resume hooks before workers start. + + The config directory is given relative to the working directory. Training records its run manifest, and + playback resolves ``latest`` through that manifest although the recipe's eval task id differs from its + training id. + """ validate = mock.Mock(side_effect=RuntimeError("worker boundary")) modules = { "rlinf": {}, @@ -534,10 +538,6 @@ def test_rlinf_launch_passes_checkpoint_and_model_config_to_workers(tmp_path: Pa monkeypatch.chdir(tmp_path) for variable in ("PYTHONPATH", "RLINF_CONFIG_FILE", "RLINF_EXT_MODULE", "RAY_ENABLE_UV_RUN_RUNTIME_ENV"): monkeypatch.delenv(variable, raising=False) - step_dir = tmp_path / "checkpoints" / "global_step_400" - weights = step_dir / "actor" / "model_state_dict" / "full_weights.pt" - weights.parent.mkdir(parents=True) - weights.touch() cfg = OmegaConf.create( { "runner": {"logger": {"log_path": "unused"}}, @@ -545,23 +545,37 @@ def test_rlinf_launch_passes_checkpoint_and_model_config_to_workers(tmp_path: Pa "model": {"model_path": "./base", "model_type": "gr00t", "rl_head_config": {"add_value_head": True}} }, "rollout": {"model": {"model_path": "./rollout", "rl_head_config": {"disable_dropout": True}}}, - "env": {"train": {"init_params": {"id": "Test"}}, "eval": {"init_params": {"id": "Test"}}}, + "env": {"train": {"init_params": {"id": "Test"}}, "eval": {"init_params": {"id": "Test-Eval"}}}, } ) OmegaConf.save(cfg, tmp_path / "ppo.yaml") - checkpoint = step_dir if backend is train_rlinf else weights - args = ["--config_path", str(tmp_path), "--config_name", "ppo"] - args += ["--checkpoint", str(checkpoint.relative_to(tmp_path))] - with pytest.raises(RuntimeError, match="worker boundary"): - backend.run(args) - GlobalHydra.instance().clear() + + def launch(backend, checkpoint: str): + with pytest.raises(RuntimeError, match="worker boundary"): + backend.run(["--config_path", ".", "--config_name", "ppo", "--checkpoint", checkpoint]) + GlobalHydra.instance().clear() + resolved = validate.call_args.args[0] + assert resolved.actor.model.model_path == str(tmp_path / "base") + assert resolved.rollout.model.model_path == str(tmp_path / "rollout") + assert resolved.rollout.model.model_type == "gr00t" + assert dict(resolved.rollout.model.rl_head_config) == {"add_value_head": True, "disable_dropout": True} + return resolved + + resume_dir = tmp_path / "previous" / "global_step_400" + resume_weights = resume_dir / "actor" / "model_state_dict" / "full_weights.pt" + resume_weights.parent.mkdir(parents=True) + resume_weights.touch() + trained = launch(train_rlinf, str(resume_dir.relative_to(tmp_path))) assert os.environ["RAY_ENABLE_UV_RUN_RUNTIME_ENV"] == "0" - resolved = validate.call_args.args[0] - assert resolved.runner["resume_dir" if backend is train_rlinf else "ckpt_path"] == str(checkpoint) - assert resolved.actor.model.model_path == str(tmp_path / "base") - assert resolved.rollout.model.model_path == str(tmp_path / "rollout") - assert resolved.rollout.model.model_type == "gr00t" - assert dict(resolved.rollout.model.rl_head_config) == {"add_value_head": True, "disable_dropout": True} + assert trained.runner.resume_dir == str(resume_dir) + + # the training launch above created the only manifested run; RLinf saves checkpoints below its run directory + (run_dir,) = (tmp_path / "logs" / "rlinf").iterdir() + weights = run_dir / "checkpoints" / "global_step_8" / "actor" / "model_state_dict" / "full_weights.pt" + weights.parent.mkdir(parents=True) + weights.touch() + played = launch(play_rlinf, "latest") + assert played.runner.ckpt_path == str(weights) def test_run_backend_restores_sys_argv_after_training(monkeypatch) -> None: