@@ -18,37 +18,42 @@ concurrency:
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
- gather-models :
22
- runs-on : ubuntu-22.04
23
- outputs :
24
- models : ${{ steps.gather-models.outputs.models }}
25
- steps :
26
- - uses : actions/checkout@v3
27
- with :
28
- submodules : ' false'
29
- - uses : actions/setup-python@v4
30
- with :
31
- python-version : ' 3.10'
32
- - name : Extract the list of models to test
33
- id : gather-models
34
- run : |
35
- set -eux
36
-
37
- PYTHONPATH="${PWD}" python .ci/scripts/gather_test_models.py --target-os macos --event "${GITHUB_EVENT_NAME}"
38
-
39
21
test-models-macos :
40
22
name : test-models-macos
41
23
uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
42
- needs : gather-models
43
24
strategy :
44
- matrix : ${{ fromJSON(needs.gather-models.outputs.models) }}
25
+ matrix :
26
+ model : [
27
+ add, add_mul, emformer_join, emformer_transcribe, ic3, ic4, linear, llama2, mobilebert, mv2, mv3, resnet18, resnet50, vit, w2l,
28
+ efficient_sam, llama, llama3_2_vision_encoder, lstm, mul, phi-4-mini, qwen2_5, softmax
29
+ ]
30
+ backend : [portable, xnnpack-quantization-delegation]
31
+ build-tool : [cmake]
32
+ runner : [macos-m1-stable]
33
+ exclude :
34
+ - model : efficient_sam
35
+ backend : xnnpack-quantization-delegation
36
+ - model : llama
37
+ backend : xnnpack-quantization-delegation
38
+ - model : llama3_2_vision_encoder
39
+ backend : xnnpack-quantization-delegation
40
+ - model : lstm
41
+ backend : xnnpack-quantization-delegation
42
+ - model : mul
43
+ backend : xnnpack-quantization-delegation
44
+ - model : phi-4-mini
45
+ backend : xnnpack-quantization-delegation
46
+ - model : qwen2_5
47
+ backend : xnnpack-quantization-delegation
48
+ - model : softmax
49
+ backend : xnnpack-quantization-delegation
45
50
fail-fast : false
46
51
with :
47
52
runner : ${{ matrix.runner }}
48
53
python-version : ' 3.11'
49
54
submodules : ' true'
50
55
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
51
- timeout : ${{ matrix.timeout }}
56
+ timeout : 90
52
57
script : |
53
58
MODEL_NAME=${{ matrix.model }}
54
59
BUILD_TOOL=${{ matrix.build-tool }}
0 commit comments