Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
223d44b
clean up
Jan 15, 2025
3af16b1
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Jan 15, 2025
8226709
Merge pull request #4 from mlcommons/master
gfursin Jan 21, 2025
9b35cb3
add CM/CMX -i help "print info about available memory and disk space"
Jan 21, 2025
174a284
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Jan 21, 2025
8c68dfe
clean up
Jan 22, 2025
cd9168e
Merge pull request #5 from ctuning/dev
gfursin Jan 22, 2025
59a3771
demo
Jan 22, 2025
17c32b1
clean up
Jan 22, 2025
60e63df
workflows fixes
Jan 22, 2025
a9959de
clean up
Jan 22, 2025
3982b99
fixing cla check
Jan 22, 2025
5430713
Merge pull request #6 from ctuning/dev
gfursin Jan 22, 2025
4cf64e6
test
Jan 22, 2025
fad92f6
clean up
Jan 22, 2025
893e933
Merge pull request #7 from ctuning/dev
gfursin Jan 22, 2025
4d39c6c
demo
Jan 22, 2025
737b259
clean up
Jan 22, 2025
3ce9530
Merge pull request #8 from ctuning/dev
gfursin Jan 22, 2025
847c14d
clean up
Jan 22, 2025
6003f91
fixing workflows
Jan 22, 2025
94bfbc0
fixing workflows
Jan 22, 2025
a187f49
clean up
Jan 22, 2025
375ff93
Merge pull request #9 from ctuning/dev
gfursin Jan 22, 2025
53f3990
clean up
Jan 22, 2025
1243a12
Merge pull request #10 from ctuning/dev
gfursin Jan 22, 2025
75b6b35
test3
Jan 22, 2025
4fda64c
Merge pull request #11 from ctuning/dev
gfursin Jan 22, 2025
3fec8a5
clean up
Feb 1, 2025
476f869
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 1, 2025
c2c073c
regular CMX improvements for MLPerf (#1382)
ctuning-admin Feb 1, 2025
e29e368
Finalizing aggregation of legacy CM automation scripts for MLOps and …
Feb 2, 2025
9d75b28
clean up
Feb 2, 2025
06c9435
Merge pull request #13 from mlcommons/master
gfursin Feb 2, 2025
7592e7b
finished aggregating legacy CM automations (#1383)
ctuning-admin Feb 2, 2025
c4c6f14
fixed a few typos
Feb 2, 2025
be4aea6
Merge pull request #14 from mlcommons/master
gfursin Feb 2, 2025
796574e
fixed a few typos (#1384)
ctuning-admin Feb 2, 2025
447eac2
CMX v4.0.0
Feb 4, 2025
ddd6164
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 4, 2025
335b92a
Merge pull request #15 from mlcommons/master
gfursin Feb 4, 2025
d26afb7
Merge pull request #12 from ctuning/master
gfursin Feb 4, 2025
52b6bab
fixing typos
Feb 4, 2025
80fc6f3
updating challenges
Feb 4, 2025
99e1669
CMX v4.0.1 update
Feb 5, 2025
b998faf
CMX v4.0.1 update (#1385)
ctuning-admin Feb 5, 2025
e52555f
sync (#1386)
ctuning-admin Feb 5, 2025
0ba9c0f
Update __init__.py
gfursin Feb 5, 2025
09dd33d
fixing tests
Feb 5, 2025
c1eb18e
Merge pull request #16 from mlcommons/master
gfursin Feb 5, 2025
f2d4ebc
sync (#1387)
ctuning-admin Feb 5, 2025
3f13d9e
Merge branch 'master' into master
ctuning-admin Feb 5, 2025
4019157
fixed tests (#1388)
ctuning-admin Feb 5, 2025
61aafdb
fix test
Feb 5, 2025
6102d01
Merge pull request #17 from mlcommons/master
gfursin Feb 5, 2025
751b8b4
Merge pull request #18 from ctuning/master
gfursin Feb 5, 2025
05e5e80
fixed tests (#1390)
ctuning-admin Feb 5, 2025
954a503
Merge pull request #19 from mlcommons/master
ctuning-admin Feb 5, 2025
04823ab
Merge pull request #20 from ctuning/master
ctuning-admin Feb 5, 2025
6c5005c
Update __init__.py
ctuning-admin Feb 5, 2025
d523b8b
fixed tests
Feb 5, 2025
377d637
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 5, 2025
eb918b3
Merge pull request #22 from ctuning/master
gfursin Feb 5, 2025
dcb83a5
Update __init__.py
gfursin Feb 5, 2025
e7c05c3
clean up
Feb 5, 2025
1e10575
Merge pull request #23 from ctuning/master
gfursin Feb 5, 2025
5a49334
Merge pull request #21 from ctuning/dev
gfursin Feb 5, 2025
5d34448
Update __init__.py
gfursin Feb 5, 2025
0d9331a
fixed repo url
Feb 5, 2025
cad6f9c
fixed repo
Feb 5, 2025
7a25137
Merge pull request #24 from ctuning/dev
gfursin Feb 5, 2025
c487a79
Merge pull request #25 from ctuning/master
gfursin Feb 5, 2025
10cf8d4
Update __init__.py
gfursin Feb 5, 2025
49a6971
test fix
Feb 5, 2025
f7989e3
Merge pull request #26 from ctuning/dev
gfursin Feb 5, 2025
ecbd3b5
Update __init__.py
gfursin Feb 5, 2025
345921b
Update __init__.py
gfursin Feb 5, 2025
22c0b3d
fixed inference import
Feb 5, 2025
9f07718
Merge pull request #27 from ctuning/dev
gfursin Feb 5, 2025
260cdad
v4.0.1 updates (#1391)
ctuning-admin Feb 5, 2025
d718ee9
Merge branch 'master' into inf-v4.1-results
ctuning-admin Feb 5, 2025
3d6c25c
fixed test
Feb 5, 2025
9eccc99
Merge pull request #28 from mlcommons/master
gfursin Feb 5, 2025
c514e9d
fixed tests (#1393)
ctuning-admin Feb 5, 2025
f44f061
Merge branch 'master' into inf-v4.1-results
gfursin Feb 5, 2025
adaabf9
minor docs update
Feb 5, 2025
a25e1e7
minor update
Feb 5, 2025
562f717
Merge pull request #29 from mlcommons/master
gfursin Feb 5, 2025
ab7b4e6
fixed inference import (#1392)
gfursin Feb 5, 2025
b215358
Merge pull request #30 from mlcommons/master
gfursin Feb 5, 2025
e0895a5
bug fixes
Feb 5, 2025
1196f71
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 5, 2025
1279009
minor docs update (#1394)
gfursin Feb 5, 2025
0d0012f
dev version
Feb 5, 2025
142819a
Merge pull request #31 from mlcommons/master
gfursin Feb 5, 2025
229852c
dev version (#1395)
ctuning-admin Feb 6, 2025
c975333
improving docs
Feb 12, 2025
fcd5090
Merge pull request #32 from mlcommons/master
gfursin Feb 12, 2025
b976ecc
improving docs (#1397)
ctuning-admin Feb 12, 2025
5082fce
improving docs
Feb 12, 2025
9573769
improving docs
Feb 12, 2025
e8925db
Merge pull request #33 from mlcommons/master
gfursin Feb 13, 2025
fc348c5
clean up
Feb 13, 2025
a43092e
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 13, 2025
8636fa5
Improving documentation
Feb 13, 2025
1c83988
improving documentation (#1399)
ctuning-admin Feb 13, 2025
64d3a24
fixed typo
Feb 13, 2025
0d6586e
Merge pull request #34 from mlcommons/master
gfursin Feb 13, 2025
cd4cc2d
clean up
Feb 13, 2025
bbab7bd
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 13, 2025
a19bc92
docs fixes (#1400)
ctuning-admin Feb 13, 2025
8f5681a
improving docs
Feb 13, 2025
5dc16d8
clean up
Feb 13, 2025
8e48ce0
Merge pull request #35 from mlcommons/master
gfursin Feb 13, 2025
809089a
improving docs (#1401)
ctuning-admin Feb 14, 2025
8eaad5e
improving docs
Feb 14, 2025
10b4009
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 14, 2025
9583e30
Merge pull request #36 from mlcommons/master
gfursin Feb 14, 2025
400d987
improving docs (#1402)
ctuning-admin Feb 14, 2025
7c39a47
CMX v4.1.0
Feb 17, 2025
c7923d8
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 17, 2025
f753921
Merge pull request #37 from mlcommons/master
gfursin Feb 17, 2025
306fa60
clean up
Feb 17, 2025
a794c7b
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 17, 2025
08e1620
clean up
Feb 17, 2025
60fbc0a
clean up
Feb 17, 2025
296c727
CMX V4.1.0 (#1403)
ctuning-admin Feb 17, 2025
0114d0f
CMX V4.1.1: fixed legacy interfaces
Feb 17, 2025
732a2c9
Merge pull request #38 from mlcommons/master
gfursin Feb 17, 2025
b92bff8
clean up
Feb 17, 2025
73ff733
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 17, 2025
256f181
CMX V4.1.1: fixed legacy interfaces (#1404)
ctuning-admin Feb 17, 2025
4501247
## CMX V4.1.2
Feb 18, 2025
4c5f22a
Merge pull request #39 from mlcommons/master
gfursin Feb 18, 2025
739a138
CMX/CM V4.1.2 (#1406)
ctuning-admin Feb 18, 2025
71d64b7
fixed typo
Feb 18, 2025
796de8f
Merge pull request #40 from mlcommons/master
gfursin Feb 18, 2025
c8ab749
fixed typo (#1407)
ctuning-admin Feb 18, 2025
e660e73
Merge pull request #41 from mlcommons/master
gfursin Feb 18, 2025
e9f6963
fixed unknown '-v' to show CMX version
Feb 18, 2025
0e42582
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 18, 2025
1e1938b
fixed unknown `-v` flag to show cmx version (#1408)
ctuning-admin Feb 18, 2025
a9a74a0
fixed a bug with "cmx -log" (#1410)
Feb 19, 2025
eca5460
Merge pull request #42 from mlcommons/master
gfursin Feb 19, 2025
fa7ca22
V4.1.3: bug fixes
Feb 20, 2025
f4461c5
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Feb 20, 2025
91f259b
CM/CMX v4.1.3: bug fixes (#1411)
ctuning-admin Feb 20, 2025
95aa328
Merge pull request #43 from mlcommons/master
gfursin Feb 20, 2025
4c53ae1
docs clean up
Mar 13, 2025
9b90646
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Mar 13, 2025
7cbffbd
clean up (#1412)
ctuning-admin Mar 13, 2025
e56f1ec
CM/CMX v4.1.4: bug fixes
Mar 13, 2025
7cce637
Merge pull request #44 from mlcommons/master
gfursin Mar 13, 2025
f59ee94
test fix
Mar 13, 2025
816d90f
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Mar 13, 2025
ca0ab00
CM/CMX v4.1.4: bug fixes (#1413)
gfursin Mar 13, 2025
5186787
fixed mlperf inference 5.0 import
Mar 13, 2025
033fcd3
fixing test
Mar 14, 2025
14b1e38
Merge pull request #45 from mlcommons/master
gfursin Mar 14, 2025
d0e1db5
fixing cmx test (#1414)
gfursin Mar 14, 2025
9883994
dev version
Mar 14, 2025
36d1e3e
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Mar 14, 2025
ec602a6
Merge pull request #46 from mlcommons/master
gfursin Mar 14, 2025
a2c1901
dev version (#1415)
gfursin Mar 14, 2025
c980c58
clean up test
Mar 19, 2025
4e75f43
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Mar 19, 2025
82da3a9
Merge pull request #47 from mlcommons/master
gfursin Mar 19, 2025
ac1882f
clean up tests
Mar 19, 2025
f4fd6df
Merge branch 'master' of github.com:ctuning/mlcommons-ck
Mar 19, 2025
850edac
clean up tests (#1416)
ctuning-admin Mar 20, 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
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
types: [opened,closed,synchronize]

jobs:
cla-check:
if: github.repository_owner == 'mlcommons'
runs-on: ubuntu-latest
steps:
- name: "MLCommons CLA bot check"
Expand All @@ -22,7 +23,7 @@ jobs:
path-to-signatures: 'cla-bot/v1/cla.json'
# branch should not be protected
branch: 'main'
allowlist: user1,bot*
allowlist: user1,mlcommons-bot,bot*
remote-organization-name: mlcommons
remote-repository-name: systems

Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/test-cmlcr-mlperf-inference-rgat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: MLPerf inference R-GAT via CMLCR

on:
pull_request_target:
branches: [ "master", "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-rgat.yml'
- '**'
- '!**.md'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [ "3.12" ]
backend: [ "pytorch" ]
implementation: [ "python" ]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install CMX
run: |
pip install cmind
- name: Install mlcflow
run: |
pip install mlcflow
pip install tabulate
- name: Pull MLOps repository
run: |
cmlc pull repo mlcommons@mlperf-automations --branch=main
- name: Test MLPerf Inference R-GAT using ${{ matrix.backend }} on ${{ matrix.os }}
run: |
cmlcr run,mlperf,inference,generate-run-cmds,_submission,_short --adr.inference-src.tags=_branch.dev --pull_changes=yes --pull_inference_changes=yes --submitter="MLC" --hw_name=gh_${{ matrix.os }}_x86 --model=rgat --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --adr.compiler.tags=gcc --category=datacenter --quiet -v --target_qps=1

- name: Push Test MLPerf Results (only for cTuning dev branches)
if: github.repository_owner == 'ctuning'
env:
USER: "GitHub Action"
EMAIL: "admin@cTuning.org"
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
run: |
git config --global user.name "${{ env.USER }}"
git config --global user.email "${{ env.EMAIL }}"
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"
cmlcr push,github,mlperf,inference,submission --repo_url="https://github.com/ctuning/test_mlperf_inference_submissions" --repo_branch=main --commit_message="Results from R-Gat GH action on ${{ matrix.os }}" --quiet
4 changes: 2 additions & 2 deletions .github/workflows/test-cmx-image-classification-onnx.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: 'CMX: image classification with ONNX'
name: 'Image classification with ONNX via CMX'

on:
pull_request:
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install cmind
cmx pull repo --url=https://github.com/mlcommons/cm4mlops
cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
cmx test core
- name: Test image classification with ONNX
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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: MLPerf inference bert (deepsparse, tf, onnxruntime, pytorch) via CMX

on:
pull_request_target:
branches: [ "main", "master", "dev"]
paths:
- '.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml'
- '**'
- '!**.md'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# 3.12 didn't work on 20240305 - need to check
python-version: [ "3.11" ]
backend: [ "deepsparse", "tf", "onnxruntime", "pytorch" ]
precision: [ "int8", "fp32" ]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- backend: tf
- backend: pytorch
- backend: onnxruntime
- precision: fp32
- os: windows-latest

steps:
- uses: actions/checkout@v4
- 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 dependencies
run: |
python3 -m pip install cmind
cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
if: matrix.os == 'windows-latest'
run: |
cmx run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --precision=${{ matrix.precision }} --target_qps=1 --v --quiet
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
if: matrix.os != 'windows-latest'
run: |
cmx run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --precision=${{ matrix.precision }} --target_qps=1 --v --quiet
- name: Push Test MLPerf Results (only for cTuning dev branches)
if: github.repository_owner == 'ctuning'
env:
USER: "GitHub Action"
EMAIL: "admin@cTuning.org"
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
run: |
git config --global user.name "${{ env.USER }}"
git config --global user.email "${{ env.EMAIL }}"
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"
cmx run script --tags=push,github,mlperf,inference,submission --repo_url="https://github.com/ctuning/test_mlperf_inference_submissions" --repo_branch=main --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet
67 changes: 67 additions & 0 deletions .github/workflows/test-cmx-mlperf-inference-resnet50.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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: MLPerf inference ResNet50 via CMX

on:
pull_request_target:
branches: [ "main", "master", "dev"]
paths:
- '.github/workflows/test-cmx-mlperf-inference-resnet50.yml'
- '**'
- '!**.md'
jobs:
build:
runs-on: ${{ matrix.os }}
env:
CM_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
- 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 dependencies
run: |
python3 -m pip install cmind
cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
- name: Test MLPerf Inference ResNet50 (Windows)
if: matrix.os == 'windows-latest'
run: |
cmx run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --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 --quiet
- name: Test MLPerf Inference ResNet50 (Linux/macOS)
if: matrix.os != 'windows-latest'
run: |
cmx run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --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
- name: Push Test MLPerf Results (only for cTuning dev branches)
if: github.repository_owner == 'ctuning'
env:
USER: "GitHub Action"
EMAIL: "admin@cTuning.org"
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
run: |
git config --global user.name "${{ env.USER }}"
git config --global user.email "${{ env.EMAIL }}"
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"
cmx run script --tags=push,github,mlperf,inference,submission --repo_url="https://github.com/ctuning/test_mlperf_inference_submissions" --repo_branch=main --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet
52 changes: 52 additions & 0 deletions .github/workflows/test-cmx-mlperf-inference-rgat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: MLPerf inference R-GAT via CMX

on:
pull_request:
branches: [ "main", "master", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-rgat.yml'
- '**'
- '!**.md'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [ "3.12" ]
backend: [ "pytorch" ]
implementation: [ "python" ]

steps:
- uses: actions/checkout@v4
- 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 dependencies
run: |
python3 -m pip install cmind
cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
- name: Test MLPerf Inference R-GAT using ${{ matrix.backend }} on ${{ matrix.os }}
run: |
cmx run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --adr.inference-src.tags=_branch.dev --pull_changes=yes --pull_inference_changes=yes --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=rgat --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --adr.compiler.tags=gcc --category=datacenter --quiet --v --target_qps=1
- name: Push Test MLPerf Results (only for cTuning dev branches)
if: github.repository_owner == 'ctuning'
env:
USER: "GitHub Action"
EMAIL: "admin@cTuning.org"
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
run: |
git config --global user.name "${{ env.USER }}"
git config --global user.email "${{ env.EMAIL }}"
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"
cmx run script --tags=push,github,mlperf,inference,submission --repo_url="https://github.com/ctuning/test_mlperf_inference_submissions" --repo_branch=main --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet
51 changes: 51 additions & 0 deletions .github/workflows/test-cmx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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: CMX test

on:
pull_request:
branches: [ "master", "main", "dev" ]
paths:
- '.github/workflows/test-cm.yml'
- 'cm/**'
- '!cm/**.md'

jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
on: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- python-version: "3.7"
on: "macos-latest"
runs-on: "${{ matrix.on }}"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and test cm pull repo
run: |
python3 -m pip install --upgrade pip
python3 -m pip install flake8 pytest
python3 -m pip install -r requirements.txt
python3 -m pip install --ignore-installed --verbose pip setuptools
python3 -m pip install cmind
python3 -m cmind
cmx pull repo mlcommons@ck --dir2=cm4mlops
- name: Test
run: |
python tests/test_cm.py
cd && mkdir tmp_cm_repo
cd tmp_cm_repo && cm init repo
cmx add script tmp_cm_repo:my-test-script --tags=test,script
cmx add script .:my-test-script2 --tags=test2,script
cd && cmx add repo my-test-repo
cmx add script my-test-repo:my-test-script --tags=test,script
cd $HOME/CM/repos/my-test-repo && cmx add script .:my-test-script2 --tags=test2,script
Loading
Loading