Skip to content

Merge changes for MLC #128

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 107 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
f5225bd
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 10, 2025
1509b4e
Merge branch 'mlcommons:dev' into dev
arjunsuresh Jan 10, 2025
934dab4
Update test-cm-based-submission-generation.yml
arjunsuresh Jan 10, 2025
52fd2e6
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
4ed39a7
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
efc7263
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
e2de041
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
ec30f8e
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
1ce00d1
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
cffb9e7
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
1ccc9ff
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
3c6147f
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
4d7bf3e
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
ce4aa28
[Automated Commit] Format Codebase
arjunsuresh Jan 10, 2025
e43e36c
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
69c8943
Merge branch 'dev' into dev
arjunsuresh Jan 10, 2025
28e4946
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
7fd1715
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
a4ece9a
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
989b18f
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
dc1fef7
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
6b53dbf
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
fbe52d8
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
87bcbaa
[Automated Commit] Format Codebase
arjunsuresh Jan 11, 2025
045f38f
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
45c3181
Merge branch 'dev' into dev
arjunsuresh Jan 11, 2025
1467c28
Added a common automation base class in MLC
arjunsuresh Jan 13, 2025
05f1ae8
[Automated Commit] Format Codebase
arjunsuresh Jan 13, 2025
0e6a4f9
Changes for mlc
arjunsuresh Jan 15, 2025
bdcabe1
[Automated Commit] Format Codebase
arjunsuresh Jan 15, 2025
90af1f8
Script automation meta added
arjunsuresh Jan 15, 2025
fd663f6
[Automated Commit] Format Codebase
arjunsuresh Jan 15, 2025
6f0d9cb
Fixes for mlc
arjunsuresh Jan 16, 2025
5f3c326
Merge branch 'dev' into mlc
arjunsuresh Jan 16, 2025
d27b8f4
MLC compatibility improved in script automation
arjunsuresh Jan 17, 2025
01a4320
[Automated Commit] Format Codebase
arjunsuresh Jan 17, 2025
1dc2a41
Fix llvm install for mlc
arjunsuresh Jan 17, 2025
5cdd575
[Automated Commit] Format Codebase
arjunsuresh Jan 17, 2025
aa52140
Cleaned up unused files, improved mlc support
arjunsuresh Jan 17, 2025
3b87814
Fixed import for mlc utils in scripts
arjunsuresh Jan 17, 2025
adfbd41
Fixed some downloads via util
arjunsuresh Jan 17, 2025
c6ec427
[Automated Commit] Format Codebase
arjunsuresh Jan 17, 2025
946520c
Fix version compare for mlc
arjunsuresh Jan 17, 2025
214a2aa
[Automated Commit] Format Codebase
arjunsuresh Jan 17, 2025
9c50405
Fixes for app-mlperf-inference for MLC
arjunsuresh Jan 17, 2025
baee3dd
[Automated Commit] Format Codebase
arjunsuresh Jan 17, 2025
1818571
Log output fix for MLC
arjunsuresh Jan 18, 2025
f03f9f3
[Automated Commit] Format Codebase
arjunsuresh Jan 18, 2025
2df690b
Update and rename cmr.yaml to meta.yaml
arjunsuresh Jan 18, 2025
1e28fda
Update meta.yaml
arjunsuresh Jan 18, 2025
b1fe9d4
Fixed mlc imports for scripts
arjunsuresh Jan 18, 2025
a85217c
[Automated Commit] Format Codebase
arjunsuresh Jan 18, 2025
970b9ac
Fixed mlc imports for scripts
arjunsuresh Jan 18, 2025
92b393b
[Automated Commit] Format Codebase
arjunsuresh Jan 18, 2025
e498cb0
Added docker code for MLC
arjunsuresh Jan 20, 2025
5cf3985
[Automated Commit] Format Codebase
arjunsuresh Jan 20, 2025
0998095
Fixes on Windows for MLC
arjunsuresh Jan 20, 2025
6da9756
[Automated Commit] Format Codebase
arjunsuresh Jan 20, 2025
4c5aa36
Fix for mlc docker
arjunsuresh Jan 21, 2025
1c432c6
Changes to support repo class in mlc
arjunsuresh Jan 21, 2025
1e306d3
[Automated Commit] Format Codebase
arjunsuresh Jan 21, 2025
75cfd6f
fixes to get-sys-utils-min
arjunsuresh Jan 21, 2025
37fb87f
Fix to get-cmake on windows
arjunsuresh Jan 21, 2025
d4ef517
Use unzip and not extract in install-cmake
arjunsuresh Jan 21, 2025
00651ad
Renamed meta files to meta.yaml
arjunsuresh Jan 21, 2025
de8bc05
Support meta.json in automations
arjunsuresh Jan 21, 2025
44fd1aa
Update and rename test-cm-script-features.yml to test-mlc-script-feat…
arjunsuresh Jan 22, 2025
dcfb469
New setup.py for mlperf
arjunsuresh Jan 22, 2025
c73280d
Changes for mlperf pypi package
arjunsuresh Jan 22, 2025
83b0613
[Automated Commit] Format Codebase
arjunsuresh Jan 22, 2025
1ef54f0
Merge branch 'dev' into mlc
arjunsuresh Jan 22, 2025
fea55f9
[Automated Commit] Format Codebase
arjunsuresh Jan 22, 2025
66e7874
Update VERSION
arjunsuresh Jan 22, 2025
542e58c
Update test-mlc-script-features.yml
arjunsuresh Jan 22, 2025
e15eb82
Update test-mlc-script-features.yml
arjunsuresh Jan 22, 2025
9012674
Create flow.md
arjunsuresh Jan 22, 2025
223ebcc
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 22, 2025
4e4da60
Update test-mlperf-inference-abtf-poc.yml
arjunsuresh Jan 22, 2025
38e681f
Update test-mlperf-inference-abtf-poc.yml
arjunsuresh Jan 22, 2025
6aeb5cc
Update test-mlperf-inference-mlcommons-cpp-resnet50.yml
arjunsuresh Jan 22, 2025
fbc8ba7
Update test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml
arjunsuresh Jan 22, 2025
9d1736e
Update test-mlperf-inference-retinanet.yml
arjunsuresh Jan 22, 2025
2e83c6a
Update test-image-classification-onnx.yml
arjunsuresh Jan 22, 2025
de86105
Update test-mlperf-inference-retinanet.yml
arjunsuresh Jan 22, 2025
0cb7984
Update test-mlc-script-features.yml
arjunsuresh Jan 22, 2025
b35ae5b
Update test-mlperf-inference-mlcommons-cpp-resnet50.yml
arjunsuresh Jan 22, 2025
89a792e
Update test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml
arjunsuresh Jan 22, 2025
2291f42
Update test-mlperf-inference-rgat.yml
arjunsuresh Jan 22, 2025
e469aa3
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 22, 2025
29b8314
Update test-mlperf-loadgen-onnx-huggingface-bert-fp32-squad.yml
arjunsuresh Jan 22, 2025
bc4359c
Update test-mlperf-loadgen-onnx-huggingface-bert-fp32-squad.yml
arjunsuresh Jan 22, 2025
fdeeb6e
Fix get-cognata for mlc
arjunsuresh Jan 22, 2025
8adf759
[Automated Commit] Format Codebase
arjunsuresh Jan 22, 2025
1df5a31
Fixes for github actions
arjunsuresh Jan 22, 2025
b563973
Fixes to get-cognata for mlc
arjunsuresh Jan 22, 2025
58f6fff
[Automated Commit] Format Codebase
arjunsuresh Jan 22, 2025
1ca4453
Fix scc24 github action
arjunsuresh Jan 22, 2025
192892b
Added tutorial gh actions for mlc
arjunsuresh Jan 22, 2025
6c90cb6
Update test-mlperf-inference-resnet50.yml
arjunsuresh Jan 22, 2025
f76ceaa
Added tutorial gh actions for mlc
arjunsuresh Jan 22, 2025
8698e9e
Fixes to tests
arjunsuresh Jan 22, 2025
b76d063
Fixes to github tests
arjunsuresh Jan 23, 2025
69fb6b7
Fixes to github tests
arjunsuresh Jan 23, 2025
d210baa
Fixes to github tests
arjunsuresh Jan 23, 2025
20b3e17
Fix script test
arjunsuresh Jan 23, 2025
08c21b6
[Automated Commit] Format Codebase
arjunsuresh Jan 23, 2025
affcf7c
Fix script test
arjunsuresh Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
import os
import cmind as cm
import check as checks
import mlc
import json
import yaml

