Repository navigation
Update linux entry and install command for CUDA ARM64 - #2149
nkhasbag-nv wants to merge 1 commit into
Conversation
✅ Deploy Preview for pytorch-dot-org-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| "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/", |
There was a problem hiding this comment.
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/" |
There was a problem hiding this comment.
please point to https://pytorch.org/get-started/additional-platforms/ and in previous change as well
There was a problem hiding this comment.
@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.
|
@nkhasbag-nv Is it possible to separate out the fix for: |
fb6e085 to
0fc021c
Compare
|
Thank you @nWEIdia for clarifying. Fixed it. This PR only has the linux entry now. |
| "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/", |
There was a problem hiding this comment.
I think previous @atalman had a suggestion about using --index-url for security reasons.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
| }, | ||
| "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/", |
There was a problem hiding this comment.
same here about --extra-index-url vs --index-url.
There was a problem hiding this comment.
should not be the focus of this PR, as this only added "," for this line.
|
The PR title is about 2.15.0 but code changes do not seem to be 2.15.0 specific, am I missing something? |
|
Left over title from original change. Fixed. Will update 2.15.0 in a different PR |
|
@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. |
0fc021c to
bbcc5ca
Compare
Replace pip --extra-index-url with `uv pip install --index` for the Windows stable and preview commands.
bbcc5ca to
46ec611
Compare
|
Thanks for the reviews. I've updated the PR Removed 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 |
|
PR moved to test-infra. pytorch/test-infra#9377 |
Description
Update linux entry for CUDA ARM64
Replace
pip --extra-index-urlwithuv pip install --indexfor the Windows stable and preview commands.cc @albanD @zeshengzong @atalman