Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test-mlperf-inference-resnet50.yml #145

Merged
merged 29 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9481768
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 24, 2025
3714205
Merge branch 'dev' into dev
arjunsuresh Jan 24, 2025
0477f69
Merge branch 'dev' into dev
arjunsuresh Jan 24, 2025
91572d1
Merge branch 'dev' into dev
arjunsuresh Jan 24, 2025
e471a61
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 24, 2025
81546d9
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 24, 2025
73d0924
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 24, 2025
5698f40
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 24, 2025
4d52405
Merge branch 'dev' into dev
arjunsuresh Jan 24, 2025
87d3adf
Merge branch 'dev' into dev
arjunsuresh Jan 24, 2025
620e3cf
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
6baf3a7
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 25, 2025
5960465
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
cf671a7
Support nvidia implementation for v5.0
arjunsuresh Jan 25, 2025
7954c1d
Support nvidia implementation for v5.0
arjunsuresh Jan 25, 2025
ec4e924
Support nvidia implementation for v5.0
arjunsuresh Jan 25, 2025
f3ab898
Cleanup adr in nvidia-inference-server
arjunsuresh Jan 25, 2025
880f034
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
dc802e3
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
9b50392
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 25, 2025
79a10cb
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
ee766f1
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
1059c47
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
a95bd92
Merge branch 'dev' into dev
arjunsuresh Jan 25, 2025
6523193
Delete .github/workflows/test-mlperf-inference-tvm.yml
arjunsuresh Jan 25, 2025
6716389
Update and rename test-mlc-tutorial-tvm.yml to test-mlperf-inference-…
arjunsuresh Jan 25, 2025
fb7d1fb
Update test-mlc-script-features.yml | Added retinanet test
arjunsuresh Jan 25, 2025
f4f01b1
Delete .github/workflows/test-mlc-tutorial-retinanet.yml
arjunsuresh Jan 25, 2025
d60dfca
Use mlc-scripts name
arjunsuresh Jan 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/test-mlc-script-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ jobs:
run: |
mlc run script --tags=run,docker,container --adr.compiler.tags=gcc --docker_mlc_repo=mlcommons@mlperf-automations --docker_mlc_repo_branch=dev --image_name=mlc-script-app-image-classification-onnx-py --env.MLC_DOCKER_RUN_SCRIPT_TAGS=app,image-classification,onnx,python --env.MLC_DOCKER_IMAGE_BASE=ubuntu:22.04 --env.MLC_DOCKER_IMAGE_REPO=local --quiet

- name: Run MLPerf Inference Retinanet with native and virtual Python
run: |
mlcr --tags=app,mlperf,inference,generic,_cpp,_retinanet,_onnxruntime,_cpu --adr.python.version_min=3.8 --adr.compiler.tags=gcc --adr.openimages-preprocessed.tags=_50 --scenario=Offline --mode=accuracy --test_query_count=10 --rerun --quiet

mlcr --tags=app,mlperf,inference,generic,_cpp,_retinanet,_onnxruntime,_cpu --adr.python.version_min=3.8 --adr.compiler.tags=gcc --adr.openimages-preprocessed.tags=_50 --scenario=Offline --mode=performance --test_query_count=10 --rerun --quiet

mlcr --tags=install,python-venv --version=3.10.8 --name=mlperf --quiet

mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --adr.python.name=mlperf --adr.python.version_min=3.8 --adr.compiler.tags=gcc --adr.openimages-preprocessed.tags=_50 --submitter=Community --implementation=cpp --hw_name=default --model=retinanet --backend=onnxruntime --device=cpu --scenario=Offline --quiet
42 changes: 0 additions & 42 deletions .github/workflows/test-mlc-tutorial-retinanet.yml

This file was deleted.