Expand All @@ -11,7 +10,7 @@
print(file)
if not os.path.isfile(file) or not "script" in file:
continue
if not file.endswith("_cm.json") and not file.endswith("_cm.yaml"):
if not file.endswith("meta.json") and not file.endswith("meta.yaml"):
continue
script_path = os.path.dirname(file)
f = open(file)
Expand All @@ -24,7 +23,7 @@
uid = data['uid']

ii = {
'action': 'test', 'automation': 'script', 'artifact': uid, 'quiet': 'yes', 'out': 'con'
'action': 'test', 'target': 'script', 'item': uid, 'quiet': 'yes', 'out': 'con'
}
if os.environ.get('DOCKER_CM_REPO', '') != '':
ii['docker_cm_repo'] = os.environ['DOCKER_CM_REPO']
Expand All @@ -33,6 +32,6 @@
if os.environ.get('TEST_INPUT_INDEX', '') != '':
ii['test_input_index'] = os.environ['TEST_INPUT_INDEX']
print(ii)
r = cm.access(ii)

checks.check_return(r)
ret = mlc.access(ii)
if ret['return'] > 0:
raise Exception(r['error'])
12 changes: 6 additions & 6 deletions .github/workflows/run-individual-script-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This workflow will run configured tests for any updated CM scripts
name: Individual CM script Tests
name: Individual Automation script Tests

