Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix torchvision installation in tpu ci test setup script #6704

Merged
merged 13 commits into from
Mar 12, 2024
3 changes: 3 additions & 0 deletions infra/ansible/e2e_tests.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ RUN ansible-playbook -vvv playbook.yaml -e "stage=release" -e "${ansible_vars}"
# Copy test sources.
RUN mkdir -p /src/pytorch/xla
COPY --from=build /src/pytorch/xla/test /src/pytorch/xla/test
# Copy ci_commit_pins from upstream
RUN mkdir -p /src/pytorch/.github
COPY --from=build /src/pytorch/.github/ci_commit_pins /src/pytorch/.github/ci_commit_pins

# Copy and install wheels.
WORKDIR /tmp/wheels
Expand Down
4 changes: 2 additions & 2 deletions test/tpu/xla_test_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ spec:
- bash
- -cxe
- |
# TODO: new TPUCI please remove this short term hack for `RuntimeError: operator torchvision::nms does not exist`
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
# Torchvision installed from a commit requires torch, need to install after torch is compiled.
pip install --no-use-pep517 "git+https://github.com/pytorch/vision.git@$(cat /src/pytorch/.github/ci_commit_pins/vision.txt)"
pip install expecttest==0.1.6
pip install rich
pip install torch_xla[pallas] -f https://storage.googleapis.com/jax-releases/jax_nightly_releases.html -f https://storage.googleapis.com/jax-releases/jaxlib_nightly_releases.html
Expand Down
Loading