Repository navigation
chore(dependencies): pin torch to CPU wheel on Linux x86_64 - #4473
Merged
Merged
Conversation
PyPI's torch 2.8.0 wheel for Linux x86_64 transitively installs the proprietary NVIDIA CUDA shared libraries (nvidia-*-cu12), which are not ASF-compatible for binary redistribution. Pin to the CPU-only wheel from PyTorch's CPU index on that platform via a PEP 508 marker; other platforms continue to resolve torch 2.8.0 from PyPI, which is already a CPU build on macOS/Windows/Linux-aarch64. GPU users install the CUDA wheel themselves post-install. Closes apache#4472. Generated-by: Claude Code (Claude Opus 4.7) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
aglinxinyuan
requested changes
Apr 22, 2026
aglinxinyuan
enabled auto-merge (squash)
April 23, 2026 00:02
bobbai00
added a commit
to bobbai00/texera
that referenced
this pull request
Apr 23, 2026
…nt deps Removes entries that are no longer bundled after the following upstream PRs: - apache#4463 drop `twittered` (and its Sonar/jtidy/Maven-tooling transitive chain) - apache#4474 drop `python-lsp-server` (and its pylint/rope/astroid chain + extras) - apache#4475 drop `jschardet` from the frontend - apache#4473 pin torch to CPU wheel on Linux x86_64 (removes nvidia-*-cu12) - apache#4386 drop `mysql-connector-java` Adds entries for newly-bundled deps surfaced by the reconciliation: - `org.eclipse.collections` + `-api` under EDL-1.0 - Python `imageio` under BSD-2-Clause - Python `lazy-loader`, `scikit-image`, `tifffile` under BSD-3-Clause Also drops the now-redundant NOTICE-binary W3C block for xml-apis, the entire NVIDIA CUDA section in LICENSE-binary, and the Java HTML Tidy License section. Verified: the checker reports zero STALE/ADDED across JVM, Python, and npm ecosystems against a fresh `sbt dist` / frontend build / pip install. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
bobbai00
added a commit
to bobbai00/texera
that referenced
this pull request
Apr 23, 2026
…nt deps Removes entries that are no longer bundled after the following upstream PRs: - apache#4463 drop `twittered` (and its Sonar/jtidy/Maven-tooling transitive chain) - apache#4474 drop `python-lsp-server` (and its pylint/rope/astroid chain + extras) - apache#4475 drop `jschardet` from the frontend - apache#4473 pin torch to CPU wheel on Linux x86_64 (removes nvidia-*-cu12) - apache#4386 drop `mysql-connector-java` Adds entries for newly-bundled deps surfaced by the reconciliation: - `org.eclipse.collections` + `-api` under EDL-1.0 - Python `imageio` under BSD-2-Clause - Python `lazy-loader`, `scikit-image`, `tifffile` under BSD-3-Clause Also drops the now-redundant NOTICE-binary W3C block for xml-apis, the entire NVIDIA CUDA section in LICENSE-binary, and the Java HTML Tidy License section. Verified: the checker reports zero STALE/ADDED across JVM, Python, and npm ecosystems against a fresh `sbt dist` / frontend build / pip install. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
) ### What changes were proposed in this PR? Pin torch to PyTorch's CPU wheel on Linux x86_64 so the proprietary NVIDIA CUDA libraries (`nvidia-*-cu12`) are not installed. Other platforms fall through to plain `torch==2.8.0` from PyPI, which is already a CPU build. ### Any related issues, documentation, discussions? Closes apache#4472. ### How was this PR tested? `pip install --dry-run -r amber/operator-requirements.txt` installs no `nvidia-*` or `triton` packages on either macOS (picks plain 2.8.0) or Linux x86_64 (picks 2.8.0+cpu). ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.7) --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> Co-authored-by: Xinyuan Lin <[email protected]>
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Nov 10, 2026
…pache#9397) ### What changes were proposed in this PR? `amber/operator-requirements.txt` pinned PyTorch's CPU wheel only on Linux x86_64. Since apache#8812, the snapshot installer sends only local-version pins to the PyTorch index, so `torch==2.13.0` on Linux aarch64 resolves from PyPI, whose Linux wheels depend on the NVIDIA CUDA libraries. This PR pins `torch==2.13.0+cpu` on every Linux platform. Linux x86_64 gets the same wheel as before, and macOS and Windows still install `torch==2.13.0` from PyPI. ### Any related issues, documentation, discussions? Closes apache#9396. Same fix as apache#4473, for aarch64. ### How was this PR tested? - `bin/dockerfiles/snapshot/test_install.sh` passes. - Ran the runtime stage's install steps (its base image, `install.sh`, `PACKAGE_SNAPSHOT=2026-11-09`) in linux/arm64 and linux/amd64 containers. Both install `torch 2.13.0+cpu` and no `nvidia-*`, `triton` or `cuda-*` packages. The `1.3.0-incubating-rc1` arm64 coordinator image, built without this change, has 15 `nvidia-*` packages. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Pin torch to PyTorch's CPU wheel on Linux x86_64 so the proprietary NVIDIA CUDA libraries (
nvidia-*-cu12) are not installed.Other platforms fall through to plain
torch==2.8.0from PyPI, which is already a CPU build.Any related issues, documentation, discussions?
Closes #4472.
How was this PR tested?
pip install --dry-run -r amber/operator-requirements.txtinstalls nonvidia-*ortritonpackages on either macOS (picks plain 2.8.0) or Linux x86_64 (picks 2.8.0+cpu).Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.7)