on:
pull_request:
branches: [ "main", "dev" ]
paths:
- 'script/**_cm.json'
- 'script/**_cm.yaml'
- 'script/**meta.json'
- 'script/**meta.yaml'

jobs:
run-script-tests:
Expand All @@ -32,6 +32,6 @@ jobs:
for file in ${{ steps.getfile.outputs.files }}; do
echo $file
done
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
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 }}
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
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 .github/scripts/process_individual_tests.py ${{ steps.getfile.outputs.files }}
53 changes: 0 additions & 53 deletions .github/workflows/test-cm-script-features.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/test-cm-tutorial-retinanet.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/test-cm-tutorial-tvm-pip.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/test-cm-tutorial-tvm.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/test-cm4mlops-wheel-macos.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/test-cm4mlops-wheel-windows.yml

This file was deleted.

23 changes: 8 additions & 15 deletions .github/workflows/test-image-classification-onnx.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: image classification with ONNX
name: Image classification with ONNX

on:
pull_request:
branches: [ "main", "dev", "mlperf-inference" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-image-classification-onnx.yml'
- '**'
Expand All @@ -30,18 +27,14 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
git config --system core.longpaths true
- name: Install cm4mlops on Windows
if: matrix.os == 'windows-latest'
- name: Install mlcflow
run: |
$env:CM_PULL_DEFAULT_MLOPS_REPO = "no"; pip install cm4mlops
- name: Install dependencies on Unix Platforms
if: matrix.os != 'windows-latest'
run: |
CM_PULL_DEFAULT_MLOPS_REPO=no pip install cm4mlops
pip install mlcflow
pip install tabulate

- name: Pull MLOps repository
run: |
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
cm run script --quiet --tags=get,sys-utils-cm
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
- name: Test image classification with ONNX
run: |
cm run script --tags=python,app,image-classification,onnx --quiet
mlcr --tags=python,app,image-classification,onnx --quiet
Loading
Loading