Skip to content

Commit 97c37c4

Browse files
authored
Merge pull request #148 from mlcommons/dev
Sync Dev
2 parents 7de2ead + 9924b6a commit 97c37c4

File tree

1,300 files changed

+19678
-31560
lines changed

Some content is hidden

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

1,300 files changed

+19678
-31560
lines changed
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import os
3-
import cmind as cm
4-
import check as checks
3+
import mlc
54
import json
65
import yaml
76

@@ -11,7 +10,7 @@
1110
print(file)
1211
if not os.path.isfile(file) or not "script" in file:
1312
continue
14-
if not file.endswith("_cm.json") and not file.endswith("_cm.yaml"):
13+
if not file.endswith("meta.json") and not file.endswith("meta.yaml"):
1514
continue
1615
script_path = os.path.dirname(file)
1716
f = open(file)
@@ -24,15 +23,15 @@
2423
uid = data['uid']
2524

2625
ii = {
27-
'action': 'test', 'automation': 'script', 'artifact': uid, 'quiet': 'yes', 'out': 'con'
26+
'action': 'test', 'target': 'script', 'item': uid, 'quiet': 'yes', 'out': 'con'
2827
}
29-
if os.environ.get('DOCKER_CM_REPO', '') != '':
30-
ii['docker_cm_repo'] = os.environ['DOCKER_CM_REPO']
31-
if os.environ.get('DOCKER_CM_REPO_BRANCH', '') != '':
32-
ii['docker_cm_repo_branch'] = os.environ['DOCKER_CM_REPO_BRANCH']
28+
if os.environ.get('DOCKER_MLC_REPO', '') != '':
29+
ii['docker_mlc_repo'] = os.environ['DOCKER_MLC_REPO']
30+
if os.environ.get('DOCKER_MLC_REPO_BRANCH', '') != '':
31+
ii['docker_mlc_repo_branch'] = os.environ['DOCKER_MLC_REPO_BRANCH']
3332
if os.environ.get('TEST_INPUT_INDEX', '') != '':
3433
ii['test_input_index'] = os.environ['TEST_INPUT_INDEX']
3534
print(ii)
36-
r = cm.access(ii)
37-
38-
checks.check_return(r)
35+
ret = mlc.access(ii)
36+
if ret['return'] > 0:
37+
raise Exception(r['error'])

.github/workflows/build_wheel.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- VERSION
1212
- setup.py
1313

14-
1514
jobs:
1615
build_wheels:
1716
if: github.repository_owner == 'mlcommons'

.github/workflows/format.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ env:
1111
jobs:
1212
format-code:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416
steps:
1517
- name: Checkout code
1618
uses: actions/checkout@v4
@@ -54,8 +56,8 @@ jobs:
5456
HAS_CHANGES=$(git diff --staged --name-only)
5557
if [ ${#HAS_CHANGES} -gt 0 ]; then
5658
# Use the GitHub actor's name and email
57-
git config --global user.name "${GITHUB_ACTOR}"
58-
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
59+
git config --global user.name github-actions[bot]
60+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
5961
# Commit changes
6062
git commit -m '[Automated Commit] Format Codebase'
6163
git push

.github/workflows/run-individual-script-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This workflow will run configured tests for any updated CM scripts
2-
name: Individual CM script Tests
2+
name: Individual Automation script Tests
33

44
on:
55
pull_request:
66
branches: [ "main", "dev" ]
77
paths:
8-
- 'script/**_cm.json'
9-
- 'script/**_cm.yaml'
8+
- 'script/**meta.json'
9+
- 'script/**meta.yaml'
1010

1111
jobs:
1212
run-script-tests:
@@ -32,6 +32,6 @@ jobs:
3232
for file in ${{ steps.getfile.outputs.files }}; do
3333
echo $file
3434
done
35-
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
36-
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
37-
DOCKER_CM_REPO=${{ github.event.pull_request.head.repo.html_url }} DOCKER_CM_REPO_BRANCH=${{ github.event.pull_request.head.ref }} TEST_INPUT_INDEX=${{ matrix.test-input-index }} python3 script/test-cm-core/src/script/process_tests.py ${{ steps.getfile.outputs.files }}
35+
pip install mlcflow
36+
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
37+
DOCKER_MLC_REPO=${{ github.event.pull_request.head.repo.html_url }} DOCKER_MLC_REPO_BRANCH=${{ github.event.pull_request.head.ref }} TEST_INPUT_INDEX=${{ matrix.test-input-index }} python3 .github/scripts/process_individual_tests.py ${{ steps.getfile.outputs.files }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
if [ -f "gh_action/bin/deactivate" ]; then source gh_action/bin/deactivate; fi
2020
python3 -m venv gh_action
2121
source gh_action/bin/activate
22-
export CM_REPOS=$HOME/GH_CM
22+
export MLC_REPOS=$HOME/GH_MLC
2323
pip install --upgrade cm4mlops
2424
cm pull repo
25-
cm run script --tags=run-mlperf,inference,_all-scenarios,_full,_r4.1-dev --execution_mode=valid --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="MLCommons" --hw_name=IntelSPR.24c --implementation=amd --backend=pytorch --category=datacenter --division=open --scenario=Offline --docker_dt=yes --docker_it=no --docker_cm_repo=gateoverflow@mlperf-automations --docker_cm_repo_branch=dev --adr.compiler.tags=gcc --device=rocm --use_dataset_from_host=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --clean --docker --quiet --docker_skip_run_cmd=yes
26-
# cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_unofficial_submissions_v5.0 --repo_branch=dev --commit_message="Results from GH action on SPR.24c" --quiet --submission_dir=$HOME/gh_action_submissions --hw_name=IntelSPR.24c
25+
mlcr --tags=run-mlperf,inference,_all-scenarios,_full,_r4.1-dev --execution_mode=valid --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="MLCommons" --hw_name=IntelSPR.24c --implementation=amd --backend=pytorch --category=datacenter --division=open --scenario=Offline --docker_dt=yes --docker_it=no --docker_mlc_repo=gateoverflow@mlperf-automations --docker_mlc_repo_branch=dev --adr.compiler.tags=gcc --device=rocm --use_dataset_from_host=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --clean --docker --quiet --docker_skip_run_cmd=yes
26+
# mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_unofficial_submissions_v5.0 --repo_branch=dev --commit_message="Results from GH action on SPR.24c" --quiet --submission_dir=$HOME/gh_action_submissions --hw_name=IntelSPR.24c

.github/workflows/test-cm-script-features.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/test-cm-tutorial-retinanet.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/test-cm-tutorial-tvm-pip.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/test-cm-tutorial-tvm.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/test-cm4mlops-wheel-macos.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)