Skip to content

Commit b62a227

Browse files
authored
Merge pull request #585 from mlcommons/mlperf-inference
Sync <- Mlperf inference for November release
2 parents fa16614 + 9f79f45 commit b62a227

416 files changed

Lines changed: 14609 additions & 21560 deletions

File tree

Some content is hidden

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

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

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
python-version: [ "3.12" ]
2020
division: ["closed", "open", "closed-open"]
2121
category: ["datacenter", "edge"]
22-
case: ["case-3", "case-7", "case-8"]
22+
case: ["closed", "closed-no-compliance", "closed-power", "closed-failed-power-logs", "case-3", "case-7", "case-8"]
2323
action: ["run", "docker"]
2424
exclude:
2525
- os: macos-latest
@@ -37,21 +37,31 @@ jobs:
3737
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
3838
- name: Pull repo where test cases are uploaded
3939
run: |
40-
git clone -b submission-generation-tests https://github.com/anandhu-eng/inference.git submission_generation_tests
40+
git clone -b submission-generation-tests https://github.com/mlcommons/inference.git submission_generation_tests
4141
- name: Run Submission Generation - ${{ matrix.case }} ${{ matrix.action }} ${{ matrix.category }} ${{ matrix.division }}
4242
run: |
4343
if [ "${{ matrix.case }}" == "case-3" ]; then
44-
#results_dir="submission_generation_tests/case-3/"
4544
description="Submission generation (model_mapping.json not present but model name matches with official one)"
4645
elif [ "${{ matrix.case }}" == "case-7" ]; then
47-
#results_dir="submission_generation_tests/case-7/"
4846
description="Submission generation (sut_info.json incomplete, SUT folder name in required format)"
4947
elif [ "${{ matrix.case }}" == "case-8" ]; then
50-
#results_dir="submission_generation_tests/case-8/"
48+
extra_run_args=" --category=datacenter"
5149
description="Submission generation (system_meta.json not found in results folder)"
50+
elif [ "${{ matrix.case }}" == "closed" ]; then
51+
extra_run_args=" --env.CM_MLPERF_SUBMISSION_CHECKER_EXTRA_ARGS="--skip-extra-accuracy-files-check""
52+
description="Test submission - contains closed edge and datacenter"
53+
elif [ "${{ matrix.case }}" == "closed-no-compliance" ]; then
54+
extra_run_args=" --env.CM_MLPERF_SUBMISSION_CHECKER_EXTRA_ARGS="--skip-extra-accuracy-files-check""
55+
description="Test submission - contains closed edge and datacenter with no compliance tests"
56+
elif [ "${{ matrix.case }}" == "closed-power" ]; then
57+
extra_run_args=" --env.CM_MLPERF_SUBMISSION_CHECKER_EXTRA_ARGS="--skip-extra-accuracy-files-check""
58+
description="Test submission - contains closed-power edge and datacenter results"
59+
elif [ "${{ matrix.case }}" == "closed-failed-power-logs" ]; then
60+
extra_run_args=" --env.CM_MLPERF_SUBMISSION_CHECKER_EXTRA_ARGS="--skip-extra-accuracy-files-check""
61+
description="Test submission - contains closed-power edge and datacenter results with failed power logs"
5262
fi
5363
# Dynamically set the log group to simulate a dynamic step name
5464
echo "::group::$description"
55-
cm ${{ matrix.action }} script --tags=generate,inference,submission --clean --preprocess_submission=yes --results_dir=submission_generation_tests/${{ matrix.case }}/ --run-checker --submitter=MLCommons --tar=yes --env.CM_TAR_OUTFILE=submission.tar.gz --division=${{ matrix.division }} --category=${{ matrix.category }} --env.CM_DETERMINE_MEMORY_CONFIGURATION=yes --quiet
65+
cm ${{ matrix.action }} script --tags=generate,inference,submission --adr.submission-checker-src.tags=_branch.dev --clean --preprocess_submission=yes --results_dir=$PWD/submission_generation_tests/${{ matrix.case }}/ --run-checker --submitter=MLCommons --tar=yes --env.CM_TAR_OUTFILE=submission.tar.gz --division=${{ matrix.division }} --env.CM_DETERMINE_MEMORY_CONFIGURATION=yes --quiet $extra_run_args
5666
echo "::endgroup::"
5767

.github/workflows/test-mlperf-inference-mixtral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
git config --global credential.helper store
3131
huggingface-cli login --token ${{ secrets.HF_TOKEN }} --add-to-git-credential
3232
cm pull repo
33-
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --model=mixtral-8x7b --implementation=reference --batch_size=1 --precision=${{ matrix.precision }} --backend=${{ matrix.backend }} --category=datacenter --scenario=Offline --execution_mode=test --device=${{ matrix.device }} --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --hw_name=gh_action --docker_dt=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --docker --quiet --test_query_count=1 --target_qps=0.001 --clean --env.CM_MLPERF_MODEL_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --env.CM_MLPERF_DATASET_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes
33+
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --model=mixtral-8x7b --implementation=reference --batch_size=1 --precision=${{ matrix.precision }} --backend=${{ matrix.backend }} --category=datacenter --scenario=Offline --execution_mode=test --device=${{ matrix.device }} --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --hw_name=gh_action --docker_dt=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --docker --quiet --test_query_count=3 --target_qps=0.001 --clean --env.CM_MLPERF_MODEL_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --env.CM_MLPERF_DATASET_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --adr.openorca-mbxp-gsm8k-combined-preprocessed.tags=_generate-test-data.1
3434
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 self hosted Github actions - GO-phoenix" --quiet --submission_dir=$HOME/gh_action_submissions

