Repository navigation
Bump PyTorch to 2.12 - #7674
Bump PyTorch to 2.12#7674
Conversation
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
The PyTorch 2.12 and torchvision 0.27 upgrade consistently moves supported platforms and installer paths to cu130, but the changelog fragment omits this user-visible CUDA index migration and its effect on existing cu128 environments.
- Design and architecture: Dependency versions and cu130 routing are coordinated across pyproject configuration, uv overrides, the lockfile, installer logic, documentation, and tests. Consolidating
_ensure_cuda_torchonto one CUDA tag matches the platform-wide index change. - API: The changed user-facing surface is installation behavior: Linux x86_64 and Windows now use cu130 rather than cu128. The changelog mentions only the library version bumps, contrary to the repository requirement to document changed behavior with migration guidance; it should state that existing cu128 installations will be replaced with CUDA 13 builds.
- Implementation: The cu130 tag flows consistently through
_ensure_cuda_torchinto version detection, index selection, and reinstall behavior, with updated branch coverage for x86 and ARM. The required fix is limited to completing the changelog entry for the changed installer behavior.
Minor fixes needed. Posted 1 actionable finding inline.
Automated review; human maintainers own approval decisions.
| Changed | ||
| ^^^^^^^ | ||
|
|
||
| * Updated PyTorch to 2.12 and torchvision to 0.27. This includes PyTorch's fix for CUDA device |
There was a problem hiding this comment.
🔵 Suggestion · Api — Changelog omits cu128 to cu130 index change
The fragment records only the torch/torchvision version bump, but this change also moves Linux x86_64 and Windows installs from the cu128 wheel index to cu130 ([tool.uv.sources], the removed pytorch-cu128 index, _ensure_cuda_torch, and the installation docs). Repository rules require migration guidance for changed behavior; existing cu128 environments will be uninstalled and reinstalled with CUDA 13 builds. Add a sentence describing the index change.
The PR is not yet safe to merge because the new shared versions make the existing x86 end-to-end installation commands request unavailable cu128 wheels. Findings
|
| torch = "2.12.0" | ||
| torchvision = "0.27.0" |
There was a problem hiding this comment.
Stale cu128 installation paths
The shared versions are now torch 2.12.0 and torchvision 0.27.0, but the x86 end-to-end installation helper still selects the cu128 index. The affected tests therefore request versions that are locked only from cu130 and fail before exercising the upgraded stack. The Newton installation guide produces the same unusable version/index combination. Update these remaining installation paths to cu130.
|
run-ci |
|
run-ci |
|
run-ci |
|
run-ci |
A standalone demo that becomes ready at 299 seconds is currently terminated at the 300-second startup deadline, before its five-second soak can finish. This caused the arms smoke test in #7608 and #7674 to fail after printing its setup and reset messages. Stop applying the startup deadline once the readiness marker has been observed, while preserving the existing 300-second startup and five-second soak settings. The unconditional deadline was introduced by [#6704](#6704), commit [16083cc](16083cc). This fix does not address the separate arms failures in #7838 and #7866 that never reached readiness within 300 seconds. Validation: the deterministic regression fails on develop and passes with this change; all 11 supervisor checks pass; `uv run isaaclab -f` passes.
…im#7869) A standalone demo that becomes ready at 299 seconds is currently terminated at the 300-second startup deadline, before its five-second soak can finish. This caused the arms smoke test in isaac-sim#7608 and isaac-sim#7674 to fail after printing its setup and reset messages. Stop applying the startup deadline once the readiness marker has been observed, while preserving the existing 300-second startup and five-second soak settings. The unconditional deadline was introduced by [isaac-sim#6704](isaac-sim#6704), commit [16083cc](isaac-sim@16083cc). This fix does not address the separate arms failures in isaac-sim#7838 and isaac-sim#7866 that never reached readiness within 300 seconds. Validation: the deterministic regression fails on develop and passes with this change; all 11 supervisor checks pass; `uv run isaaclab -f` passes. (cherry picked from commit 0921d32)
Newton's relaxed graph capture could silently fall back to eager execution with CUDA 13 PyTorch wheels: its loader searched only for `libcudart.so.12` and the unversioned `libcudart.so`, although PyTorch had already loaded `libcudart.so.13`. This changed the simulation path used by the Newton AnymalD tiled OpenGL golden test. Loading the runtime major reported by `torch.version.cuda` restores relaxed physics and sensor graph capture and prevents accidentally choosing an available CUDA 12 runtime in a mixed-runtime process. The hardcoded CUDA 12 loader originated in [#5017](#5017), commit [e7f34eb](e7f34eb). Our CUDA 13 wheel switch in [#7674](#7674), commit [2e6b425](2e6b425), exposed the assumption on x86; develop's ARM configuration already selects CUDA 13 wheels. A controlled comparison reproduced the exact CI drift (1.42% pixel difference, SSIM 0.9804) on all three attempts by setting only the manager's runtime handle to `None`; the same test passed when the runtime was available. The loader remains inline and uses the existing PyTorch dependency. Missing runtimes and CPU-only PyTorch retain an unavailable runtime handle. No dependency, graph algorithm, golden image, or comparison threshold changes are included. Validation: - Regression red/green: CUDA 13 selection, unavailable matching runtime, and CPU-only cases failed with the old loader. All six focused runtime/capture tests passed with the fix, including an actual `cudaRuntimeGetVersion` check on CUDA 12.8. - An isolated import with both the shared CUDA 12 runtime and system CUDA 13.1 present selected `libcudart.so.13` and reported runtime version 13010. - The existing `test_visualizer_golden[newton-anymal_d-newton-tiled]` passed on its first actual run with the exact PyTorch 2.12.0+cu130 stack: 1 passed, 11 deselected in 86.60 seconds. The log confirms `libcudart.so.13`, runtime version 13000, and successful relaxed graph capture. All 22 CUDA/PyTorch/Triton package versions matched #7674's lock. - GPU validation used an isolated environment on an RTX 5090, reusing Newton 1.6rc1, Warp 1.17.0, and Isaac Sim 6.0.1 from the existing local environment; it does not replace full CI validation with the remaining locked dependencies. - `uv run isaaclab -f` passed.
|
run-ci |
## Description Near a kinematic singularity, an invertible task inertia can produce extreme OSC torques without `inv_ex` reporting an error. This caused the Franka nullspace-centering failure exposed by the PyTorch upgrade in #7674. Selectively damp poorly conditioned task directions and apply the same damping to full-inertia posture control. Undamped directions retain dynamic decoupling; damped directions gradually relax task priority. Double-precision inertia calculations avoid cancellation, and `inertia_conditioning_thresholds` controls the transition. The Franka simulation fixture uses explicit torque actuators to enforce its configured effort limits on commands sent to PhysX. The controller solves directly for motion and posture forces, avoiding explicit inertia inverses and the full-inertia joint-space projector. A shifted Cholesky factorization certifies when the task inertia is sufficiently well conditioned to skip eigendecomposition. Environments that fail this condition use the spectral damping path. Partial decoupling processes both blocks in one batch. ## Implementation references - **SAI operational-space controller:** [`SingularityHandler::updateTaskModel`](https://github.com/manips-sai-org/sai-primitives/blob/bfb56c44ecec7067b542526ce4898223180eacb7/src/tasks/SingularityHandler.cpp#L75-L158) identifies weak directions using normalized Jacobian singular values and updates the task/nullspace matrices. [`computeTorques`](https://github.com/manips-sai-org/sai-primitives/blob/bfb56c44ecec7067b542526ce4898223180eacb7/src/tasks/SingularityHandler.cpp#L297-L367) blends task and joint-control strategies near singularities. This provides a concrete reference for handling poor conditioning before inversion fails; this PR instead filters eigenvalues of `J M^-1 Jᵀ`. - **Franka's damped inverse:** [`pseudoInverse`](https://github.com/frankarobotics/franka_ros/blob/35e1f654426e04bc9f83b73af4ab68a3fb145c84/franka_example_controllers/include/franka_example_controllers/pseudo_inversion.h#L15-L25) uses the damped SVD coefficient `σ / (σ² + λ²)`. Its [Cartesian impedance example](https://github.com/frankarobotics/franka_ros/blob/35e1f654426e04bc9f83b73af4ab68a3fb145c84/franka_example_controllers/src/cartesian_impedance_example_controller.cpp#L152-L167) uses that inverse for nullspace control. This supports inverse regularization in a robot controller; it is an impedance example, not full-inertia OSC. - **Theory:** [Chang and Khatib (1995), §§3–4](https://khatib.stanford.edu/publications/pdfs/Chang_1995.pdf), derives dynamically consistent task/nullspace torque decomposition and handles singularities through a reduced task. The paper removes singular directions rather than applying this PR's smooth damping. The exact per-mode filter `1 / (λ_i + d_i)`, cubic damping transition, default eigenvalue thresholds, and shifted-Cholesky optimization are choices made in this PR, not algorithms copied verbatim from these references. Full-inertia posture control uses the same regularized inverse as motion control; dynamic decoupling is retained in undamped directions and becomes approximate in damped directions. ## Type of change - Bug fix ## Validation - All 21 OSC simulation cases and 17 feature cases passed on both PyTorch 2.11 and 2.12 (RTX 5090, Isaac Sim 6.0.1.0). - The near-singularity regression fails against the original controller on CPU and CUDA, with both full and partial inertia decoupling. - Covered retained-task isolation, damping continuity, singular batches, invalid configuration, independence from batch composition, and absence of cached inverse matrices. - Existing goals, gains, run lengths, and convergence tolerances are unchanged. - Replayed all 1,497 captured Franka steps against the previous implementation: maximum torque difference was 0.000061 Nm, within the existing numerical checks. - Instrumented reproduction: no submitted torque exceeded its configured limit, and no joint position limit was violated. - `uv run isaaclab -f` passed. ## Performance Whole-controller eager GPU timings on an RTX 5090 with PyTorch 2.12, compared with the initial singularity-safe implementation (`1e7e3906b`), using identical captured Franka inputs: | Workload | Before | After | | --- | ---: | ---: | | Full inertia, 16 environments, 1,497-step trajectory mean | 1.109 ms | 0.906 ms | | Full inertia, 4,096 environments, well conditioned | 1.720 ms | 0.964 ms | | Full inertia, 16 environments, near singularity | 1.109 ms | 1.192 ms | | Full inertia, 4,096 environments, near singularity | 1.765 ms | 1.726 ms | | Partial inertia, 4,096 environments, well conditioned | 2.839 ms | 1.870 ms | The full recorded trajectory takes 18% less controller time. Small batches already requiring damping pay extra for the conditioning check; gains depend on the workload. Precision and damping thresholds are unchanged. ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the pre-commit checks with `uv run isaaclab -f`. - [x] I have documented the configuration and damping behavior. - [x] I have added regression tests and a changelog fragment. - [x] My name already exists in `CONTRIBUTORS.md`.
|
run-ci |
Upgrade PyTorch to 2.12.0 and torchvision to 0.27.0. PyTorch 2.12 includes the upstream fix for CUDA lazy initialization when NVML reports more devices than the CUDA runtime exposes, avoiding the deferred `device >= 0 && device < num_gpus` assertion after Kit initializes graphics on a subset of GPUs. PyTorch 2.12 is published for CUDA 13.0, so the supported x86_64 and Windows installs move from the cu128 index to cu130 as well. TorchAudio remains at 2.11.0 because it uses PyTorch stable ABI and officially supports PyTorch 2.11 and later. - `uv lock --check` - `uv run isaaclab -f` - `LD_PRELOAD=/lib/aarch64-linux-gnu/libgomp.so.1 OMNI_KIT_ACCEPT_EULA=YES uv run pytest source/isaaclab/test/cli -q` (283 passed) - Imported torch 2.12.0+cu130, torchvision 0.27.0+cu130, and torchaudio 2.11.0+cu130; exercised torchvision NMS and torchaudio resampling - Ran `scripts/demos/arms.py --device=cuda:0 --visualizer kit` through setup and repeated simulation resets on a 2-GPU ARM64 system where Kit exposes one GPU to the CUDA runtime - Ran the SKRL ANYmal-C training flow through environment setup and active PPO rollout Supersedes the application-level initialization workaround in isaac-sim#7669. - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: ooctipus <[email protected]> (cherry picked from commit 4269c29)
…7904) ## Description Backports ten `develop` PRs to `release/3.0.0`, including the PyTorch 2.12/CUDA 13.0 upgrade, the near-singular OSC fix, and the complete cfg-first cloning and schema-fragment migrations. The audit covers September 17, 2026 00:00 UTC through `develop` commit `4269c29a39e463dd07c74a9704d890d7a5c01e08` (September 19, 23:55 UTC), against release base `970d21ef48057a2efc3d749c0f2abab8e7e0c30e`. | Source PR | Included change | | --- | --- | | #7777 | Refresh Newton solver transforms after fixed-root pose writes | | #7608 | Make direct cloning cfg-first, including assets, callers, templates, tests, and migration documentation | | #7895 | Apply the existing CI exclusion for Franka cable/cloth/soft kitless rendering tests | | #7872 | Load the CUDA runtime matching PyTorch for Newton graph capture | | #7831 | Check authored Newton mesh-collision schema tokens correctly | | #7834 | Build documentation with the extra that provides Sphinx | | #7838 | Migrate maintained consumers to physics schema fragments, including readers and overrides | | #7840 | Consistently name Isaac Lab 3.1 as the deprecation removal release | | #7903 | Handle near-singular operational-space control | | #7674 | Upgrade PyTorch to 2.12, TorchVision to 0.27, and the CUDA stack to 13.0, including installer, wheel, and cuRobo compatibility changes | All 305 changed non-lock files match the audited `develop` snapshot exactly. The remaining file, `uv.lock`, matches that snapshot after substituting the package versions from the release branch's existing manifests; all 418 package entries were checked. Existing release package versions, compiled changelogs, documentation routing, and OVRTX compatibility code remain intact, including the #7880 revert. Source commit hashes are recorded in the commit messages. ### Already present #7866, #7870, #7867, #7869, and #7868 were included in #7851; #7819 was backported by #7884; #7883, #7885, and #7887 were backported by #7889. #7874, #7888, #7773, #7886, and #7042 were also already present. The three automatic changelog/version compilation commits are excluded; the release branch compiles its own fragments and maintains its own versions. ## Type of change - Release integration/backport - Bug fixes and documentation updates - Breaking changes already accepted for the 3.0 cloning and schema migrations; their migration guidance and changelog fragments are included ## Validation - `uv run --no-sync isaaclab -f`: all checks passed using the existing shared environment and the release base for changelog validation. - Focused cloning, OSC feature, schema parity/shim, CLI, and task configuration suite: **283 passed**. - Newton fixed-root updates and CUDA runtime/capture regressions: **14 passed**. - Complete OSC simulation suite: **21 passed**. - Mesh-collision fragments: **17 passed**; cfg-first cloning integration: **16 passed**; scene construction/ownership: **7 passed**. - The above **358 tests passed with PyTorch 2.11**. - With **PyTorch 2.12/CUDA 13.0**: installer/metadata/Docker tests **91 passed**; CPU/GPU OSC feature tests **17 passed**; complete OSC simulation suite **21 passed**. - `uv lock --check`: passed; release package manifests match their lockfile entries. - Repository skill validation: **23 skills passed**. - File-by-file source audit, release-metadata preservation checks, and `git diff --check`: passed. Local simulation used RTX 5090 and Isaac Sim 6.0.1 with PyTorch 2.11 and 2.12. The full Docker image build and fresh installation matrix were not rerun locally for this backport. Release CI uses its pinned Isaac Sim 6.1 image and remains the authoritative full integration check. Kit-dependent suites run in separate processes to avoid loading standalone USD before Kit. ## Release backport Not applicable: this PR targets `release/3.0.0` directly. ## Checklist - [x] Ran the complete pre-commit command. - [x] Included the original migration documentation, regression tests, and changelog fragments for every changed package. - [x] Preserved source attribution and recorded every source commit. - [x] Preserved the release branch's versions and existing release-specific changes. --------- Co-authored-by: vidurv-nvidia <[email protected]> Co-authored-by: ooctipus <[email protected]>
…7530, #7899) (#7926) ## Description Backports the two changes merged into `develop` since September 19 that are still missing from `release/3.0.0`: | Source PR | Change | Source commit | | --- | --- | --- | | #7530 | Validate camera outputs against renderer capabilities before simulator startup | `31d1c53510490c76841e9c35a329574b357d9900` | | #7899 | Share native resources by construction cfg and centralize ownership and teardown | `c90c3a1097a0a669a823b880b1c8d0654d7fd267` | Includes the original regression tests, API documentation, and changelog fragments. #7530 applied without changes. #7899 required two conflict resolutions to retain the release branch's OVRTX mapping API, documentation, and tests. Of its 62 files, 59 match the merged source exactly; the other three retain those existing release additions. Release versions, lockfile entries, compiled changelogs, and documentation routing are preserved. ## Audit Checked all **33 PRs** merged from September 19, 2026 00:00 America/Los_Angeles through `develop` commit `c90c3a1097` (September 20, 21:29 Pacific), against release base `75e9c8ce12`. **31 are already backported; the remaining two are included here.** Git first-parent history and GitHub's merged PR list agree. Automatic changelog/version compilation remains branch-specific. <details> <summary>31 PRs already recorded in release</summary> | Source PRs | Existing release commit | | --- | --- | | #7777, #7608, #7895, #7872, #7831, #7834, #7838, #7840, #7903, #7674 | [`ff22c52891`](ff22c52) | | #7886 | [`41bfaee5f0`](41bfaee) | | #7042 | [`970d21ef48`](970d21e) | | #7905 | [`f0563d1f9e`](f0563d1) | | #7604 | [`dca7cfe984`](dca7cfe) | | #7610, #7603 | [`5dd2220243`](5dd2220) | | #7839 | [`b8b93bb96e`](b8b93bb) | | #6851 | [`baa025ad90`](baa025a) | | #7250 | [`f86b33e6b1`](f86b33e) | | #7910 | [`24f7b4842b`](24f7b48) | | #7810 | [`9738e096c8`](9738e09) | | #7832 | [`be270ed88b`](be270ed) | | #4679 | [`80157aa22d`](80157aa) | | #7914 | [`01b59b5a22`](01b59b5) | | #7502 | [`db7db61f60`](db7db61) | | #7918 | [`bca9dba8bb`](bca9dba) | | #7919 | [`ef1514c97c`](ef1514c) | | #7922 | [`7d6979a19e`](7d6979a) | | #7923 | [`a1dd560b98`](a1dd560) | | #7924 | [`892e51dc1d`](892e51d) | | #7925 | [`75e9c8ce12`](75e9c8c) | </details> ## Validation **745 tests passed** on the combined backport: - Core registry, configclass, replication, camera contracts, and task presets: 158 passed. - Newton manager/model/reset and coupling suites: 299 passed. - OVPhysX/OVRTX lifecycle, scene data, bindings, and material contracts: 141 passed on CPU. - Clone-plan algebra: 83 passed. - All 8 OV CUDA cases skipped in the CPU run: 8 passed on GPU. - OVPhysX ray-caster regression: 1 passed. - Kit simulation-context and PhysX scene-data tests: 54 passed. - Newton solver reset integration: 1 passed. The registry-identity and borrowed-config-field regressions both fail with the pre-backport implementations and pass with this change. Backport file-scope validation, source-file comparison, `git diff --check`, and `uv run isaaclab -f` passed. Local validation used PyTorch 2.12.0/CUDA 13.0, Isaac Sim 6.0.1.0, Newton 1.6.0rc1, and an RTX 5090. Existing deprecation/runtime warnings occurred. Full Docker CI is requested separately against the pinned environment; local checks do not claim a startup or runtime speedup. ## Checklist - [x] Read the contribution guidelines and ran formatting/changelog checks. - [x] Included source tests, documentation, and changelog fragments. - [x] Verified regression behavior and preserved release-specific changes. - [x] Recorded source commit hashes and audited the requested merge window. --------- Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: ooctipus <[email protected]>
Description
Upgrade PyTorch to 2.12.0 and torchvision to 0.27.0. PyTorch 2.12 includes the upstream fix for CUDA lazy initialization when NVML reports more devices than the CUDA runtime exposes, avoiding the deferred
device >= 0 && device < num_gpusassertion after Kit initializes graphics on a subset of GPUs.PyTorch 2.12 is published for CUDA 13.0, so the supported x86_64 and Windows installs move from the cu128 index to cu130 as well. TorchAudio remains at 2.11.0 because it uses PyTorch stable ABI and officially supports PyTorch 2.11 and later.
Testing
uv lock --checkuv run isaaclab -fLD_PRELOAD=/lib/aarch64-linux-gnu/libgomp.so.1 OMNI_KIT_ACCEPT_EULA=YES uv run pytest source/isaaclab/test/cli -q(283 passed)scripts/demos/arms.py --device=cuda:0 --visualizer kitthrough setup and repeated simulation resets on a 2-GPU ARM64 system where Kit exposes one GPU to the CUDA runtimeSupersedes the application-level initialization workaround in #7669.
Release backport
develop