Skip to main content

cmind

Project description

Collective Mind toolkit (CM aka CK2)

PyPI version Downloads Python Version License

The Collective Mind toolkit helps you to add and share simple, human-readable
and platform-independent CLI and JSON API
to existing DevOps and MLOps automation scripts and artifacts to make them more understandable, portable, reusable, interoperable, deterministic and reproducible across continuously changing hardware, software and data with minimal or no changes to existing projects.

See an example of CM-based image classification that can run natively on any user platform with Linux, Windows and MacOS while automatically adapting to a given software, hardware and data:

python3 -m pip install cmind
cm pull repo mlcommons@ck
cm run script --tags=detect,os --out=json
cm run script --tags=get,python --name=my-virtual-env
cm run script --tags=install,python-venv --name=my-virtual-env
cm run script --tags=install,ml-model-onnx,resnet50
cm run script --tags=install,dataset,imagenet,_2012-500
cm show cache
cm run script --tags=app,image-classification,onnx,python (--input=my-image.jpg)

CM is motivated by our tedious and interesting experience reproducing 150+ ML and systems papers and validating them in the real world during so-called artifact evaluation.

The CM toolkit helps users to gradually transform their existing projects, Git repositories, Docker containers, Jupyter notebooks and internal directories into an open database of portable CM scripts with a common API, extensible meta descriptions and a simple portability and interoperability layer written in Python or shell scripts.

Such an evolutionary approach makes it easier to share ML, AI and other artifacts, knowledge and experience in a more unified, automated, portable, reusable and reproducible way while simplifying and automating the development and deployment of complex applications across rapidly evolving software and hardware stacks from the cloud to the edge.

The CM toolkit is the 2nd generation of the Collective Knowledge framework (CK) that was originally validated in academia and industry in the past few years to enable collaborative and reproducible development, optimization and deployment of Pareto-efficient ML Systems in terms of accuracy, latency, throughput, energy, size and costs across continuously changing software, hardware, user environments, settings, models and data.

News

License

Apache 2.0

Documentation

Tutorials

Community developments

CM core (database CLI and API)

We use GitHub tickets prefixed with [CK2/CM core] to improve and enhance the CM core that helps to organize projects as a collective database of reusable artifacts and automation scripts:

CM automation scripts

CM provides a common playground and a common language to help researchers and engineers discuss and learn how to make benchmarking, optimization, co-design and deployment of complex ML Systems more deterministic, portable and reproducible across continuously changing software and hardware stacks:

Development meetings

Related resources

Acknowledgments

We thank the users and partners of the original CK framework, OctoML, MLCommons and all our colleagues for their valuable feedback and support!

Contacts

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmind-0.7.24.tar.gz (39.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page