Skip to content

Commit 4039f3a

Browse files
authored
Merge pull request #225 from mlcommons/dev
Sync dev
2 parents 0e647d7 + 3124c4d commit 4039f3a

File tree

49 files changed

+355
-201
lines changed

Some content is hidden

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

49 files changed

+355
-201
lines changed

.github/workflows/build_wheel.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ name: Build wheel and release into PYPI
33
on:
44
release:
55
types: [published]
6+
67
push:
78
branches:
89
- dev
910
paths:
1011
- VERSION
1112

1213
jobs:
14+
1315
build_wheels:
1416
if: github.repository_owner == 'mlcommons'
1517
name: Build wheel

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ jobs:
5959
git config --global user.name github-actions[bot]
6060
git config --global user.email "github-actions[bot]@users.noreply.github.com"
6161
# Commit changes
62-
git commit -m '[Automated Commit] Format Codebase'
62+
git commit -m '[Automated Commit] Format Codebase [skip ci]'
6363
git push
6464
fi

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ jobs:
5353
- name: Test MLPerf Inference ResNet50 (Windows)
5454
if: matrix.os == 'windows-latest'
5555
run: |
56-
mlcr --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --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
56+
mlcr --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --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
5757
- name: Test MLPerf Inference ResNet50 (Linux/macOS)
5858
if: matrix.os != 'windows-latest'
5959
run: |
60-
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
60+
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
6161
# Step for Linux/MacOS
6262
- name: Randomly Execute Step (Linux/MacOS)
6363
if: runner.os != 'Windows'

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: MLPerf Inference Nvidia implementations
22

33
on:
44
schedule:
5-
- cron: "35 01 * * *"
5+
- cron: "27 11 * * *"
66

77
jobs:
88
run_nvidia:
@@ -23,8 +23,8 @@ jobs:
2323
model: [ "resnet50", "retinanet", "bert-99", "bert-99.9", "gptj-99.9", "3d-unet-99.9", "sdxl" ]
2424
exclude:
2525
- model: gptj-99.9
26-
- system: phoenix
27-
- system: GO-i9
26+
- system: phoenix1
27+
- system: GO-i91
2828

2929
steps:
3030
- name: Test MLPerf Inference NVIDIA ${{ matrix.model }}
@@ -45,6 +45,11 @@ jobs:
4545
gpu_name=rtx_4090
4646
docker_string=" --docker"
4747
fi
48+
if [ "${{ matrix.model }}" = "bert-99.9" ]; then
49+
submission_preprocessor_args=" --noinfer-low-accuracy-results"
50+
else
51+
submission_preprocessor_args=""
52+
fi
4853
category="datacenter,edge"
4954
if [ -f "gh_action/bin/deactivate" ]; then source gh_action/bin/deactivate; fi
5055
python3 -m venv gh_action
@@ -53,6 +58,7 @@ jobs:
5358
pip install --upgrade mlcflow
5459
mlc pull repo mlcommons@mlperf-automations --branch=dev
5560
56-
mlcr --tags=run-mlperf,inference,_all-scenarios,_submission,_full,_r5.0-dev --preprocess_submission=yes --pull_changes=yes --pull_inference_changes=yes --execution_mode=valid --gpu_name=$gpu_name --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="MLCommons" --hw_name=$hw_name --implementation=nvidia --backend=tensorrt --category=$category --division=closed --docker_dt --docker_mlc_repo=mlcommons@mlperf-automations --docker_mlc_repo_branch=dev --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_string --quiet
61+
mlcr --tags=run-mlperf,inference,_all-scenarios,_submission,_full,_r5.0-dev --preprocess_submission=yes --pull_changes=yes --pull_inference_changes=yes --execution_mode=valid --gpu_name=$gpu_name --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="GATEOverflow" --hw_name=$hw_name --implementation=nvidia --backend=tensorrt --category=$category --division=closed --docker_dt --docker_mlc_repo=mlcommons@mlperf-automations --docker_mlc_repo_branch=dev --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_string $submission_preprocessor_args --quiet
62+
#mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_unofficial_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from GH action on NVIDIA_$hw_name" --quiet --submission_dir=$HOME/gh_action_submissions --hw_name=$hw_name
63+
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/GATEOverflow/mlperf_inference_submissions_v5.0 --repo_branch=main --commit_message="Results from GH actions on NVIDIA_$hw_name" --quiet --submission_dir=$HOME/gh_action_submissions --hw_name=$hw_name
5764
58-
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_unofficial_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from GH action on NVIDIA_$hw_name" --quiet --submission_dir=$HOME/gh_action_submissions --hw_name=$hw_name

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ wheels/
1515
.coverage
1616
htmlcov
1717
*tmp/
18-
*tmp-ck-*/
18+
tmp-*
1919
local/cache/
20-
20+
mlc-log.txt
21+
repos.json
22+
index_script.json
23+
index_cache.json
24+
index_experiment.json

