Skip to content

Pin the published PyTorch stack to the supported versions - #7821

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
StafaH:fix/cuda-backend-selection
Sep 16, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
StafaH:fix/cuda-backend-selection

Conversation

@StafaH

@StafaH StafaH commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Downstream projects do not inherit Isaac Lab's uv overrides. The published wheel's loose Torch requirements therefore allowed newer, untested builds from PyPI, as reported by the SO-101 tutorial with Torch 2.13.0.

Pin torch/torchaudio 2.11.0 and torchvision 0.26.0 directly in the published dependencies, remove the redundant uv overrides and their generated copies, and refresh the lockfile metadata. The existing platform-specific PyTorch indexes remain unchanged: CUDA 12.8 on Linux x86_64 and Windows, and CUDA 13.0 on Linux aarch64. Normal uv sync and uv run commands require no CUDA selectors.

Document that downstream uv projects must configure their own PyTorch indexes. The corresponding tutorial fix adds those indexes, keeps x86 on CUDA 12, and removes its obsolete Newton release-1.5 override. The pinned Warp 1.17.0 installation reports CUDA Toolkit 12.9. Isaac Lab already pins the compatible Newton 1.6.0rc1 release and documents the OpenUSD parser workaround.

Validation

  • 22 focused metadata and wheel-builder tests passed, including the updated check that direct Torch pins match the central version table.
  • uv lock --check and uv run isaaclab -f passed.
  • Tutorial: 61 tests, Ruff, and the reported 8-environment/100-step zero-agent command passed with the default CUDA 12.8 build and PXR_WORK_THREAD_LIMIT=1.
  • Co-installation: uv sync --locked --extra isaacsim --extra test installed Isaac Sim 6.1.0.0 alongside Torch 2.11.0+cu128, matching Isaac Sim's Torch pin without an override. uv run --extra isaacsim isaaclab train --rl_library rsl_rl --task Isaac-Cartpole-Direct --num_envs 16 --max_iterations 5 passed with both physics=isaacsim_physx and presets=newton_mjwarp in the same environment (exit 0 and Training time: for each). PhysX used the existing install-CI Carbonite environment shim preload; both runs set PXR_WORK_THREAD_LIMIT=1.
  • GPU validation used an RTX PRO 6000 Blackwell Workstation Edition with driver 580.159.03. No Windows or aarch64 hardware runs were performed.

Type of change

  • Bug fix
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Checklist

  • Ran pre-commit checks with uv run isaaclab -f
  • Updated installation documentation
  • Updated existing version-pin coverage
  • Added an Isaac Lab changelog fragment

@StafaH
StafaH requested a review from a team September 15, 2026 10:56
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Sep 15, 2026
@greptile-apps

greptile-apps Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The implementation appears safe to merge, with only a non-blocking gap in regression coverage for the new platform-specific Torch index routing.

Findings

  1. P2 CUDA routing lacks coverage ▶
  2. P2 CUDA 13 check misses packages ▶

Summary

This PR pins the published Torch stack to the supported versions, moves source-checkout CUDA selection from dependency groups to platform-specific indexes, removes redundant override copies, refreshes the lockfile, and updates installation guidance and changelog metadata.

  • Pins torch and torchaudio to 2.11.0 and torchvision to 0.26.0 in published dependencies.
  • Routes supported source platforms to CUDA 12.8 or CUDA 13.0 without command-line group selectors.
  • Removes Torch overrides and generated override entries.
  • Updates metadata tests to verify direct version pins, but leaves the new platform routing without equivalent regression coverage.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Isaac Lab project dependencies] --> B[Torch stack pinned to supported versions]
  B --> C{Source checkout platform}
  C -->|Linux x86_64| D[PyTorch CUDA 12.8 index]
  C -->|Windows AMD64| D
  C -->|Linux aarch64| E[PyTorch CUDA 13.0 index]
  B --> F[Published wheel metadata]
  F --> G[Downstream project supplies its own index]
Loading

Reviews (2) · Last reviewed commit: "Use existing CUDA defaults without selec..."

Comment on lines +143 to +144
if system == "linux":
incompatible_suffix = "-cu13" if cuda == "cu128" else "-cu12"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 CUDA 13 check misses packages

The transitive-runtime assertion searches for package names ending in -cu13, but the locked CUDA 13 dependencies use unsuffixed names such as nvidia-cublas, nvidia-cuda-runtime, and nvidia-cuda-nvrtc. A mixed graph containing the expected +cu128 Torch wheels alongside incompatible CUDA 13 runtime packages would therefore pass this regression test. Validate the expected CUDA dependency set or its versions and sources instead.

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

The CUDA selection groups and published PyTorch pins are internally consistent, but the changelog does not identify the exact dependency narrowing as a breaking compatibility change or provide migration guidance for downstream consumers.

  • Design and architecture: Checkout-local, mutually exclusive CUDA groups appropriately separate source-workspace index selection from published package metadata. The platform-specific routing preserves CUDA 13.0 on Linux aarch64.
  • API: Changing torch, torchvision, and torchaudio from minimum versions to exact pins narrows the published dependency contract and can make downstream environments requiring newer versions unresolvable. Per repository policy, this must be clearly marked as breaking with guidance to align constraints and configure downstream PyTorch indexes.
  • Implementation: The pyproject changes, documentation, lockfile coverage, and mirrored override removals consistently implement the intended selection behavior. The remaining actionable issue is the changelog classification and missing migration guidance for the exact-pin contract change.

Minor fixes needed. Posted 1 actionable finding inline.

The full PR diff was reviewed; some supplemental surrounding file context was omitted.

Automated review; human maintainers own approval decisions.

Fixed
^^^^^

* Pinned the PyTorch stack in the published package dependencies so downstream projects no

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Suggestion · Api — Pin narrowing lacks breaking-change note

Published dependencies move from torch>=2.11 to torch==2.11.0 (and equivalents for torchvision/torchaudio), so downstream projects that require a newer Torch will now fail to resolve against the Isaac Lab wheel. The changelog rules require breaking changes to be marked clearly with migration guidance; this entry records the narrowing only as a fix. Mark it as breaking and state that consumers must align their Torch constraints and configure their own PyTorch indexes.

@StafaH StafaH changed the title Pin the published PyTorch stack and add CUDA selection groups [Workflow] Pin the published PyTorch stack and add CUDA selection groups Sep 15, 2026
@StafaH
StafaH marked this pull request as draft September 15, 2026 11:29
@StafaH StafaH changed the title [Workflow] Pin the published PyTorch stack and add CUDA selection groups Pin the published PyTorch stack to the supported versions Sep 15, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 16, 2026
@StafaH
StafaH marked this pull request as ready for review September 16, 2026 11:27
@kellyguo11
kellyguo11 merged commit 538a409 into isaac-sim:develop Sep 16, 2026
84 of 85 checks passed
@StafaH
StafaH deleted the fix/cuda-backend-selection branch October 10, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants