Skip to content

Commit e277379

Browse files
author
Grigori Fursin
committed
preparing CMX v4.2.0 for release
1 parent f4fd6df commit e277379

File tree

537 files changed

+24029
-3
lines changed

Some content is hidden

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

537 files changed

+24029
-3
lines changed

CONTRIBUTORS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and contributors listed here in alphabetical order:
1212
* @Leonard226
1313
* @Oseltamivir
1414
* @Submandarine
15-
* Daniel Altunay
15+
* Daniel Altunay (FlexAI)
1616
* Resmi Arjun
1717
* Omar Benjelloun (Google)
1818
* Alice Cheng (Nvidia)
@@ -42,6 +42,7 @@ and contributors listed here in alphabetical order:
4242
* Steve Leak(NERSC)
4343
* Amija Maji (Purdue University)
4444
* Peter Mattson (Google, MLCommons)
45+
* Agustin Mautone (FlexAI)
4546
* Kasper Mecklenburg (Arm)
4647
* Pablo Gonzalez Mesa
4748
* Thierry Moreau (OctoML)
@@ -72,6 +73,7 @@ and contributors listed here in alphabetical order:
7273
* Zixian Wang
7374
* Nathan Wasson
7475
* Scott Wasson (MLCommons)
76+
* Aymen Zayet (FlexAI)
7577
* Haoyang Zhang (UIUC)
7678
* Bojian Zheng (University of Toronto)
7779
* Thomas Zhu (Oxford University)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ based on user feedback. It is backwards compatible with CM, released along with
5555
in the [cmind package](https://pypi.org/project/cmind/) and can serve as drop-in replacement
5656
for CM and legacy MLPerf automations while providing a simpler and more robust interface.
5757

58-
See the [project page](https://github.com/mlcommons/ck/tree/master/cmx) for more details.
58+
See the [project page](https://github.com/mlcommons/ck/tree/master/cmx)
59+
and [CMX4MLOps automations](https://github.com/mlcommons/ck/tree/master/cmx4mlops) for more details.
5960

6061
### MLOps and MLPerf automations
6162

cm/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## CMX V4.2.0
2+
- added flextask wrapper for CMX4MLOps/FlexBench
3+
14
## CMX V4.1.4
25
- fixed minor bug for "cmx --version"
36
- added "cmx pull repo --dir2" to support "dir/dir" directories

cm/cmind/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# White paper: https://arxiv.org/abs/2406.16791
1010
# Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md
1111

12-
__version__ = "4.1.4.1"
12+
__version__ = "4.2.0"
1313

1414
from cmind.core import access
1515
from cmind.core import x

cm/cmind/cli.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,35 @@ def split_flag(flag, array, value=None):
526526

527527
return key, value, array
528528

529+
############################################################
530+
def run_flex_task(argv = None):
531+
"""
532+
Run Flexible Task to automate FlexBench (MLPerf inference 5.0 submission)
533+
534+
Args:
535+
(argv): system arguments
536+
537+
Returns:
538+
return code from flexible task
539+
540+
541+
"""
542+
543+
# Access CM
544+
from cmind.core import CM
545+
546+
cm = CM()
547+
548+
if argv is None:
549+
argv = sys.argv[1:]
550+
551+
r = cm.x(['run', 'flex.task'] + argv, out='con')
552+
553+
if r['return']>0 and (cm.output is None or cm.output == 'con'):
554+
cm.errorx(r)
555+
556+
sys.exit(r['return'])
557+
529558
###########################################################################
530559
if __name__ == "__main__":
531560
run()

cm/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ cmr = "cmind.cli:run_script"
102102
cmrd = "cmind.cli:docker_script"
103103
cmg = "cmind.cli:gui_script"
104104
cme = "cmind.cli:run_experiment"
105+
flextask = "cmind.cli:run_flex_task"
106+
ft = "cmind.cli:run_flex_task"

cmx4mlops/COPYRIGHT.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
© 2024-2025 FlexAI. All Rights Reserved.
2+
3+
License: Apache 2.0 (../LICENSE.md)
4+
5+
Author: Grigori Fursin

cmx4mlops/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# CMX automations for MLOps and MLPerf
2+
3+
[![License](https://img.shields.io/badge/License-Apache%202.0-green)](LICENSE.md)
4+
[![CMX repository](https://img.shields.io/badge/Common%20Metadata%20eXchange-compatible-blue)](https://github.com/mlcommons/ck/tree/master/cmx4mlops)
5+
[![Powered by CMX](https://img.shields.io/badge/Powered_by-MLCommons%20CMX-blue)](https://pypi.org/project/cmind).
6+
7+
## License
8+
9+
[Apache 2.0](../LICENSE.md)
10+
11+
This project may include code from other related MLCommons projects under the same license.
12+
13+
## Author
14+
15+
[Grigori Fursin](https://cKnowledge.org/gfursin)
16+
17+
We sincerely appreciate all [contributors](https://github.com/mlcommons/ck/blob/master/CONTRIBUTORS.md)
18+
for their invaluable feedback and support!
19+
20+
## Citing this project
21+
22+
If you found the CM, CMX and MLPerf automations helpful, kindly reference this article:
23+
[ [ArXiv](https://arxiv.org/abs/2406.16791) ]

cmx4mlops/cmr.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
alias: mlcommons@cmx4mlops
2+
uid: 84dac8a5f8314c02
3+
4+
git: true
5+
6+
install_python_requirements: false
7+
8+
min_cm_version: 4.2.0
9+
10+
author: "Grigori Fursin"
11+
12+
version: 1.1.0
13+
14+
prefix: repo
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
alias: flex.cache
2+
uid: b9d58d0cbecd442b
3+
4+
automation_alias: automation
5+
automation_uid: bbeb15d8f0a944a4
6+
7+
min_cm_version: 3.4.1
8+
9+
author_and_developer: "Grigori Fursin"
10+
11+
tags:
12+
- automation
13+
- flex
14+
- cache
15+
16+
use:
17+
flex.common: "flex.common,21286240620d4ef6"

0 commit comments

Comments
 (0)