Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions script/generate-infograph/COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright Notice

© 2026-2027 MLCommons. All Rights Reserved.

This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License can be obtained at:

[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is provided on an "AS IS" basis, without warranties or conditions of any kind, either express or implied. Please refer to the License for the specific language governing permissions and limitations under the License.
71 changes: 71 additions & 0 deletions script/generate-infograph/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# README for generate-infograph
This README is automatically generated. Edit [info.md](info.md) to add custom contents. Please follow the [script execution document](https://docs.mlcommons.org/mlcflow/targets/script/execution-flow/) to understand more about the MLC script execution.

`mlcflow` stores all local data under `$HOME/MLC` by default. So, if there is space constraint on the home directory and you have more space on say `/mnt/$USER`, you can do
```
mkdir /mnt/$USER/MLC
ln -s /mnt/$USER/MLC $HOME/MLC
```
You can also use the `ENV` variable `MLC_REPOS` to control this location but this will need a set after every system reboot.

## Setup

If you are not on a Python development environment please refer to the [official docs](https://docs.mlcommons.org/mlcflow/install/) for the installation.

```bash
python3 -m venv mlcflow
. mlcflow/bin/activate
pip install mlcflow
```

- Using a virtual environment is recommended (per `pip` best practices), but you may skip it or use `--break-system-packages` if needed.

### Pull mlperf-automations

Once `mlcflow` is installed:

```bash
mlc pull repo mlcommons@mlperf-automations --pat=<Your Private Access Token>
```
- `--pat` or `--ssh` is only needed if the repo is PRIVATE
- If `--pat` is avoided, you'll be asked to enter the password where you can enter your Private Access Token
- `--ssh` option can be used instead of `--pat=<>` option if you prefer to use SSH for accessing the github repository.
## Run Commands

```bash
mlcr generate,infograph,infragraph
```

### Script Inputs

| Name | Description | Choices | Default |
|------|-------------|---------|------|
| `--input_dir` | | | `` |
| `--graph_name` | | | `` |
| `--out_dir_path` | | | `` |
| `--out_file_name` | | | `infragraph.json` |
### Generic Script Inputs

| Name | Description | Choices | Default |
|------|-------------|---------|------|
| `--input` | Input to the script passed using the env key `MLC_INPUT` | | `` |
| `--output` | Output from the script passed using the env key `MLC_OUTPUT` | | `` |
| `--outdirname` | The directory to store the script output | | `cache directory ($HOME/MLC/repos/local/cache/<>) if the script is cacheable or else the current directory` |
| `--outbasename` | The output file/folder name | | `` |
| `--search_folder_path` | The folder path where executables of a given script need to be searched. Search is done recursively upto 4 levels. | | `` |
| `--name` | | | `` |
| `--extra_cache_tags` | Extra cache tags to be added to the cached entry when the script results are saved | | `` |
| `--skip_compile` | Skip compilation | | `False` |
| `--skip_run` | Skip run | | `False` |
| `--skip_sudo` | Skip SUDO detection | | `False` |
| `--accept_license` | Accept the required license requirement to run the script | | `False` |
| `--skip_system_deps` | Skip installing any system dependencies | | `False` |
| `--git_ssh` | Use SSH for git repos | | `False` |
| `--gh_token` | Github Token | | `` |
| `--hf_token` | Huggingface Token | | `` |
| `--verify_ssl` | Verify SSL | | `False` |
## Variations

### Ungrouped

- `no_visualize`
Loading
Loading