Skip to content

Commit 8b8cefe

Browse files
authored
Merge pull request #646 from mlcommons/main
sync
2 parents e7ec156 + 76931d2 commit 8b8cefe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+927
-149
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
name: "Code formatting"
33
on:
44
push:
5-
branches: [ "main", "mlperf-inference" ]
5+
branches:
6+
- "**"
67

78
env:
89
python_version: "3.9"
910

1011
jobs:
1112
format-code:
1213
runs-on: ubuntu-latest
13-
if: github.repository_owner == 'mlcommons'
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:

.github/workflows/run-individual-script-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
for file in ${{ steps.getfile.outputs.files }}; do
3333
echo $file
3434
done
35-
python3 -m pip install cmind
35+
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3636
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3737
DOCKER_CM_REPO=${{ github.event.pull_request.head.repo.html_url }} DOCKER_CM_REPO_BRANCH=${{ github.event.pull_request.head.ref }} TEST_INPUT_INDEX=${{ matrix.test-input-index }} python3 tests/script/process_tests.py ${{ steps.getfile.outputs.files }}

.github/workflows/test-cm-based-submission-generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
python-version: ${{ matrix.python-version }}
5151
- name: Install dependencies
5252
run: |
53-
python3 -m pip install cmind
53+
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
5454
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
5555
- name: Pull repo where test cases are uploaded
5656
run: |

.github/workflows/test-cm-script-features.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,28 @@ on:
1111
- '!**.md'
1212

1313
jobs:
14-
build:
14+
test_cm_script_features:
1515

16-
runs-on: ${{ matrix.on }}
16+
runs-on: ${{ matrix.os }}
1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
python-version: ["3.12", "3.8"]
21-
on: ["ubuntu-latest", "windows-latest", "macos-latest"]
21+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
2222

2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Set up Python ${{ matrix.python-version }}
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
- name: Configure git longpaths (Windows)
30+
if: matrix.os == 'windows-latest'
31+
run: |
32+
git config --system core.longpaths true
2933
- name: Install dependencies
3034
run: |
31-
python -m pip install cmind
35+
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3236
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3337
cm run script --quiet --tags=get,sys-utils-cm
3438
- name: Run test_docker on linux

.github/workflows/test-cm-tutorial-retinanet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install dependencies
3030
run: |
31-
python -m pip install cmind
31+
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3232
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3333
cm run script --quiet --tags=get,sys-utils-cm
3434
- name: Test CM Tutorial Retinanet

.github/workflows/test-cm-tutorial-tvm-pip.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Install dependencies
3131
run: |
32-
python -m pip install cmind
32+
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3333
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3434
cm run script --quiet --tags=get,sys-utils-cm
3535
- name: Test CM Tutorial TVM pip install with VirtualMachine Runtime
@@ -51,7 +51,7 @@ jobs:
5151
python-version: ${{ matrix.python-version }}
5252
- name: Install dependencies
5353
run: |
54-
python -m pip install cmind
54+
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
5555
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
5656
cm run script --quiet --tags=get,sys-utils-cm
5757
- name: Test CM Tutorial TVM pip install with GraphExecutor Runtime

.github/workflows/test-cm-tutorial-tvm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install dependencies
3232
run: |
33-
python -m pip install cmind
33+
python -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3434
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3535
cm run script --quiet --tags=get,sys-utils-cm
3636
- name: Test CM Tutorial TVM

.github/workflows/test-image-classification-onnx.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: image classification with ONNX
55

66
on:
77
pull_request:
8-
branches: [ "main", "dev" ]
8+
branches: [ "main", "dev", "mlperf-inference" ]
99
paths:
1010
- '.github/workflows/test-image-classification-onnx.yml'
1111
- '**'
@@ -26,11 +26,15 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
- name: Configure git longpaths (Windows)
30+
if: matrix.os == 'windows-latest'
31+
run: |
32+
git config --system core.longpaths true
2933
- name: Install dependencies
3034
run: |
31-
python3 -m pip install cmind
35+
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
3236
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3337
cm run script --quiet --tags=get,sys-utils-cm
3438
- name: Test image classification with ONNX
3539
run: |
36-
cmr "python app image-classification onnx" --quiet
40+
cm run script --tags=python,app,image-classification,onnx --quiet

.github/workflows/test-mlperf-inference-abtf-poc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ jobs:
4747
uses: actions/setup-python@v3
4848
with:
4949
python-version: ${{ matrix.python-version }}
50+
- name: Configure git longpaths (Windows)
51+
if: matrix.os == 'windows-latest'
52+
run: |
53+
git config --system core.longpaths true
5054
- name: Install dependencies
5155
run: |
52-
pip install cmind
56+
pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
5357
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
5458
cm pull repo mlcommons@cm4abtf --branch=poc
5559

.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Install dependencies
3939
run: |
40-
python3 -m pip install cmind
40+
python3 -m pip install "cmind @ git+https://git@github.com/mlcommons/ck.git@mlperf-inference#subdirectory=cm"
4141
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
4242
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
4343
if: matrix.os == 'windows-latest'

0 commit comments

Comments
 (0)