Skip to content

Commit 9338da9

Browse files
authored
[Isaac Sim 6.0] Updates torch to 2.9.0+cu128 for x86 (#4001)
# Description Updates torch to 2.9.0, keeping cuda version as 12.8 for x86 and 13.0 for arm (for spark support). In Isaac Sim 6.0, use_stage needs to be registered for both the regular isaacsim core extension and the core experimental extension ## Type of change - New feature (non-breaking change which adds functionality) - Breaking change (existing functionality will not work without user modification) - Documentation update ## 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 `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task --> --------- Signed-off-by: Kelly Guo <kellyguo123@hotmail.com>
1 parent 21f8591 commit 9338da9

File tree

18 files changed

+72
-54
lines changed

18 files changed

+72
-54
lines changed

.github/workflows/license-check.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ jobs:
3131
- name: Set up Python
3232
uses: actions/setup-python@v4
3333
with:
34-
python-version: '3.12' # Adjust as needed
34+
python-version: '3.11' # Adjust as needed
3535

3636
- name: Install dependencies using ./isaaclab.sh -i
37+
env:
38+
OMNI_KIT_ACCEPT_EULA: yes
39+
ACCEPT_EULA: Y
40+
ISAACSIM_ACCEPT_EULA: YES
3741
run: |
3842
# first install isaac sim
3943
pip install --upgrade pip
40-
pip install 'isaacsim[all,extscache]==${{ vars.ISAACSIM_BASE_VERSION || '5.0.0' }}' --extra-index-url https://pypi.nvidia.com
44+
pip install 'isaacsim[all,extscache]==${{ vars.ISAACSIM_BASE_VERSION || '5.1.0' }}' --extra-index-url https://pypi.nvidia.com
4145
chmod +x ./isaaclab.sh # Make sure the script is executable
46+
# Install torch
47+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
4248
# install all lab dependencies
4349
./isaaclab.sh -i
4450
@@ -83,6 +89,11 @@ jobs:
8389
8490
# Loop through the installed packages and their licenses
8591
for pkg in $(jq -r '.[].Name' licenses.json); do
92+
# Skip packages starting with nvidia (case-insensitive)
93+
if [[ "${pkg,,}" == nvidia* ]]; then
94+
continue
95+
fi
96+
8697
LICENSE=$(jq -r --arg pkg "$pkg" '.[] | select(.Name == $pkg) | .License' licenses.json)
8798
8899
# Check if any of the allowed licenses are a substring of the package's license

docs/source/experimental-features/newton-physics-integration/installation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ Installation
33

44
Installing the Newton physics integration branch requires three things:
55

6-
1) Isaac sim 5.0
6+
1) Isaac sim 6.0
77
2) The ``feature/newton`` branch of Isaac Lab
88
3) Ubuntu 22.04 or 24.04 (Windows will be supported soon)
99

1010
To begin, verify the version of Isaac Sim by checking the title of the window created when launching the simulation app. Alternatively, you can
1111
find more explicit version information under the ``Help -> About`` menu within the app.
12-
If your version is less than 5.0, you must first `update or reinstall Isaac Sim <https://docs.isaacsim.omniverse.nvidia.com/latest/installation/quick-install.html>`_ before
12+
If your version is less than 6.0, you must first `update or reinstall Isaac Sim <https://docs.isaacsim.omniverse.nvidia.com/latest/installation/quick-install.html>`_ before
1313
you can proceed further.
1414

1515
Next, navigate to the root directory of your local copy of the Isaac Lab repository and open a terminal.
@@ -44,13 +44,13 @@ Install the correct version of torch and torchvision:
4444

4545
.. code-block:: bash
4646
47-
pip install -U torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
47+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
4848
49-
Install Isaac Sim 5.0:
49+
Install Isaac Sim 6.0:
5050

5151
.. code-block:: bash
5252
53-
pip install "isaacsim[all,extscache]==5.0.0" --extra-index-url https://pypi.nvidia.com
53+
pip install "isaacsim[all,extscache]==6.0.0" --extra-index-url https://pypi.nvidia.com
5454
5555
Install Isaac Lab extensions and dependencies:
5656

docs/source/setup/installation/isaaclab_pip_installation.rst

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,6 @@ Installing dependencies
2525
In case you used UV to create your virtual environment, please replace ``pip`` with ``uv pip``
2626
in the following commands.
2727

28-
- Install a CUDA-enabled PyTorch 2.7.0 build for CUDA 12.8:
29-
30-
.. code-block:: none
31-
32-
pip install torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
33-
34-
- If you want to use ``rl_games`` for training and inferencing, install the
35-
its Python 3.11+ enabled fork:
36-
37-
.. code-block:: none
38-
39-
pip install git+https://github.com/isaac-sim/rl_games.git@python3.11
40-
41-
- Install the Isaac Lab packages along with Isaac Sim:
42-
43-
.. code-block:: none
44-
45-
pip install isaaclab[isaacsim,all]==2.2.0 --extra-index-url https://pypi.nvidia.com
46-
47-
In case you used UV to create your virtual environment, please replace ``pip`` with ``uv pip``
48-
in the following commands.
4928

