@@ -18,8 +18,8 @@ concurrency:
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
- test-models-macos :
22
- name : test-models-macos
21
+ test-models-macos-cpu :
22
+ name : test-models-macos-cpu
23
23
uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
24
24
strategy :
25
25
matrix :
55
55
# Build and test executorch
56
56
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}"
57
57
58
+ test-models-macos-coreml :
59
+ name : test-models-macos-coreml
60
+ uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
61
+ strategy :
62
+ matrix :
63
+ model : [dl3, edsr, efficient_sam, emformer_join, emformer_transcribe, ic3, mobilebert, mv3, resnet50, vit, w2l]
64
+ backend : [coreml-test] # Just "coreml" tests AOT only. "coreml-test" tests both AOT and runtime.. Sigh...
65
+ fail-fast : false
66
+ with :
67
+ runner : macos-m1-stable
68
+ python-version : ' 3.11'
69
+ submodules : ' recursive'
70
+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
71
+ timeout : 90
72
+ script : |
73
+ MODEL_NAME=${{ matrix.model }}
74
+ BUILD_TOOL=cmake
75
+ BACKEND=${{ matrix.backend }}
76
+
77
+ bash .ci/scripts/setup-conda.sh
78
+ # Setup MacOS dependencies as there is no Docker support on MacOS atm
79
+ PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh --build-tool "${BUILD_TOOL}"
80
+ # Build and test executorch
81
+ PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}"
82
+
58
83
test-models-linux-aarch64 :
59
84
name : test-models-linux-aarch64
60
85
uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
@@ -567,8 +592,8 @@ jobs:
567
592
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
568
593
PYTHON_EXECUTABLE=python bash .ci/scripts/test_model.sh ${{ matrix.model }} "cmake" "qnn"
569
594
570
- test-apple-model :
571
- name : test-apple-model
595
+ test-models-macos-mps :
596
+ name : test-models-macos-mps
572
597
uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
573
598
strategy :
574
599
fail-fast : false
@@ -585,16 +610,10 @@ jobs:
585
610
586
611
# Setup MacOS dependencies as there is no Docker support on MacOS atm
587
612
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh --build-tool "${BUILD_TOOL}"
588
- PYTHON_EXECUTABLE=python ${CONDA_RUN} bash backends/apple/coreml/scripts/install_requirements.sh
589
- echo "Finishing installing coreml."
590
613
591
- # Build and test coreml model
614
+ # Build and test models on mps
592
615
MODELS=(mv3 ic4 resnet50 edsr mobilebert w2l)
593
616
for MODEL_NAME in "${MODELS[@]}"; do
594
- echo "::group::Exporting coreml model: $MODEL_NAME"
595
- PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "coreml"
596
- echo "::endgroup::"
597
-
598
617
echo "::group::Exporting mps model: $MODEL_NAME"
599
618
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "mps"
600
619
echo "::endgroup::"
0 commit comments