Skip to content

Commit 6f166f0

Browse files
committed
Test models on linux aarch64 graviton instances
1 parent 0dd7d66 commit 6f166f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/trunk.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,37 @@ jobs:
6666
# Build and test executorch
6767
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}" "${DEMO_BACKEND_DELEGATION}"
6868
69+
test-models-linux-aarch64:
70+
name: test-models-linux-aarch64
71+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
72+
permissions:
73+
id-token: write
74+
contents: read
75+
strategy:
76+
matrix:
77+
model: [linear, add, add_mul, dl3, ic3, ic4, mv2, mv3, resnet18, resnet50, vit, w2l, edsr, mobilebert, emformer_join, emformer_predict, emformer_transcribe]
78+
backend: [portable, xnnpack-quantization-delegation]
79+
runner: [linux.arm64.2xlarge]
80+
fail-fast: false
81+
with:
82+
runner: ${{ matrix.runner }}
83+
docker-image: executorch-ubuntu-22.04-gcc11-aarch64
84+
submodules: 'true'
85+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
86+
timeout: 90
87+
script: |
88+
# The generic Linux job chooses to use base env, not the one setup by the image
89+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
90+
conda activate "${CONDA_ENV}"
91+
92+
MODEL_NAME=${{ matrix.model }}
93+
BUILD_TOOL="cmake"
94+
BACKEND=${{ matrix.backend }}
95+
96+
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "${BUILD_TOOL}"
97+
# Build and test ExecuTorch
98+
PYTHON_EXECUTABLE=python bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}"
99+
69100
test-custom-ops-macos:
70101
name: test-custom-ops-macos
71102
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main

0 commit comments

Comments
 (0)