Skip to content

Commit 1564ce4

Browse files
authored
Merge pull request #40 from mlcommons/dev
Sync Dev
2 parents 19df660 + dd1f4c0 commit 1564ce4

File tree

7 files changed

+924
-296
lines changed

7 files changed

+924
-296
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: MLPerf inference bert (deepsparse, tf, onnxruntime, pytorch)
2+
3+
on:
4+
pull_request:
5+
branches: [ "main", "dev" ]
6+
paths:
7+
- '.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml'
8+
- '**'
9+
- '!**.md'
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
# 3.12 didn't work on 20240305 - need to check
18+
python-version: [ "3.11" ]
19+
backend: [ "deepsparse", "tf", "onnxruntime", "pytorch" ]
20+
precision: [ "int8", "fp32" ]
21+
os: [ubuntu-latest, windows-latest, macos-latest]
22+
exclude:
23+
- backend: tf
24+
- backend: pytorch
25+
- backend: onnxruntime
26+
- precision: fp32
27+
- os: windows-latest
28+
29+
steps:
30+
- uses: actions/checkout@v3
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v3
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- name: Install mlcflow
36+
run: |
37+
python -m pip install --upgrade pip
38+
python -m pip install --ignore-installed --verbose pip setuptools
39+
python -m pip install .
40+
mlc pull repo mlcommons@mlperf-automations --branch=dev
41+
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
42+
if: matrix.os == 'windows-latest'
43+
run: |
44+
mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --precision=${{ matrix.precision }} --target_qps=1 -v --quiet
45+
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
46+
if: matrix.os != 'windows-latest'
47+
run: |
48+
mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --precision=${{ matrix.precision }} --target_qps=1 -v --quiet
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 'MLPerf inference resnet50'
2+
3+
on:
4+
pull_request:
5+
branches: [ "main", "dev" ]
6+
paths:
7+
- '.github/workflows/mlperf-inference-resnet50.yml'
8+
- '**'
9+
- '!**.md'
10+
11+
jobs:
12+
build:
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.12", "3.11", "3.8"]
18+
on: [ubuntu-latest, macos-latest, windows-latest]
19+
backend: [ "onnxruntime", "tf" ]
20+
implementation: [ "python", "cpp" ]
21+
exclude:
22+
- backend: tf
23+
implementation: cpp
24+
- on: windows-latest
25+
implementation: cpp
26+
runs-on: "${{ matrix.on }}"
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.event.pull_request.head.sha }}
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v3
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
python -m pip install --ignore-installed --verbose pip setuptools
40+
python -m pip install .
41+
mlc pull repo mlcommons@mlperf-automations --branch=dev
42+
43+
- name: Test MLPerf inference ResNet50 on Windows (prebuilt loadgen)
44+
if: runner.os == 'Windows'
45+
run: |
46+
mlc run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --hw_name=gh_action --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=100 --target_qps=1 -v --quiet --adr.loadgen.tags=_from-pip --pip_loadgen=yes
47+
48+
- name: Test MLPerf inference ResNet50 on Unix systems
49+
if: runner.os != 'Windows'
50+
run: |
51+
mlc run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --hw_name=gh_action --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=100 --target_qps=1 -v --quiet

config.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

mlc/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__version__ = "0.1.0"
2+
3+
from .main import access
4+
5+
__all__ = ['access']

0 commit comments

Comments
 (0)