-
Notifications
You must be signed in to change notification settings - Fork 24
29 lines (27 loc) · 1.05 KB
/
debug-metadata.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
name: Debug Metadata
on:
push:
jobs:
debug-dind:
name: Run TGI tests
runs-on: gcp-ct5lp-hightpu-8t-usc1-public-211
container:
image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/xla@sha256:8f1dcd5b03f993e4da5c20d17c77aff6a5f22d5455f8eb042d2e4b16ac460526
options: ${{ vars.V5_LITEPOD_8_ENV }} --shm-size "16gb" --privileged --ipc host -v /mnt/hf_cache:/mnt/cache/
env:
PJRT_DEVICE: TPU
steps:
- name: Install docker
run: |
apt-get update -y
apt-get install -y docker.io
- name: Debug XLA (run container)
run: |
docker run \
--privileged \
--ipc host \
--shm-size=16G \
-v /mnt/hf_cache:/mnt/cache/ \
-e PJRT_DEVICE=TPU \
us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/xla@sha256:8f1dcd5b03f993e4da5c20d17c77aff6a5f22d5455f8eb042d2e4b16ac460526 \
bash -c "python -c 'import torch_xla.core.xla_model as xm; assert xm.xla_device().type == \"xla\", \"XLA device not available\"'"