17 changes: 16 additions & 1 deletion .github/workflows/test-mlperf-inference-resnet50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
backend: tf
- os: windows-latest
implementation: cpp

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -56,8 +57,9 @@ jobs:
- name: Test MLPerf Inference ResNet50 (Linux/macOS)
if: matrix.os != 'windows-latest'
run: |
mlcr --tags=run-mlperf,inference,_submission,_short --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
mlcr --tags=run-mlperf,inference,_submission,_short --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
- name: Retrieve secrets from Keeper
if: github.repository_owner == 'mlcommons'
id: ksecrets
uses: Keeper-Security/ksm-action@master
with:
Expand All @@ -67,6 +69,7 @@ jobs:
- name: Push Results
env:
GITHUB_TOKEN: ${{ env.PAT }}
if: github.repository_owner == 'mlcommons'
run: |
git config --global user.name "mlcommons-bot"
git config --global user.email "[email protected]"
Expand All @@ -75,3 +78,15 @@ jobs:
git config --global credential.https://gist.github.com.helper ""
git config --global credential.https://gist.github.com.helper "!gh auth git-credential"
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet
- name: Push Results
env:
GITHUB_TOKEN: ${{ secrets.PAT1 }}
if: github.repository_owner == 'gateoverflow'
run: |
git config --global user.name "mlcommons-bot"
git config --global user.email "[email protected]"
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"
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: MLC tutorial tvm
name: MLPerf Inference TVM ResNet50

on:
pull_request_target:
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlc-tutorial-tvm.yml'
- '.github/workflows/test-mlperf-inference-tvm-resnet50.yml'
- '**'
- '!**.md'

jobs:
build:

tvm-run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/test-mlperf-inference-tvm.yml

This file was deleted.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0", "wheel", "toml", "mlcflow"]
build-backend = "setuptools.build_meta"

