Skip to content

Commit 6e736ae

Browse files
authored
Update index.md
1 parent cef31ee commit 6e736ae

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/index.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,23 @@ See the [automatically generated catalog](scripts/index.md) of all the MLC scrip
1010
* Further each MLC script can have multiple variations and they are identified by variation tags which are treated in the same way as tags and identified by a `_` prefix.
1111

1212
### MLC script execution flow
13-
<img src="https://github.com/mlcommons/cm4mlops/raw/mlperf-inference/automation/script/assets/scripts-workflow.png" width="248">
13+
```mermaid
14+
graph TD
15+
A[env = incoming env + env_from_meta] --> B[Script]
16+
B --> C[env - env(local_env_keys)]
17+
C --> D[Dependencies]
18+
D --> E[Preprocess]
19+
E --> F[env - env(local_env_keys)]
20+
F --> G[Prehook dependencies]
21+
G --> H[Run script]
22+
H --> I[env - env(clean_env_keys_post_deps)]
23+
I --> J[Posthook dependencies]
24+
J --> K[Postprocess]
25+
K --> L[env - env(clean_env_keys_post_deps)]
26+
L --> M[Post dependencies]
27+
M --> N[env(new_env_keys) if new_env_keys<br>else incoming_env - env]
28+
N --> O[Script return]
29+
```
1430

1531
* When an MLC script is invoked (either by tags or by unique ID), its `meta.yaml` is processed first which will check for any `deps` script and if there are, then they are executed in order.
1632
* Once all the `deps` scripts are executed, `customize.py` file is checked and if existing `preprocess` function inside it is executed if present.

0 commit comments

Comments
 (0)