Skip to content

Update linux entry and install command for CUDA ARM64 - #2149

Closed
nkhasbag-nv wants to merge 1 commit into
pytorch:sitefrom
nkhasbag-nv:cuda-woa-updates
Closed

nkhasbag-nv wants to merge 1 commit into
pytorch:sitefrom
nkhasbag-nv:cuda-woa-updates

Conversation

@nkhasbag-nv

@nkhasbag-nv nkhasbag-nv commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update linux entry for CUDA ARM64
Replace pip --extra-index-url with uv pip install --index for the Windows stable and preview commands.

cc @albanD @zeshengzong @atalman

@netlify

netlify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pytorch-dot-org-preview ready!

Name Link
🔨 Latest commit 46ec611
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-dot-org-preview/deploys/6aeaaa89669488b4b34b5451
😎 Deploy Preview https://deploy-preview-2149--pytorch-dot-org-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@nkhasbag-nv
nkhasbag-nv marked this pull request as ready for review October 29, 2026 02:49
Comment thread _additional_platforms/cuda_woa.json Outdated
"support_channel": "https://github.com/pytorch/pytorch/issues",
"stable": {
"windows": "python -m pip install \"torch==2.14.0+cu134\" \"torchvision==0.29.0+cu134\" \"torchaudio==2.11.0+cu134\" --extra-index-url https://pypi.nvidia.com/nvtorch_oot/"
"windows": "python -m pip install \"torch==2.15.0+cu134\" \"torchvision==0.29.0+cu134\" \"torchaudio==2.11.0+cu134\" --extra-index-url https://pypi.nvidia.com/nvtorch_oot/",

@atalman atalman Oct 30, 2026 •

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.

Why are we not following torch here ? which has torchvision is 0.29.2 and torchaudio is 2.11.1 ?

Also please use --index-url rather then extra-index-url which create security issue

"preview": {
"windows": "python -m pip install --pre torch torchvision torchaudio --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly/"
"windows": "python -m pip install --pre torch torchvision torchaudio --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly/",
"linux": "Please go to getting started page for installation instructions: https://pytorch.org/get-started/locally/"

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.

please point to https://pytorch.org/get-started/additional-platforms/ and in previous change as well

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@atalman , this is about pointing back to the main landing page for Linux CUDA on Aarch64.
Without this PR's change, it reads "CUDA 13.4 ARM64 is not supported on linux" which is a wrong statement taken out of additional platform context.

@nWEIdia

nWEIdia commented Oct 30, 2026

Copy link
Copy Markdown

@nkhasbag-nv Is it possible to separate out the fix for:
"CUDA 13.4 ARM64 is not supported on linux" while working on address other aspects?

@nkhasbag-nv

Copy link
Copy Markdown
Contributor Author

Thank you @nWEIdia for clarifying. Fixed it. This PR only has the linux entry now. torch 2.15.0 can be updated in a different PR

Comment thread _additional_platforms/cuda_woa.json Outdated
"support_channel": "https://github.com/pytorch/pytorch/issues",
"stable": {
"windows": "python -m pip install \"torch==2.14.0+cu134\" \"torchvision==0.29.0+cu134\" \"torchaudio==2.11.0+cu134\" --extra-index-url https://pypi.nvidia.com/nvtorch_oot/"
"windows": "python -m pip install \"torch==2.14.0+cu134\" \"torchvision==0.29.0+cu134\" \"torchaudio==2.11.0+cu134\" --extra-index-url https://pypi.nvidia.com/nvtorch_oot/",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think previous @atalman had a suggestion about using --index-url for security reasons.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Switching to --index-url would require the NVIDIA index to host every dependency of torch (numpy, sympy, filelock, etc.), which means duplicating packages already on PyPI.

For the stable commands, the exact pins (e.g. torch==2.14.0+cu134) limit dependency-confusion risk. In my knowledge, +cu134 local version can't be resolved from public PyPI.

@nWEIdia nWEIdia Nov 2, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ok, since the --extra-index-url is 100% nvidia maintained, the security risk is low.
@atalman what do you think? I guess this is different from using --extra-index-url referencing a public channel.

Update: the above assumption is incorrect. the security risk about --extra-index-url isn't about the https://pypi.nvidia.com/nvtorch_oot/ , but the potential of this installing an unverified package from PYPI (e.g. if we forgot about this and introduced a new package named my_test, then the attacker could facilitate a malicious PYPI my_test and we are exposing those to users by using --extra-index-url)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Also, to be clear, this line is NOT (should not) be the focus of this PR, as the change is simply adding an ","
we should really just review the next line. @atalman
Resolving this. Please unresolve if needed.

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.

I am not sure where I mentioned it, but you can split the command in two: first part download all the dependencies you need from Pypi, second only download the part from nv using --index-url.

PT packages have be owned by this issue before. So we really don't want to have that.

@nkhasbag-nv nkhasbag-nv Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the suggestion @albanD. I plan to do that and update torch to 2.15.0 together, in a different PR. Will post it when ready

Comment thread _additional_platforms/cuda_woa.json Outdated
},
"preview": {
"windows": "python -m pip install --pre torch torchvision torchaudio --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly/"
"windows": "python -m pip install --pre torch torchvision torchaudio --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly/",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same here about --extra-index-url vs --index-url.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should not be the focus of this PR, as this only added "," for this line.

@nWEIdia

nWEIdia commented Nov 2, 2026

Copy link
Copy Markdown

The PR title is about 2.15.0 but code changes do not seem to be 2.15.0 specific, am I missing something?

@nkhasbag-nv nkhasbag-nv changed the title Update linux entry and torch stable version to 2.15.0 for CUDA ARM64 Update linux entry for CUDA ARM64 Nov 2, 2026
@nkhasbag-nv

Copy link
Copy Markdown
Contributor Author

Left over title from original change. Fixed. Will update 2.15.0 in a different PR

@nWEIdia nWEIdia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the update!

@nkhasbag-nv
nkhasbag-nv requested a review from atalman November 2, 2026 18:22
@nWEIdia

nWEIdia commented Nov 2, 2026 •

Copy link
Copy Markdown

@nkhasbag-nv Given @albanD and @atalman 's comments and my refreshed understanding of the risks of --extra-index-url, this should be a banned thing in the first place.
So rather than doing the update with Torch 2.15.0 update. Please implement according to @albanD 's suggestion: to instruction users to download pypi packages themselves, and then we can update this PR to use precisely just --indexl-url.
In the long run, when we have mirrored all pypi dependencies in the --index-url, then we can remove the texts of instructing users to download themselves.

@nWEIdia nWEIdia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please implement @albanD 's suggestion in this PR rather than in a separate one.

@nkhasbag-nv nkhasbag-nv changed the title Update linux entry for CUDA ARM64 Update linux entry and install command for CUDA ARM64 Nov 4, 2026
Replace pip --extra-index-url with `uv pip install --index` for the Windows stable and preview commands.
@nkhasbag-nv

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews. I've updated the PR

Removed --extra-index-url. Windows now uses uv pip install --index ... for both stable and preview.

Per uv's index docs, the default first-index strategy stops at the first index that has a given package. If a package exists on the NVIDIA index, it is always installed from there and never from PyPI. The docs describe this as the protection against dependency-confusion attacks. So, torch and torchvision can only come from the NVIDIA index, while their dependencies (numpy, sympy, etc.) resolve from PyPI. This avoids maintaining a manual dependency list and NVIDIA mirroring PyPI packages

@nkhasbag-nv
nkhasbag-nv requested review from albanD and nWEIdia November 4, 2026 03:50

@albanD albanD 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.

Thanks for the update.
This change sounds good, but with the migration, please sync with @atalman on slack if this should land in this repo or test-infra at this point.

@nkhasbag-nv

Copy link
Copy Markdown
Contributor Author

PR moved to test-infra. pytorch/test-infra#9377
Closing this PR

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.

4 participants