1
1
name : MLPerf inference ResNet50 Closed Division for testing Compliance
2
2
3
3
on :
4
+ # push:
5
+ # branches:
6
+ # - test
4
7
schedule :
5
8
- cron : ' 0 0 * * 0' # Runs once a week
6
9
pull_request_target :
9
12
- ' .github/workflows/test-mlperf-inference-resnet50-closed-division.yml'
10
13
- ' **'
11
14
- ' !**.md'
12
- workflow_dispatch : # Allows manual triggering of the workflow
15
+ # workflow_dispatch: # Allows manual triggering of the workflow
13
16
jobs :
14
17
build :
15
18
name : MLPerf inference MLCommons ResNet50 Closed Division
35
38
with :
36
39
fetch-depth : 0
37
40
38
- - name : Check if the submission is for closed division
39
- run : |
40
- if git diff --name-only origin/${{ github.base_ref }}..HEAD | xargs grep -l "division=closed"; then
41
- echo "DIVISION_CLOSED=true" >> $GITHUB_ENV
42
- else
43
- echo "DIVISION_CLOSED=false" >> $GITHUB_ENV
44
- fi
45
-
46
- - name : Check value for the divison
47
- run : echo "DIVISION_CLOSED=${{ env.DIVISION_CLOSED }}"
48
-
49
- - name : Skip workflow if its an open division submission as no compliance test is required
50
- if : ${{ env.DIVISION_CLOSED == 'false' }}
51
- run : |
52
- echo "Skipping workflow because division=closed is not found in the changes."
53
- exit 0
54
-
55
41
- name : Set up Python ${{ matrix.python-version }}
56
42
uses : actions/setup-python@v3
57
43
with :
@@ -69,25 +55,46 @@ jobs:
69
55
- name : Pull MLOps repo
70
56
run : |
71
57
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
58
+
59
+
60
+ - name : Test MLPerf Inference ResNet50 Offline (Windows)
61
+ if : matrix.os == 'windows-latest'
62
+ run : |
63
+ mlcr run-mlperf, inference, _submission, _short, scenario=Offline, --division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --test_query_count=1000 --quiet --execution_mode=valid
72
64
73
- - name : Test MLPerf Inference ResNet50 (Windows)
65
+ - name : Test MLPerf Inference ResNet50 Singlestream (Windows)
74
66
if : matrix.os == 'windows-latest'
75
67
run : |
76
- mlcr run-mlperf,inference,_submission,_short,_all-scenarios, division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --quiet
77
-
68
+ mlcr run-mlperf, inference, _submission, _short, scenario=SingleStream, --division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --test_query_count=1000 --quiet --execution_mode=valid --target_latency=10
69
+
70
+ - name : Test MLPerf Inference ResNet50 Multistream (Windows)
71
+ if : matrix.os == 'windows-latest'
72
+ run : |
73
+ mlcr run-mlperf, inference, _submission, _short, scenario=MultiStream , --division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --quiet --execution_mode=valid --target_latency=10
74
+
78
75
- name : Compliance Test MLPerf Inference ResNet50 (Windows)
79
76
if : matrix.os == 'windows-latest'
80
- run : mlcr run-mlperf,inference,_submission,_short,_all-scenarios, division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --quiet --compliance=yes # mentioning only --compliance currently doesnt work needs to be --compliance=yes
77
+ run : mlcr run-mlperf, inference, _submission, _short,_all-scenarios, --division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --test_query_count=1000 --quiet --execution_mode=valid --compliance=yes # mentioning only --compliance currently doesnt work needs to be --compliance=yes
78
+
79
+ - name : Test MLPerf Inference ResNet50 Offline(Linux/macOS)
80
+ if : matrix.os != 'windows-latest'
81
+ run : |
82
+ mlcr run-mlperf, inference, _submission, _short, scenario=Offline, --division=closed --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --test_query_count=1000 --quiet --execution_mode=valid
81
83
82
- - name : Test MLPerf Inference ResNet50 (Linux/macOS)
84
+ - name : Test MLPerf Inference ResNet50 SingleStream (Linux/macOS)
83
85
if : matrix.os != 'windows-latest'
84
86
run : |
85
- mlcr run-mlperf,inference,_submission,_short,_all-scenarios, division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet
87
+ mlcr run-mlperf, inference, _submission, _short, scenario=SingleStream, -- division=closed --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --quiet --execution_mode=valid --target_latency=10
86
88
89
+ - name : Test MLPerf Inference ResNet50 MultiStream(Linux/macOS)
90
+ if : matrix.os != 'windows-latest'
91
+ run : |
92
+ mlcr run-mlperf, inference, _submission, _short, scenario=MultiStream, --division=closed --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --quiet --execution_mode=valid --target_latency=10
93
+
87
94
- name : Compliance Test MLPerf Inference ResNet50 (Linux/macOS)
95
+ if : matrix.os != 'windows-latest'
88
96
run : |
89
- mlcr run-mlperf,inference,_submission,_short,_all-scenarios, division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet --compliance=yes
90
-
97
+ mlcr run-mlperf, inference, _submission, _short, _all-scenarios --division=closed, --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name="gh_${{ matrix.os }} x86" --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --test_query_count=1000 -v --quiet --execution_mode=valid --compliance=yes
91
98
92
99
# Step for Linux/MacOS
93
100
- name : Randomly Execute Step (Linux/MacOS)
0 commit comments