This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-9397-4fba9ebcfaa3fc8437ef4c2479fef3d0ebb0071b in repository https://gitbox.apache.org/repos/asf/texera.git
commit 5647f440c7b3ddd86906ba000277fbcb2a564c22 Author: Meng Wang <[email protected]> AuthorDate: Tue Nov 10 04:03:52 2026 +0000 fix(deps, pyamber): pin the CPU torch wheel on all Linux platforms (#9397) ### What changes were proposed in this PR? `amber/operator-requirements.txt` pinned PyTorch's CPU wheel only on Linux x86_64. Since #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 #9396. Same fix as #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) --- amber/operator-requirements.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/amber/operator-requirements.txt b/amber/operator-requirements.txt index c0a8f37f17..7c441c4d5f 100644 --- a/amber/operator-requirements.txt +++ b/amber/operator-requirements.txt @@ -20,10 +20,11 @@ plotly==5.24.1 praw==7.6.1 pillow==12.3.0 -# Pin torch to the CPU wheel on Linux x86_64 to avoid the NVIDIA CUDA deps. +# Pin torch to the CPU wheel on Linux: PyPI's Linux wheels, x86_64 and aarch64 +# alike, depend on the NVIDIA CUDA libraries. --extra-index-url https://download.pytorch.org/whl/cpu -torch==2.13.0+cpu ; platform_system == "Linux" and platform_machine == "x86_64" -torch==2.13.0 ; platform_system != "Linux" or platform_machine != "x86_64" +torch==2.13.0+cpu ; platform_system == "Linux" +torch==2.13.0 ; platform_system != "Linux" scikit-learn==1.7.2 transformers==5.10.1
