Installation
We use MLCommons CM Automation framework to run MLPerf inference benchmarks.
CM Install
We have successfully tested CM on
- Ubuntu 18.x, 20.x, 22.x , 23.x,
- RedHat 8, RedHat 9, CentOS 8
- macOS
- Wndows 10, Windows 11
Ubuntu, Debian
sudo apt update && sudo apt upgrade
sudo apt install python3 python3-pip python3-venv git wget curl
** Set up virtual env as it is recommended now before using any Python project:**
python3 -m venv cm
source cm/bin/activate
You can now install CM via PIP:
python3 -m pip install cmind
You can check that CM is available by checking the cm
command
Red Hat
sudo dnf update
sudo dnf install python3 python-pip git wget curl
python3 -m pip install cmind --user
macOS
Note that CM currently does not work with Python installed from the Apple Store. Please install Python via brew as described below.
If brew
package manager is not installed, please install it as follows (see details here):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Don't forget to add brew to PATH environment as described in the end of the installation output.
Then install python, pip, git and wget:
brew install python3 git wget curl
python3 -m pip install cmind
Windows
- Configure Windows 10+ to support long paths from command line as admin:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
- Download and install Git from git-for-windows.github.io.
- Configure Git to accept long file names:
git config --system core.longpaths true
- Download and install Python 3+ from www.python.org/downloads/windows.
- Don't forget to select option to add Python binaries to PATH environment!
-
Configure Windows to accept long fie names during Python installation!
-
Install CM via PIP:
python -m pip install cmind
Note that we have reports that CM does not work when Python was first installed from the Microsoft Store. If CM fails to run, you can find a fix here.