CONTRIBUTORS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ Once your contribution exceeds 50 lines of code (in total), we will:
3030
## Current Contributors
3131

3232
- **Grigori Fursin** - *Initial Development, CMind development to drive the automations, Added core automation features*
33-
- **Arjun Suresh** - *Initial Development, Added core automation features*
34-
- **Anandhu Sooraj** - *Added multiple CM scripts for MLPerf Inference*
33+
- **Arjun Suresh** - *Initial Development, Added core automation features, MLCFlow development to drive the automations*
34+
- **Anandhu Sooraj** - *Added multiple automation scripts for MLPerf Inference, MLCFlow development to drive the automations*
3535
- **Thomaz Zhu** - *Added CPP implementation for MLPerf Inference Onnxruntime*
3636
- **Sahil Avaran** - *Adding logging support in MLPerf script automation*
37-
- **[Your Name Here]** - This could be you! 🎉
37+
- **[Your Name Here]** - This could be you! 🎉
38+
39+
* CMind is now replaced by MLCFlow in the MLPerf Automations
3840

3941
---
4042

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Welcome to the **MLPerf Automations and Scripts** repository! This repository is your go-to resource for tools, automations, and scripts designed to streamline the execution of **MLPerf benchmarks**—with a strong emphasis on **MLPerf Inference benchmarks**.
1010

11-
Starting **January 2025**, MLPerf automation scripts are built on the powerful [MLCFlow](https://github.com/mlcommons/mlcflow) automation interface. This modern interface replaces the earlier [Collective Mind (CM)](https://github.com/mlcommons/ck/tree/master/cm), offering a more robust and efficient framework for benchmarking workflows.
11+
Starting **January 2025**, MLPerf automation scripts will be powered by the advanced [MLCFlow](https://github.com/mlcommons/mlcflow) automation interface. This modern framework replaces the previous [Collective Mind (CM)](https://github.com/mlcommons/ck/tree/master/cm), providing a more robust, efficient, and self-contained solution for benchmarking workflows, making MLPerf automations independent of any external projects.
1212

1313

1414
---

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.9
1+
1.0.0

automation/script/module.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,13 +2260,7 @@ def _update_env_from_input(self, env, i):
22602260

22612261
##########################################################################
22622262
def _fix_cache_paths(self, env):
2263-
'''
2264-
mlc_repos_path = os.environ.get(
2265-
'MLC_REPOS', os.path.join(
2266-
os.path.expanduser("~"), "CM", "repos"))
2267-
current_cache_path = os.path.realpath(
2268-
os.path.join(mlc_repos_path, "local", "cache"))
2269-
'''
2263+
22702264
current_cache_path = self.action_object.local_cache_path
22712265

22722266
new_env = env # just a reference
@@ -2285,7 +2279,7 @@ def _fix_cache_paths(self, env):
22852279
if loaded_cache_path != current_cache_path and os.path.exists(
22862280
current_cache_path):
22872281
new_env[key] = val.replace(
2288-
loaded_cache_path, current_cache_path)
2282+
loaded_cache_path, current_cache_path).replace(sep, "/")
22892283

22902284
elif isinstance(val, list):
22912285
for i, val2 in enumerate(val):
@@ -2300,7 +2294,7 @@ def _fix_cache_paths(self, env):
23002294
if loaded_cache_path != current_cache_path and os.path.exists(
23012295
current_cache_path):
23022296
new_env[key][i] = val2.replace(
2303-
loaded_cache_path, current_cache_path)
2297+
loaded_cache_path, current_cache_path).replace(sep, "/")
23042298

23052299
return {'return': 0, 'new_env': new_env}
23062300

git_commit_hash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3dacfdc14894006f456d3b14d1b174e2e9e6e19f
1+
bee755068b7104201446663d41824053671a254d

0 commit comments

Comments
 (0)