Skip to content

TPU Testing

TPU Testing #74

Workflow file for this run

name: TPU Integration Test
run-name: TPU Testing
on:
workflow_dispatch:
push:
branches:
- master
jobs:
tpu-test:
runs-on: v4-runner-set
steps:
- name: Checkout and Setup PyTorch Repo
run: |
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch/
python3 setup.py install --user
- name: Checkout PyTorch/XLA Repo
uses: actions/checkout@v4
with:
path: pytorch/xla
- name: Run PyTorch/XLA Setup
env:
BAZEL_VERBOSE: 1
BUNDLE_LIBTPU: 1
TPUVM_MODE: 1
run: |
cd pytorch/xla
python3 setup.py install --user
- name: Run Tests
env:
PJRT_DEVICE: TPU
run: |
pip install fsspec
pip install rich
cd pytorch/xla
test/tpu/run_tests.sh