index.md 1.15 KB
Newer Older
yangzhong's avatar
yangzhong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
hide:
  - toc
---

# Installation
We use MLCommons CM Automation framework to run MLPerf inference benchmarks.

CM needs `git`, `python3-pip` and `python3-venv` installed on your system. If any of these are absent, please follow the [official CM installation page](https://docs.mlcommons.org/ck/install) to install them. Once the dependencies are installed, do the following

## Activate a Virtual ENV for CM
This step is not mandatory as CM can use separate virtual environment for MLPerf inference. But the latest `pip` install requires this or else will need the `--break-system-packages` flag while installing `cm4mlops`.

```bash
python3 -m venv cm
source cm/bin/activate
```

## Install CM and pulls any needed repositories
=== "Use the default fork of CM MLOps repository"
    ```bash
     pip install cm4mlops
    ```

=== "Use custom fork/branch of the CM MLOps repository"
    ```bash
     pip install cmind && cm init --quiet --repo=mlcommons@cm4mlops --branch=mlperf-inference
    ```
    Here, `repo` is in the format `githubUsername@githubRepo`.

Now, you are ready to use the `cm` commands to run MLPerf inference as given in the [benchmarks](../index.md) page