forked from mlcommons/cm4mlops
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mlperf-inference' into dlrm_gha_selfhosted
- Loading branch information
Showing
97 changed files
with
1,326 additions
and
862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: MLPerf inference bert (deepsparse, tf, onnxruntime, pytorch) | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: [ "main", "dev", "mlperf-inference" ] | ||
paths: | ||
- '.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml' | ||
|
@@ -13,20 +13,21 @@ on: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# 3.12 didn't work on 20240305 - need to check | ||
python-version: [ "3.11" ] | ||
backend: [ "deepsparse", "tf", "onnxruntime", "pytorch" ] | ||
precision: [ "int8", "fp32" ] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
exclude: | ||
- backend: tf | ||
- backend: pytorch | ||
- backend: onnxruntime | ||
- precision: fp32 | ||
- os: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -38,6 +39,25 @@ jobs: | |
run: | | ||
python3 -m pip install cmind | ||
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} | ||
- name: Test MLPerf Inference Bert (DeepSparse, TF, ONNX, PyTorch) | ||
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }} | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
cm run script --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 | ||
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }} | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
cm run script --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 | ||
- name: Push Results | ||
if: github.repository_owner == 'gateoverflow' | ||
env: | ||
USER: "GitHub Action" | ||
EMAIL: "[email protected]" | ||
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }} | ||
run: | | ||
cm run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="cTuning" --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --precision=${{ matrix.precision }} --target_qps=1 -v --quiet | ||
git config --global user.name "${{ env.USER }}" | ||
git config --global user.email "${{ env.EMAIL }}" | ||
git config --global credential.https://github.com.helper "" | ||
git config --global credential.https://github.com.helper "!gh auth git-credential" | ||
git config --global credential.https://gist.github.com.helper "" | ||
git config --global credential.https://gist.github.com.helper "!gh auth git-credential" | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from Bert GH action on ${{ matrix.os }}" --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: MLPerf inference MLCommons C++ ResNet50 | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: [ "main", "dev", "mlperf-inference" ] | ||
paths: | ||
- '.github/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml' | ||
|
@@ -13,16 +13,18 @@ on: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.12" ] | ||
llvm-version: [ "15.0.6", "16.0.4", "17.0.6" ] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
exclude: | ||
- llvm-version: "15.0.6" | ||
- llvm-version: "16.0.4" | ||
- llvm-version: "15.0.6" | ||
- llvm-version: "16.0.4" | ||
- os: windows-latest | ||
- os: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -36,6 +38,25 @@ jobs: | |
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} | ||
cm run script --quiet --tags=get,sys-utils-cm | ||
cm run script --quiet --tags=install,prebuilt,llvm --version=${{ matrix.llvm-version }} | ||
- name: Test MLPerf Inference MLCommons C++ ResNet50 | ||
- name: Test MLPerf Inference MLCommons C++ ResNet50 on ${{ matrix.os }} | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
cmr "app mlperf inference mlcommons cpp" --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} --adr.loadgen.tags=_from-pip --pip_loadgen=yes -v --quiet | ||
- name: Test MLPerf Inference MLCommons C++ ResNet50 on ${{ matrix.os }} | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
cmr "app mlperf inference mlcommons cpp" --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} -v --quiet | ||
- name: Push Results | ||
if: github.repository_owner == 'gateoverflow' | ||
env: | ||
USER: "GitHub Action" | ||
EMAIL: "[email protected]" | ||
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }} | ||
run: | | ||
cmr "app mlperf inference mlcommons cpp" -v --quiet | ||
git config --global user.name "${{ env.USER }}" | ||
git config --global user.email "${{ env.EMAIL }}" | ||
git config --global credential.https://github.com.helper "" | ||
git config --global credential.https://github.com.helper "!gh auth git-credential" | ||
git config --global credential.https://gist.github.com.helper "" | ||
git config --global credential.https://gist.github.com.helper "!gh auth git-credential" | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from MLCommons C++ ResNet50 GH action on ${{ matrix.os }}" --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: MLPerf inference ResNet50 | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: [ "main", "dev", "mlperf-inference" ] | ||
paths: | ||
- '.github/workflows/test-mlperf-inference-resnet50.yml' | ||
|
@@ -28,7 +28,7 @@ jobs: | |
- os: macos-latest | ||
backend: tf | ||
- os: windows-latest | ||
|
||
implementation: cpp | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -39,6 +39,26 @@ jobs: | |
run: | | ||
python3 -m pip install cmind | ||
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} | ||
- name: Test MLPerf Inference ResNet50 | ||
- name: Test MLPerf Inference ResNet50 (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
git config --system core.longpaths true | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --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 --target_qps=1 -v --quiet | ||
- name: Test MLPerf Inference ResNet50 (Linux/macOS) | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --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 | ||
- name: Push Results | ||
if: github.repository_owner == 'gateoverflow' | ||
env: | ||
USER: "GitHub Action" | ||
EMAIL: "[email protected]" | ||
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }} | ||
run: | | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="cTuning" --hw_name=default --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet | ||
git config --global user.name "${{ env.USER }}" | ||
git config --global user.email "${{ env.EMAIL }}" | ||
git config --global credential.https://github.com.helper "" | ||
git config --global credential.https://github.com.helper "!gh auth git-credential" | ||
git config --global credential.https://gist.github.com.helper "" | ||
git config --global credential.https://gist.github.com.helper "!gh auth git-credential" | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: MLPerf inference retinanet | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: [ "main", "dev", "mlperf-inference" ] | ||
paths: | ||
- '.github/workflows/test-mlperf-inference-retinanet.yml' | ||
|
@@ -13,17 +13,21 @@ on: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [ "3.12" ] | ||
backend: [ "onnxruntime", "pytorch" ] | ||
implementation: [ "python", "cpp" ] | ||
exclude: | ||
- backend: pytorch | ||
implementation: cpp | ||
- os: windows-latest | ||
implementation: cpp | ||
- os: macos-latest | ||
implementation: cpp | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -35,6 +39,26 @@ jobs: | |
run: | | ||
python3 -m pip install cmind | ||
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} | ||
- name: Test MLPerf Inference Retinanet using ${{ matrix.backend }} | ||
- name: Test MLPerf Inference Retinanet using ${{ matrix.backend }} on ${{ matrix.os }} | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
git config --system core.longpaths true | ||
cm run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} --model=retinanet --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --quiet -v --target_qps=1 | ||
- name: Test MLPerf Inference Retinanet using ${{ matrix.backend }} on ${{ matrix.os }} | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
cm run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=retinanet --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --adr.compiler.tags=gcc --quiet -v --target_qps=1 | ||
- name: Push Results | ||
if: github.repository_owner == 'gateoverflow' | ||
env: | ||
USER: "GitHub Action" | ||
EMAIL: "[email protected]" | ||
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }} | ||
run: | | ||
cm run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="cTuning" --hw_name=default --model=retinanet --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --adr.compiler.tags=gcc --quiet -v --target_qps=1 | ||
git config --global user.name "${{ env.USER }}" | ||
git config --global user.email "${{ env.EMAIL }}" | ||
git config --global credential.https://github.com.helper "" | ||
git config --global credential.https://github.com.helper "!gh auth git-credential" | ||
git config --global credential.https://gist.github.com.helper "" | ||
git config --global credential.https://gist.github.com.helper "!gh auth git-credential" | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from Retinanet GH action on ${{ matrix.os }}" --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.