forked from pytorch/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.24 KB
/
_tpu_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: TPU Integration Test
on:
workflow_call:
jobs:
tpu-test:
runs-on: v4-runner-set
steps:
- name: Checkout actions
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/workflows/setup
path: .actions
- name: Setup
uses: ./.actions/.github/workflows/setup
with:
torch-commit: ${{ inputs.torch-commit }}
wheels-artifact: torch-xla-wheels
- name: Install test dependencies
shell: bash
run: |
# TODO: Add these in setup.py
pip install --upgrade pip
pip install fsspec
pip install rich
# Jax nightly is needed for pallas tests.
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
pip install torch_xla[tpu] -f https://storage.googleapis.com/libtpu-wheels/index.html -f https://storage.googleapis.com/libtpu-releases/index.html
pip install --upgrade protobuf
- name: Run Tests
env:
PJRT_DEVICE: TPU
TPU_LOG_DIR: tpu_logs
run: |
cd pytorch/xla
test/tpu/run_tests.sh