Skip to content

Commit 65352ad

Browse files
authored
Fix failing tpu tests (#3261)
* Update tpu-tests.yml * Update tpu-tests.yml
1 parent 2ac34be commit 65352ad

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/tpu-tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636

3737
steps:
3838
- uses: actions/checkout@v4
39-
- name: Set up Python 3.9
39+
- name: Set up Python 3.10
4040
uses: actions/setup-python@v4
4141
with:
42-
python-version: "3.9"
42+
python-version: "3.10"
4343
architecture: "x64"
4444

4545
- name: Get year & week number
@@ -50,7 +50,7 @@ jobs:
5050
- name: Get pip cache dir
5151
id: pip-cache
5252
run: |
53-
pip3 install -U pip
53+
pip3 install -U "pip<24"
5454
echo "pip_cache=$(pip cache dir)" >> $GITHUB_OUTPUT
5555
shell: bash -l {0}
5656

@@ -70,10 +70,9 @@ jobs:
7070
pip install mkl==2021.4.0
7171
7272
## Install torch & xla and torchvision
73-
pip install --pre https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch-nightly-cp39-cp39-linux_x86_64.whl
74-
pip install --pre https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-nightly-cp39-cp39-linux_x86_64.whl
75-
pip install --pre https://storage.googleapis.com/tpu-pytorch/wheels/colab/torchvision-nightly-cp39-cp39-linux_x86_64.whl
76-
73+
pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
74+
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-nightly-cp310-cp310-linux_x86_64.whl
75+
7776
# Check installation
7877
python -c "import torch"
7978

0 commit comments

Comments
 (0)