Fix Windows installer torch index override - #6972
danielhanchen merged 6 commits into
Conversation
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates the install.ps1 script to use the --default-index flag instead of --index-url when running uv pip install commands for PyTorch. This ensures that installer-managed PyTorch indexes correctly override inherited uv defaults. Additionally, a new test class TestInstallPs1UvDefaultIndex has been added to tests/python/test_tokenizers_and_torch_constraint.py to verify this behavior and prevent regressions. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Pushed a follow-up commit (d57e119) extending this to
I did not reuse
Instead, Verified locally:
|
|
Pushed a1b521f hardening the While driving the real Validated on Linux against real uv (metadata-only,
|
|
Extended the same fix to the Linux/Mac installer in 9936871.
Scope checks for the rest of the Linux/Mac surface:
Validated:
|
|
Hardened all three installers in 44f360a to neutralize every uv index env var for pinned torch installs, not just Reason: What changed:
Validated on Linux (real uv, metadata-only) and by driving the real helper functions:
|
for more information, see https://pre-commit.ci
|
@codex review |
|
/gemini review |
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
--index-urlto--default-indexUV_DEFAULT_INDEXdoes not override the CUDA/ROCm torch index selected by the installerFixes #6898.
Tests
pytest tests/python/test_tokenizers_and_torch_constraint.py::TestStructuralInstallPs1Unchanged tests/python/test_tokenizers_and_torch_constraint.py::TestInstallPs1UvDefaultIndex -qpytest tests/python/test_tokenizers_and_torch_constraint.py -q -m "not e2e"git diff --check