Skip to content

Commit

Permalink
delete the tpu
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwh committed May 20, 2024
1 parent de5a6c4 commit 4d4a99f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tpu_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ jobs:
export TPU_NAME=ci-run-${{ github.run_id }}
eval "$(ssh-agent -s)"
infra/babysit-tpu-vm.sh $TPU_NAME -z ${{ matrix.tpu-zone }} -t v4-8 --preemptible -s infra/helpers/setup-tpu-vm-tests.sh -b ${{ github.sha }} --retries 3 -- \
bash levanter/infra/run.sh pytest levanter/tests
PYTHONPATH=$PYTHONPATH:levanter/tests bash levanter/infra/run.sh pytest levanter/tests
- name: Cleanup
if: ${{ always() }}
run: |
gcloud compute tpus tpu-vm delete -y $TPU_NAME --zone ${{ matrix.tpu-zone }} --quiet

0 comments on commit 4d4a99f

Please sign in to comment.