Skip to content

Commit e1d5c7c

Browse files
Merge pull request #659 from ctuning/main
legacy clean up
2 parents 3d2520a + 67c0de3 commit e1d5c7c

File tree

3 files changed

+13
-24
lines changed

3 files changed

+13
-24
lines changed

README.md

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
## Unified and cross-platform CM interface for DevOps, MLOps and MLPerf
1+
# Legacy CM4MLOps repository with DevOps, MLOps and MLPerf automations
22

33
[![License](https://img.shields.io/badge/License-Apache%202.0-green)](LICENSE.md)
44
[![Powered by CM](https://img.shields.io/badge/Powered_by-MLCommons%20CM-blue)](https://pypi.org/project/cmind).
55

6-
[![CM script automation features test](https://github.com/mlcommons/cm4mlops/actions/workflows/test-cm-script-features.yml/badge.svg)](https://github.com/mlcommons/cm4mlops/actions/workflows/test-cm-script-features.yml)
7-
[![MLPerf inference bert (deepsparse, tf, onnxruntime, pytorch)](https://github.com/mlcommons/cm4mlops/actions/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml/badge.svg)](https://github.com/mlcommons/cm4mlops/actions/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml)
8-
[![MLPerf inference MLCommons C++ ResNet50](https://github.com/mlcommons/cm4mlops/actions/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml/badge.svg)](https://github.com/mlcommons/cm4mlops/actions/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml)
9-
[![MLPerf inference ABTF POC Test](https://github.com/mlcommons/cm4mlops/actions/workflows/test-mlperf-inference-abtf-poc.yml/badge.svg)](https://github.com/mlcommons/cm4mlops/actions/workflows/test-mlperf-inference-abtf-poc.yml)
10-
11-
# CM4MLOps repository
126

137
This repository is powered by the [Collective Mind workflow automation framework](https://github.com/mlcommons/ck/tree/master/cm).
148

9+
The latest sources are available in [this repository](https://github.com/mlcommons/ck/tree/master/cm4mlops).
10+
1511
Two key automations developed using CM are **Script** and **Cache**, which streamline machine learning (ML) workflows,
16-
including managing Docker runs. Both Script and Cache automations are part of the **cmx4mlops** repository.
12+
including managing Docker runs. Both Script and Cache automations are part of the **cm4mlops** repository.
1713

1814
The [CM scripts](https://access.cknowledge.org/playground/?action=scripts),
1915
also housed in this repository, consist of hundreds of modular Python-wrapped scripts accompanied
2016
by `yaml` metadata, enabling the creation of robust and flexible ML workflows.
2117

22-
- **CM Scripts Documentation**: [https://docs.mlcommons.org/cm4mlops/](https://docs.mlcommons.org/cm4mlops/)
23-
- **CM CLI Documentation**: [https://docs.mlcommons.org/ck/specs/cm-cli/](https://docs.mlcommons.org/ck/specs/cm-cli/)
18+
- **CM Scripts Documentation**: [Browse](https://access.cknowledge.org/playground/?action=scripts)
19+
- **CM CLI Documentation**: [https://docs.mlcommons.org/ck/specs/cm-cli/](https://docs.mlcommons.org/ck/specs/cm-cli)
2420

2521
## License
2622

@@ -38,31 +34,22 @@ Grigori Fursin, the cTuning foundation and OctoML donated the CK and CM projects
3834

3935
## Author
4036

41-
[Grigori Fursin](https://cKnowledge.org/gfursin)
37+
[Grigori Fursin](https://cKnowledge.org/gfursin).
4238

43-
We sincerely appreciate all [contributors](https://github.com/mlcommons/ck/blob/master/CONTRIBUTORS.md)
39+
We thank all [contributors](https://github.com/mlcommons/ck/blob/master/CONTRIBUTORS.md)
4440
for their invaluable feedback and support!
4541

4642
## Concepts
4743

4844
Check our [ACM REP'23 keynote](https://doi.org/10.5281/zenodo.8105339) and the [white paper](https://arxiv.org/abs/2406.16791).
4945

50-
## Test image classification and MLPerf R-GAT inference benchmark via CMX PYPI package
51-
52-
```bash
53-
pip install cmind
54-
pip install cmx4mlops
55-
cmx run script "python app image-classification onnx" --quiet
56-
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=ubuntu-latest_x86 --model=rgat --implementation=python --backend=pytorch --device=cpu --scenario=Offline --test_query_count=500 --adr.compiler.tags=gcc --category=datacenter --quiet --v --target_qps=1
57-
```
58-
5946
## Test image classification and MLPerf R-GAT inference benchmark via CMX GitHub repo
6047

6148
```bash
62-
pip uninstall cmx4mlops
6349
pip install cmind
64-
cmx pull repo mlcommons@ck --dir=cmx4mlops/cmx4mlops
50+
cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
6551
cmx run script "python app image-classification onnx" --quiet
52+
cmx run script "run-mlperf inference _performance-only _short" --model=resnet50 --precision=float32 --backend=onnxruntime --scenario=Offline --device=cpu --env.CM_SUDO_USER=no --quiet
6653
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=ubuntu-latest_x86 --model=rgat --implementation=python --backend=pytorch --device=cpu --scenario=Offline --test_query_count=500 --adr.compiler.tags=gcc --category=datacenter --quiet --v --target_qps=1
6754
```
6855

automation/script/module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6558,7 +6558,9 @@ def dump_repro(repro_prefix, rr, run_state):
65586558
cm_output['version_info'] = version_info
65596559

65606560
if rr['return'] == 0:
6561+
65616562
# See https://cTuning.org/ae
6563+
65626564
cm_output['acm_ctuning_repro_badge_available'] = True
65636565
cm_output['acm_ctuning_repro_badge_functional'] = True
65646566

script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main():
7272
path_to_model_pth = os.environ['CM_ML_MODEL_FILE_WITH_PATH']
7373

7474
model = models.resnet50(pretrained=False)
75-
model.load_state_dict(torch.load(path_to_model_pth))
75+
model.load_state_dict(torch.load(path_to_model_pth, weights_only=False))
7676

7777
model.eval()
7878

0 commit comments

Comments
 (0)