Repository navigation
Pin the published PyTorch stack to the supported versions - #7821
Conversation
|
| if system == "linux": | ||
| incompatible_suffix = "-cu13" if cuda == "cu128" else "-cu12" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
🔵 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.
|
run-ci |
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 syncanduv runcommands 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
uv lock --checkanduv run isaaclab -fpassed.PXR_WORK_THREAD_LIMIT=1.uv sync --locked --extra isaacsim --extra testinstalled 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 5passed with bothphysics=isaacsim_physxandpresets=newton_mjwarpin the same environment (exit 0 andTraining time:for each). PhysX used the existing install-CI Carbonite environment shim preload; both runs setPXR_WORK_THREAD_LIMIT=1.Type of change
Release backport
developChecklist
uv run isaaclab -f