-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from mlcommons/mlperf-inference
dev <- Mlperf inference
- Loading branch information
Showing
30 changed files
with
582 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,4 @@ prehook_deps: | |
- enable_if_env: | ||
CM_BUILD_DOCKERFILE: | ||
- 'yes' | ||
- '1' | ||
tags: build,dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
script/clean-nvidia-mlperf-inference-scratch-space/_cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
alias: clean-nvidia-mlperf-inference-scratch-space | ||
automation_alias: script | ||
automation_uid: 5b4e0237da074764 | ||
cache: false | ||
tags: | ||
- clean | ||
- nvidia | ||
- scratch | ||
- space | ||
- mlperf | ||
- inference | ||
uid: bb41f6e3608e4e8a | ||
deps: | ||
# Get Nvidia scratch space where data and models get downloaded | ||
- tags: get,mlperf,inference,nvidia,scratch,space | ||
names: | ||
- nvidia-scratch-space | ||
|
||
variations: | ||
sdxl: | ||
group: model | ||
env: | ||
CM_MODEL: sdxl | ||
downloaded-data: | ||
group: artifact | ||
env: | ||
CM_CLEAN_ARTIFACT_NAME: downloaded_data | ||
preprocessed-data: | ||
group: artifact | ||
env: | ||
CM_CLEAN_ARTIFACT_NAME: preprocessed_data | ||
downloaded-model: | ||
group: artifact | ||
env: | ||
CM_CLEAN_ARTIFACT_NAME: downloaded_model | ||
v4.1: | ||
group: version | ||
env: | ||
CM_NVIDIA_MLPERF_INFERENCE_CODE_VERSION: v4.1 | ||
v4.0: | ||
group: version | ||
env: | ||
CM_NVIDIA_MLPERF_INFERENCE_CODE_VERSION: v4.0 |
22 changes: 22 additions & 0 deletions
22
script/clean-nvidia-mlperf-inference-scratch-space/customize.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from cmind import utils | ||
import os | ||
|
||
def preprocess(i): | ||
|
||
os_info = i['os_info'] | ||
|
||
env = i['env'] | ||
|
||
meta = i['meta'] | ||
|
||
automation = i['automation'] | ||
|
||
quiet = (env.get('CM_QUIET', False) == 'yes') | ||
|
||
return {'return':0} | ||
|
||
def postprocess(i): | ||
|
||
env = i['env'] | ||
|
||
return {'return':0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rem native script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
#CM Script location: ${CM_TMP_CURRENT_SCRIPT_PATH} | ||
|
||
#To export any variable | ||
#echo "VARIABLE_NAME=VARIABLE_VALUE" >>tmp-run-env.out | ||
|
||
#${CM_PYTHON_BIN_WITH_PATH} contains the path to python binary if "get,python" is added as a dependency | ||
|
||
echo "Running: " | ||
echo "${CM_RUN_CMD}" | ||
echo "" | ||
|
||
if [[ ${CM_FAKE_RUN} != "yes" ]]; then | ||
eval "${CM_RUN_CMD}" | ||
test $? -eq 0 || exit 1 | ||
fi |
Oops, something went wrong.