The CK framework requires minimal dependencies: Python 2.7+ or 3.x, PIP and Git.


You need to have the following packages installed (Ubuntu example):

sudo apt-get install python3 python3-pip git wget


brew install python3 python3-pip git wget


Android (Linux host)

These dependencies are needed to cross-compile for Android (tested on Ubuntu 18.04 including Docker and Windows 10 Subsystem for Linux).

 sudo apt update
 sudo apt install git wget libz-dev curl cmake
 sudo apt install gcc g++ autoconf autogen libtool
 sudo apt install android-sdk
 sudo apt install google-android-ndk-installer

CK installation

You can install the Collective Knowledge framework on most platforms using PIP as follows:

pip install ck

You can also install CK using a specific Python version (for example, Python 3.6 or for Python 2.7):

python3.6 -m pip install ck


python2.7 -m pip install ck

You may need to add flag “–user” to install the client in your user space:

pip install ck --user
python3.6 -m pip install ck --user

You should now be able to run CK using one of the following alternative commands:

python3.6 -m ck

If the installation is successful, you will see some internal information about the CK installation and a Python version used:

gfursin@ck:~$ ck

CK version: 2.5.8

Python executable used by CK: /usr/bin/python3

Python version used by CK: 3.6.9 (default, Jan 26 2021, 15:33:00)
   [GCC 8.4.0]

Path to the CK kernel:    /home/gfursin/.local/lib/python3.6/site-packages/ck/
Path to the default repo: /home/gfursin/.local/lib/python3.6/site-packages/ck/repo
Path to the local repo:   /mnt/CK/local
Path to CK repositories:  /mnt/CK

CK Google group:
CK Slack channel:
Stable CK components:

Note that on Windows you also need to install ctuning@ck-win repository with CK components and binaries:

ck pull repo:ck-win


We prepared several Docker images with the CK framework and AI/ML CK workflows at the cTuning Docker hub. Select the most relevant image and run it as follows:

docker run -p 3344:3344 -it {Docker image name from the above list} /bin/bash

Virtual CK environments with templates

We suggest you to use virtual CK environments with various automation templates shared by the community such as MLPerf™ inference.

See for more details.


Please check this wiki to learn more about how to customize your CK installation.