[project]
name = "mlperf"
name = "mlc-scripts"
version = "0.0.1"
description = "Automation scripts for running ML applications using MLC interface"
authors = [
Expand All @@ -12,7 +12,7 @@ authors = [
license = { file = "LICENSE.md" }
readme = "README.md"
requires-python = ">=3.7"
keywords = ["mlc", "mlcflow", "pypi", "package", "automation", "mlperf", "mlcr"]
keywords = ["mlc", "mlcscripts", "mlcflow", "pypi", "package", "automation", "mlperf", "mlcr"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand Down
25 changes: 23 additions & 2 deletions script/app-mlperf-inference/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,27 @@ variations:
env:
MLC_ENV_NVMITTEN_DOCKER_WHEEL_PATH: '/opt/nvmitten-0.1.3b0-cp310-cp310-linux_aarch64.whl'

nvidia-original,r5.0-dev_default:
docker:
build_deps:
- tags: detect,os
image_name: mlperf-inference-nvidia-v5.0-dev-common
update_meta_if_env:
- enable_if_env:
MLC_HOST_PLATFORM_FLAVOR:
- x86_64
docker:
base_image: nvcr.io/nvidia/mlperf/mlperf-inference:mlpinf-v4.0-cuda12.2-cudnn8.9-x86_64-ubuntu20.04-public
env:
MLC_ENV_NVMITTEN_DOCKER_WHEEL_PATH: '/opt/nvmitten-0.1.3b0-cp38-cp38-linux_x86_64.whl'

- skip_if_env:
MLC_HOST_PLATFORM_FLAVOR:
- x86_64
docker:
base_image: nvcr.io/nvidia/mlperf/mlperf-inference:mlpinf-v4.0-cuda12.2-cudnn8.9-aarch64-ubuntu22.04-public
env:
MLC_ENV_NVMITTEN_DOCKER_WHEEL_PATH: '/opt/nvmitten-0.1.3b0-cp310-cp310-linux_aarch64.whl'


nvidia-original,gptj_:
Expand Down Expand Up @@ -1716,10 +1737,10 @@ variations:
reproducibility
add_deps_recursive:
nvidia-inference-common-code:
version: r4.1
version: r4.1-dev
tags: _mlcommons
nvidia-inference-server:
version: r4.1
version: r4.0
tags: _mlcommons
intel-harness:
tags: _v4.1
Expand Down
35 changes: 2 additions & 33 deletions script/build-mlperf-inference-server-nvidia/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,25 +228,9 @@ variations:
- 8

versions:
r2.1:
add_deps_recursive:
nvidia-inference-common-code:
version: r2.1
nvidia-scratch-space:
tags: _version.2_1

r3.0:
add_deps_recursive:
nvidia-inference-common-code:
version: r3.0
nvidia-scratch-space:
tags: _version.3_0
r2.1: {}
r3.0: {}
r3.1:
add_deps_recursive:
nvidia-inference-common-code:
version: r3.1
nvidia-scratch-space:
tags: _version.4_0
deps:
- tags: install,pytorch,from.src,_for-nvidia-mlperf-inference-v3.1
names:
Expand All @@ -259,11 +243,6 @@ versions:
- tags: install,nccl,libs,_cuda

r4.0:
add_deps_recursive:
nvidia-inference-common-code:
version: r4.0
nvidia-scratch-space:
tags: _version.4_0
default_env:
BUILD_TRTLLM: 1
deps:
Expand Down Expand Up @@ -301,11 +280,6 @@ versions:
- 8

r4.1-dev:
add_deps_recursive:
nvidia-inference-common-code:
version: r4.0
nvidia-scratch-space:
tags: _version.4_1
default_env:
BUILD_TRTLLM: 1
deps:
Expand Down Expand Up @@ -343,11 +317,6 @@ versions:
- 8

r4.1:
add_deps_recursive:
nvidia-inference-common-code:
version: r4.1
nvidia-scratch-space:
tags: _version.4_1
default_env:
BUILD_TRTLLM: 1

Expand Down
12 changes: 11 additions & 1 deletion script/get-mlperf-inference-nvidia-common-code/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ deps:
- inherit_variation_tags: true
names:
- mlperf-inference-results
tags: get,mlperf,inference,results,official,_code-only
tags: get,mlperf,inference,results,official
new_env_keys:
- +PYTHONPATH
- MLC_MLPERF_INFERENCE_NVIDIA_CODE_PATH
Expand Down Expand Up @@ -37,19 +37,29 @@ versions:
add_deps_recursive:
mlperf-inference-results:
version: v2.1
tags: _code-only
r3.0:
add_deps_recursive:
mlperf-inference-results:
version: v3.0
tags: _code-only
r3.1:
add_deps_recursive:
mlperf-inference-results:
version: v3.1
tags: _code-only
r4.0:
add_deps_recursive:
mlperf-inference-results:
version: v4.0
tags: _code-only
r4.1:
add_deps_recursive:
mlperf-inference-results:
version: v4.1
tags: _code-only
r4.1-dev:
add_deps_recursive:
mlperf-inference-results:
version: v4.0
tags: _code-only-for-v5.0
5 changes: 5 additions & 0 deletions script/get-mlperf-inference-results/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ variations:
inference-results-repo:
tags: _branch.mlc-code-only
group: repo-branch
code-only-for-v5.0:
adr:
inference-results-repo:
tags: _branch.mlc-code-only-for-v5.0
group: repo-branch
ctuning:
env:
GITHUB_REPO_OWNER: ctuning
Expand Down
2 changes: 2 additions & 0 deletions script/push-mlperf-inference-results-to-github/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ git commit -a -m "${MLC_MLPERF_RESULTS_REPO_COMMIT_MESSAGE}"
echo ${MLC_GIT_PUSH_CMD}
${MLC_GIT_PUSH_CMD}

test $? -eq 0 || (sleep $((RANDOM % 200 + 1)) && git pull && ${MLC_GIT_PUSH_CMD})

test $? -eq 0 || exit $?
Loading