.github/workflows/test-nvidia-mlperf-inference-implementations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ jobs:
3939
pip install --upgrade cm4mlops
4040
cm pull repo
4141
42-
cm run script --tags=run-mlperf,inference,_all-scenarios,_submission,_full,_r4.1-dev --preprocess_submission=yes --adr.submission-checker-src.tags=_branch.dev --execution_mode=valid --gpu_name=rtx_4090 --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="MLCommons" --hw_name=$hw_name --implementation=nvidia --backend=tensorrt --category=datacenter,edge --division=closed --docker_dt=yes --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --device=cuda --use_dataset_from_host=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --clean --docker --quiet
42+
cm run script --tags=run-mlperf,inference,_all-scenarios,_submission,_full,_r4.1-dev --preprocess_submission=yes --adr.submission-checker-src.tags=_branch.dev --execution_mode=valid --gpu_name=rtx_4090 --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="MLCommons" --hw_name=$hw_name --implementation=nvidia --backend=tensorrt --category=datacenter,edge --division=closed --docker_dt=yes --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --device=cuda --use_model_from_host=yes --use_dataset_from_host=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --clean --docker --quiet
4343
4444
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_unofficial_submissions_v5.0 --repo_branch=main --commit_message="Results from GH action on NVIDIA_$hw_name" --quiet --submission_dir=$HOME/gh_action_submissions --hw_name=$hw_name

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.26
1+
0.4.0

script/activate-python-venv/_cm.json

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
alias: activate-python-venv
2+
automation_alias: script
3+
automation_uid: 5b4e0237da074764
4+
category: Python automation
5+
developers: '[Grigori Fursin](https://cKnowledge.org/gfursin)'
6+
name: Activate virtual Python environment
7+
prehook_deps:
8+
- names:
9+
- python-venv
10+
reuse_version: true
11+
tags: install,python-venv
12+
tags:
13+
- activate
14+
- python
15+
- activate-python-venv
16+
- python-venv
17+
tags_help: activate python-venv
18+
uid: fcbbb84946f34c55

script/app-image-classification-tf-onnx-cpp/_cm.json

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
alias: app-image-classification-tf-onnx-cpp
2+
automation_alias: script
3+
automation_uid: 5b4e0237da074764
4+
category: Modular AI/ML application pipeline
5+
default_env:
6+
CM_BATCH_COUNT: '1'
7+
CM_BATCH_SIZE: '1'
8+
deps:
9+
- tags: detect,os
10+
- tags: get,sys-utils-cm
11+
- tags: get,gcc
12+
- tags: get,dataset,image-classification,original
13+
- tags: get,dataset-aux,image-classification
14+
- tags: get,ml-model,raw,image-classification,resnet50,_onnx,_opset-11
15+
- tags: tensorflow,from-src
16+
version: v2.0.0
17+
tags:
18+
- app
19+
- image-classification
20+
- tf
21+
- tensorflow
22+
- tf-onnx
23+
- tensorflow-onnx
24+
- onnx
25+
- cpp
26+
tags_help: app image-classification cpp tensorflow onnx
27+
uid: 879ed32e47074033

script/app-image-classification-torch-py/_cm.json

Lines changed: 0 additions & 86 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
alias: app-image-classification-torch-py
2+
automation_alias: script
3+
automation_uid: 5b4e0237da074764
4+
category: Modular AI/ML application pipeline
5+
default_env:
6+
CM_BATCH_COUNT: '1'
7+
CM_BATCH_SIZE: '1'
8+
deps:
9+
- tags: detect,os
10+
- names:
11+
- python
12+
- python3
13+
tags: get,python3
14+
- tags: get,dataset,imagenet,image-classification,preprocessed
15+
- tags: get,dataset-aux,imagenet-aux,image-classification
16+
- tags: get,imagenet-helper
17+
- tags: get,ml-model,image-classification,resnet50,_pytorch,_fp32
18+
- skip_if_env:
19+
USE_CUDA:
20+
- 'yes'
21+
tags: get,generic-python-lib,_torch
22+
- enable_if_env:
23+
USE_CUDA:
24+
- 'yes'
25+
tags: get,generic-python-lib,_torch_cuda
26+
- skip_if_env:
27+
USE_CUDA:
28+
- 'yes'
29+
tags: get,generic-python-lib,_torchvision
30+
- enable_if_env:
31+
USE_CUDA:
32+
- 'yes'
33+
tags: get,generic-python-lib,_torchvision_cuda
34+
tags:
35+
- app
36+
- image-classification
37+
- torch
38+
- python
39+
tags_help: app image-classification python torch
40+
uid: e3986ae887b84ca8
41+
variations:
42+
cuda:
43+
deps:
44+
- tags: get,cuda
45+
env:
46+
USE_CUDA: 'yes'

0 commit comments

Comments
 (0)