Skip to content

Merge Dev #296

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

Merged
merged 30 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
77220d5
updated mixtral dataset download based on latest inference readme (#284)
anandhu-eng Mar 3, 2025
7a5f1e1
updated download url - llama3 (#285)
anandhu-eng Mar 3, 2025
cfa5519
Fix argument issue in coco2014 calibration dataset download (#286)
anandhu-eng Mar 4, 2025
854c511
Update script to detect Podman in the system (#287)
anandhu-eng Mar 4, 2025
1fb2579
Added Resnet50 closed division github action
sujik18 Mar 5, 2025
234aad7
Scheduling the workflow once a week
sujik18 Mar 5, 2025
a5b0596
Fix aocc detect
amd-arsuresh Mar 5, 2025
6ae3774
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Mar 5, 2025
394ab4a
Merge branch 'mlcommons:dev' into dev
sujik18 Mar 5, 2025
beda189
Changed the dataset parameter to short
sujik18 Mar 6, 2025
0c16655
Merge from GO (#292)
arjunsuresh Mar 6, 2025
ea48b11
Fixes for test-mlpref-inference-resnet50-closed-division.yml
sujik18 Mar 7, 2025
adec331
Add get-oneapi compiler(WIP) (#294)
anandhu-eng Mar 7, 2025
aefdde0
Fixes oneapi detect
amd-arsuresh Mar 7, 2025
728085a
Merge branch 'main' into dev
arjunsuresh Mar 8, 2025
b073ced
Support OS_FLAVOR_LIKE and OS_TYPE in run scripts (#297)
arjunsuresh Mar 8, 2025
30cfdbd
Fixes for wkhtmltopdf (#299)
arjunsuresh Mar 8, 2025
c11befc
Fix wkhtmltopdf on macos (#300)
arjunsuresh Mar 8, 2025
97c759e
Added macos install wkhtmltopdf (#301)
arjunsuresh Mar 8, 2025
63f68f3
Update test-mlc-script-features.yml (#302)
arjunsuresh Mar 8, 2025
826ec33
Fix mlc test script (#303)
arjunsuresh Mar 9, 2025
7e54b55
Added libgl deps for imagenet preprocessing (#304)
arjunsuresh Mar 9, 2025
e023a0f
Fix update of dynamic values from preprocess
amd-arsuresh Mar 11, 2025
51a9f12
Merge pull request #289 from sujik18/dev
anandhu-eng Mar 11, 2025
f64752f
Support dirpath for download and extract scripts
amd-arsuresh Mar 12, 2025
ed55baa
Fixes for llvm install, added test
amd-arsuresh Mar 15, 2025
c042743
Fix for ResNet50 Closed Division GitHub Action (#307)
sujik18 Mar 15, 2025
6720889
Fix lists in install-llvm-src (#309)
arjunsuresh Mar 15, 2025
f2fbb6c
Fix wkhtmltopdf installation on windows (#312)
arjunsuresh Mar 16, 2025
8811094
Improve get-rclone-config (#313)
arjunsuresh Mar 17, 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
2 changes: 2 additions & 0 deletions .github/scripts/process_individual_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@
ret = mlc.access(ii)
if ret['return'] > 0:
raise Exception(r['error'])
ii = {'action': 'rm', 'target': 'cache', 'f': True}
ret = mlc.access(ii)
1 change: 0 additions & 1 deletion .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
paths:
- VERSION


jobs:

build_wheels:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/check-broken-links.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: "Check .md README files for broken links"

on:
pull_request:
branches:
Expand All @@ -13,7 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v4


# Checks the status of hyperlinks in .md files in verbose mode
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-mlc-script-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
mlcr get,dataset,preprocessed,imagenet,_NHWC --quiet
mlc search cache --tags=get,dataset,preprocessed,imagenet,-_NCHW
mlc search cache --tags=get,dataset,preprocessed,imagenet,-_NHWC
# Tests run-scripts on windows,ubuntu,macos

- name: Test native script name variants
run: |
mlcr get,wkhtmltopdf --quiet

- name: Test versions
continue-on-error: true
Expand All @@ -52,6 +57,8 @@ jobs:
test $? -eq 0 || exit $?
mlcr get,generic-python-lib,_package.scipy --version=1.9.2 --quiet
test $? -eq 0 || exit $?
mlc find cache --tags=get,generic-python-lib,_package.scipy,version-1.9.3
test $? -eq 0 || exit $?
# Need to add find cache here
# mlcr get,generic-python-lib,_package.scipy --version=1.9.3 --quiet --only_execute_from_cache=True
# test $? -eq 0 || exit 0
Expand Down
104 changes: 104 additions & 0 deletions .github/workflows/test-mlperf-inference-resnet50-closed-division.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: MLPerf inference ResNet50 Closed Division for testing Compliance

on:
schedule:
- cron: '0 0 * * 0' # Runs once a week on Sunday at 00:00 UTC
workflow_dispatch: {} # Allows manual triggering of the workflow
jobs:
build:
name: MLPerf inference MLCommons ResNet50 Closed Division
runs-on: ${{ matrix.os }}
env:
MLC_INDEX: "on"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [ "3.12" ]
backend: [ "onnxruntime", "tf" ]
implementation: [ "python", "cpp" ]
exclude:
- backend: tf
implementation: cpp
- os: macos-latest
backend: tf
- os: windows-latest
implementation: cpp
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Configure git longpaths (Windows)
if: matrix.os == 'windows-latest'
run: |
git config --system core.longpaths true

- name: Install mlcflow
run: |
pip install mlcflow
pip install tabulate

- name: Pull MLOps repo
run: |
mlc pull repo mlcommons@mlperf-automations --branch=dev

- name: Test MLPerf Inference ResNet50 (Windows)
if: matrix.os == 'windows-latest'
run: |
mlcr run-mlperf,inference,_submission,_short,_all-scenarios --division=closed --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 --test_query_count=1000 --quiet --execution_mode=valid

- name: Test MLPerf Inference ResNet50 Offline(Linux/macOS)
if: matrix.os != 'windows-latest'
run: |
mlcr run-mlperf,inference,_submission,_short,_all-scenarios --division=closed --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 --test_query_count=1000 --quiet --execution_mode=valid

# Step for Linux/MacOS
- name: Randomly Execute Step (Linux/MacOS)
if: runner.os != 'Windows'
run: |
RANDOM_NUMBER=$((RANDOM % 10))
echo "Random number is $RANDOM_NUMBER"
if [ "$RANDOM_NUMBER" -eq 0 ]; then
echo "run_step=true" >> $GITHUB_ENV
else
echo "run_step=false" >> $GITHUB_ENV
fi

# Step for Windows
- name: Randomly Execute Step (Windows)
if: runner.os == 'Windows'
run: |
$RANDOM_NUMBER = Get-Random -Maximum 10
Write-Host "Random number is $RANDOM_NUMBER"
if ($RANDOM_NUMBER -eq 0) {
Write-Host "run_step=true" | Out-File -FilePath $Env:GITHUB_ENV -Append
} else {
Write-Host "run_step=false" | Out-File -FilePath $Env:GITHUB_ENV -Append
}

- name: Retrieve secrets from Keeper
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
id: ksecrets
uses: Keeper-Security/ksm-action@master
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
secrets: |-
ubwkjh-Ii8UJDpG2EoU6GQ/field/Access Token > env:PAT
- name: Push Results
env:
GITHUB_TOKEN: ${{ env.PAT }}
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
run: |
git config --global user.name "mlcommons-bot"
git config --global user.email "mlcommons-bot@users.noreply.github.com"
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 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

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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**.

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.
Starting **January 2025**, MLPerf automation scripts is powered by [MLCFlow](https://github.com/mlcommons/mlcflow) automation interface. This new and simplified 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.


---
Expand All @@ -17,7 +17,6 @@ Starting **January 2025**, MLPerf automation scripts will be powered by the adva
- **Automated Benchmarking** – Simplifies running MLPerf Inference benchmarks with minimal manual intervention.
- **Modular and Extensible** – Easily extend the scripts to support additional benchmarks and configurations.
- **Seamless Integration** – Compatible with Docker, cloud environments, and local machines.
- **MLCFlow (MLC) Integration** – Utilizes the MLC framework to enhance reproducibility and automation.

---

Expand Down Expand Up @@ -61,6 +60,7 @@ This project is made possible through the generous support of:
- [OctoML](https://octoml.ai)
- [cKnowledge.org](https://cKnowledge.org)
- [cTuning Foundation](https://cTuning.org)
- [GATEOverflow](https://gateoverflow.in)
- [MLCommons](https://mlcommons.org)

We appreciate their contributions and sponsorship!
Expand Down
Loading
Loading