Skip to content

Fixes torch nightly version install in arm system#3464

Merged
kellyguo11 merged 2 commits into
isaac-sim:release/2.3.0from
ooctipus:upstream/fix_release_2.3.0_arm_torch_version
Sep 16, 2025
Merged

Fixes torch nightly version install in arm system#3464
kellyguo11 merged 2 commits into
isaac-sim:release/2.3.0from
ooctipus:upstream/fix_release_2.3.0_arm_torch_version

Conversation

@ooctipus

Copy link
Copy Markdown
Collaborator

Description

This PR improves the robustness in detecting arm system and correctly install torch nightly build for cuda130

Fixes # (issue)

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • 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

@kellyguo11 kellyguo11 changed the title fix torch nightly version install in arm system Fixes torch nightly version install in arm system Sep 16, 2025
Comment thread isaaclab.sh

# read installed torch version (e.g., "2.7.0+cu128"), empty if missing
local v=""
if "$py" -m pip show torch >/dev/null 2>&1; then

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.

do we need to accommodate for the case where no torch is installed?

@ooctipus ooctipus Sep 16, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it works fine when Torch isn’t installed. basically no printing of Found PyTorch verison and will execute fresh install in next lines

Comment thread isaaclab.sh
@@ -102,37 +102,34 @@ is_arm() {
}

ensure_cuda_torch() {

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.

General question: Is there a reason why we are enforcing torch CUDA in our install scripts and not via the setup.py?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ahh good point

IIRC setup.py's wheel sometime gets a bit unrealible, and had to do more explicit install in bash.

If above point is not true anymore, I think it might be an historical reason?
I was checking the commit history of this file and explicit installation of pytorch is introduced here, 0173252, which seems the intend is to fix the pytorch version docker

The right path forward seems like that we need to ensure we have arm machine running on ci in addition to linux. and whatever changes we make here needs to work on those machine as well. So far I mostly have just been mannually checking if it works in ARM

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.

ya the setup.py cuda build of torch is very unreliable on windows especially and it will always install the cpu build instead and leads to more errors when we run our workflows :( not sure if uv can do a better job at that though, that might be something we can look into as well.

@kellyguo11 kellyguo11 merged commit 342d1e8 into isaac-sim:release/2.3.0 Sep 16, 2025
4 of 5 checks passed
@ooctipus ooctipus deleted the upstream/fix_release_2.3.0_arm_torch_version branch September 17, 2025 01:35
hougantc-nvda pushed a commit to hougantc-nvda/IsaacLab that referenced this pull request Nov 10, 2025
# Description

This PR improves the robustness in detecting arm system and correctly
install torch nightly build for cuda130

Fixes # (issue)


<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)

## Screenshots

Please attach before and after screenshots of the change if applicable.

<!--
Example:

| Before | After |
| ------ | ----- |
| _gif/png before_ | _gif/png after_ |

To upload images to a PR -- simply drag and drop an image while in edit
mode and it should upload the image directly. You can then paste that
source into the above before/after sections.
-->

## 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`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] 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
- [x] 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
-->

Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
hougantc-nvda pushed a commit to hougantc-nvda/IsaacLab that referenced this pull request Nov 10, 2025
# Description

This PR improves the robustness in detecting arm system and correctly
install torch nightly build for cuda130

Fixes # (issue)


<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)

## Screenshots

Please attach before and after screenshots of the change if applicable.

<!--
Example:

| Before | After |
| ------ | ----- |
| _gif/png before_ | _gif/png after_ |

To upload images to a PR -- simply drag and drop an image while in edit
mode and it should upload the image directly. You can then paste that
source into the above before/after sections.
-->

## 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`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] 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
- [x] 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
-->

Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants