Skip to content

Commit 377b587

Browse files
committed
Test models on linux aarch64 graviton instances
1 parent 08bc5da commit 377b587

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

0 commit comments

Comments
 (0)