Collective Knowledge - a lightweight knowledge manager to organize, cross-link, share and reuse artifacts and workflows
Project description
Collective Knowledge framework (CK)
Overview
Collective Knowledge framework (CK) helps to organize software projects as a database of reusable components with common automation actions and extensible meta descriptions based on FAIR principles (findability, accessibility, interoperability, and reusability).
We want to help everyone share, reuse, and extend their knowledge in the form of reusable artifacts and portable workflows with a common API, CLI, and meta description. See how CK supports collaborative and reproducible AI, ML, and Systems R&D:
- Real-world use-cases from Arm, General Motors, IBM, MLPerf, the Raspberry Pi foundation, and ACM
- Reddit discussion about reproducing 150 papers
- Project overview (accepted for Philosophical Transactions of the Royal Society A)
Please take this quick questionnaire to help us shape the future of the CK framework!
News
- 2020 August: We have completed the prototyping phase and successfully validated CK in several projects to automate the complex co-design process of efficient ML/SW/HW stacks, simplify MLPerf benchmark submissions, and quickly deploy emerging technologies (AI, ML, quantum) in production in the most efficient way (speed, accuracy, energy, costs) across diverse platforms from data centers to mobile phones and edge devices. See this white paper and the CK presentation for more details. We are now raising funding to continue developing our Collective Knowledge platform - don't hesitate to get in touch with Grigori Fursin to know more!
Documentation
CK-powered workflows, automation actions, and reusable artifacts
- Real-world use-cases
- Reproducibility initiatives: [methodology], [events]
- Showroom (public projects powered by CK):
- MLPerf automation
- Student Cluster Competition automation: SCC18, digital artifacts
- ML-based autotuning project: reproducible paper demo, MILEPOST
- Stable Docker containers with CK workflows: MLPerf example, cKnowledge.io, Docker Hub
- Quantum hackathons
- ACM SW/HW co-design tournaments for Pareto-efficient deep learning
- Portable CK workflows and components for:
- GUI to automate ML/SW/HW benchmarking with MLPerf example (under development)
- Reproduced papers
- Live scoreboards for reproduced papers
- Examples of CK components (automations, API, meta descriptions):
- program : image-classification-tflite-loadgen [cKnowledge.io] [GitHub]
- program : image-classification-tflite [GitHub]
- soft : lib.mlperf.loadgen.static [GitHub]
- package : lib-mlperf-loadgen-static [GitHub]
- package : model-onnx-mlperf-mobilenet [GitHub]
- package : lib-tflite [cKnowledge.io] [GitHub]
- docker : object-detection-tf-py.tensorrt.ubuntu-18.04 [cKnowledge.io]
- docker [GitHub]
- docker : speech-recognition.rnnt [GitHub]
- package : model-tf-* [GitHub]
- script : mlperf-inference-v0.7.image-classification [cKnowledge.io]
- jnotebook : object-detection [GitHub]
Installation
Follow this guide to install CK framework on your platform.
CK supports the following platforms:
As a host platform | As a target platform | |
---|---|---|
Generic Linux | ✓ | ✓ |
Linux (Arm) | ✓ | ✓ |
Raspberry Pi | ✓ | ✓ |
MacOS | ✓ | ± |
Windows | ✓ | ✓ |
Android | ± | ✓ |
iOS | TBD | TBD |
Bare-metal (edge devices) | - | ± |
Example
Here we show how to pull a GitHub repo in the CK format and use a unified CK interface to compile and run any program (image corner detection in our case) with any compatible data set on any compatible platform:
python3 -m pip install ck
ck pull repo --url=https://github.com/ctuning/ck-crowdtuning
ck ls program:*susan*
ck search dataset --tags=jpeg
ck compile program:cbench-automotive-susan --speed
ck run program:cbench-automotive-susan --cmd_key=corners --repeat=1 --env.MY_ENV=123 --env.TEST=xyz
You can check output of this program in the following directory:
cd `ck find program:cbench-automotive-susan`/tmp
ls -l
tmp-output.tmp - image with detected corners (rename to ppm to view it)
Check CK docs for further details.
Open CK portal
cKnowledge.io: organizing ML and Systems knowledge in the form of portable CK workflows, automation actions, and reusable components:
- All CK ML&systems components
- CK compatible repositories
- CK-based Docker images
- CK modules
- Automation actions
- Portable program workflows
- Meta packages
- Software detection (code, data, models)
- Platform detection
- Shared experiments
- Reproduced results from papers
Author
Acknowledgments
We would like to thank all contributors and collaborators for their support, fruitful discussions, and useful feedback!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.