5029
- Install the Isaac Lab packages along with Isaac Sim:
5130

@@ -63,14 +42,14 @@ Installing dependencies
6342

6443
.. code-block:: bash
6544
66-
pip install -U torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
45+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
6746
6847
.. tab-item:: :icon:`fa-brands fa-windows` Windows (x86_64)
6948
:sync: windows-x86_64
7049

7150
.. code-block:: bash
7251
73-
pip install -U torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
52+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
7453
7554
.. tab-item:: :icon:`fa-brands fa-linux` Linux (aarch64)
7655
:sync: linux-aarch64

docs/source/setup/installation/pip_installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ Installing dependencies
5858

5959
.. code-block:: bash
6060
61-
pip install -U torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
61+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
6262
6363
.. tab-item:: :icon:`fa-brands fa-windows` Windows (x86_64)
6464
:sync: windows-x86_64
6565

6666
.. code-block:: bash
6767
68-
pip install -U torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
68+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
6969
7070
.. tab-item:: :icon:`fa-brands fa-linux` Linux (aarch64)
7171
:sync: linux-aarch64

docs/source/setup/quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ To begin, we first define our virtual environment.
6666
env_isaaclab\Scripts\activate
6767
6868
69-
Next, install a CUDA-enabled PyTorch 2.7.0 build.
69+
Next, install a CUDA-enabled PyTorch build.
7070

7171
.. code-block:: bash
7272
73-
pip install -U torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
73+
pip install -U torch==2.9.0 torchvision==0.24.0 --index-url https://download.pytorch.org/whl/cu128
7474
7575
7676
Before we can install Isaac Sim, we need to make sure pip is updated. To update pip, run

isaaclab.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ rem --- Ensure CUDA PyTorch helper ------------------------------------------
4242
:ensure_cuda_torch
4343
rem expects: !python_exe! set by :extract_python_exe
4444
setlocal EnableExtensions EnableDelayedExpansion
45-
set "TORCH_VER=2.7.0"
46-
set "TV_VER=0.22.0"
45+
set "TORCH_VER=2.9.0"
46+
set "TV_VER=0.24.0"
4747
set "CUDA_TAG=cu128"
4848
set "PYTORCH_INDEX=https://download.pytorch.org/whl/%CUDA_TAG%"
4949

isaaclab.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,12 @@ ensure_cuda_torch() {
112112

113113
# choose pins per arch
114114
local torch_ver tv_ver cuda_ver
115+
torch_ver="2.9.0"
116+
tv_ver="0.24.0"
117+
115118
if is_arm; then
116-
torch_ver="2.9.0"
117-
tv_ver="0.24.0"
118119
cuda_ver="130"
119120
else
120-
torch_ver="2.7.0"
121-
tv_ver="0.22.0"
122121
cuda_ver="128"
123122
fi
124123

scripts/benchmarks/benchmark_rsl_rl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@
7171
import torch
7272
from datetime import datetime
7373

74+
from rsl_rl.runners import OnPolicyRunner
75+
7476
from isaaclab.envs import DirectMARLEnvCfg, DirectRLEnvCfg, ManagerBasedRLEnvCfg
7577
from isaaclab.utils.dict import print_dict
7678
from isaaclab.utils.io import dump_yaml
77-
from rsl_rl.runners import OnPolicyRunner
7879

7980
from isaaclab_rl.rsl_rl import RslRlOnPolicyRunnerCfg, RslRlVecEnvWrapper
8081

scripts/demos/h1_locomotion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
from omni.kit.viewport.utility import get_viewport_from_window_name
5050
from omni.kit.viewport.utility.camera_state import ViewportCameraState
5151
from pxr import Gf, Sdf
52+
from rsl_rl.runners import OnPolicyRunner
5253

5354
from isaaclab.envs import ManagerBasedRLEnv
5455
from isaaclab.utils.math import quat_apply
5556
from isaaclab.utils.pretrained_checkpoint import get_published_pretrained_checkpoint
56-
from rsl_rl.runners import OnPolicyRunner
5757

5858
from isaaclab_rl.rsl_rl import RslRlOnPolicyRunnerCfg, RslRlVecEnvWrapper
5959

scripts/reinforcement_learning/rsl_rl/play.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
import time
5959
import torch
6060

61+
from rsl_rl.runners import DistillationRunner, OnPolicyRunner
62+
6163
from isaaclab.envs import (
6264
DirectMARLEnv,
6365
DirectMARLEnvCfg,
@@ -68,7 +70,6 @@
6870
from isaaclab.utils.assets import retrieve_file_path
6971
from isaaclab.utils.dict import print_dict
7072
from isaaclab.utils.pretrained_checkpoint import get_published_pretrained_checkpoint
71-
from rsl_rl.runners import DistillationRunner, OnPolicyRunner
7273

7374
from isaaclab_rl.rsl_rl import RslRlBaseRunnerCfg, RslRlVecEnvWrapper, export_policy_as_jit, export_policy_as_onnx
7475

0 commit comments

Comments
 (0)