TPU Testing #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |