Skip to content

Commit f03c34c

Browse files
committed
Make sure pallas gets installed
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
1 parent 9b2fe75 commit f03c34c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile.tpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \
1212
# Install Python dependencies
1313
COPY requirements-common.txt requirements-common.txt
1414
COPY requirements-tpu.txt requirements-tpu.txt
15-
RUN grep -v -E "^torch(_xla)?\b" requirements-tpu.txt > requirements-filtered.txt
15+
RUN grep -v -E "^torch\b" requirements-tpu.txt > requirements-filtered.txt
1616
RUN --mount=type=cache,target=/root/.cache/pip \
1717
python3 -m pip install -r requirements-filtered.txt
1818

requirements-tpu.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ ray[default]
1919
--find-links https://storage.googleapis.com/jax-releases/jaxlib_nightly_releases.html
2020
torch==2.7.0.dev20250224+cpu
2121
torchvision==0.22.0.dev20250224+cpu
22-
torch_xla[tpu, pallas] @ https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.7.0.dev20250224-cp39-cp39-linux_x86_64.whl ; python_version == "3.9"
23-
torch_xla[tpu, pallas] @ https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.7.0.dev20250224-cp310-cp310-linux_x86_64.whl ; python_version == "3.10"
24-
torch_xla[tpu, pallas] @ https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.7.0.dev20250224-cp311-cp311-linux_x86_64.whl ; python_version == "3.11"
22+
torch_xla[tpu, pallas] # Install whichever version is compatible with torch

0 commit comments

Comments
 (0)