Skip to content

Commit cf575d0

Browse files
authored
Support version in preprocess-submission, cleanups for coco2014 script (#76)
* Dont use 'install' sub directory for coco2014 * Update test-scc24-sdxl.yaml * Update test-mlperf-inference-mixtral.yml * Support version in preprocess-mlperf-inference-submission
1 parent d28df7e commit cf575d0

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

.github/workflows/test-mlperf-inference-mixtral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: MLPerf inference MIXTRAL-8x7B
55

66
on:
77
schedule:
8-
- cron: "08 23 * * *" # 30th minute and 20th hour => 20:30 UTC => 2 AM IST
8+
- cron: "59 19 * * *" # 30th minute and 20th hour => 20:30 UTC => 2 AM IST
99

1010
jobs:
1111
build_reference:

.github/workflows/test-nvidia-mlperf-inference-implementations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: MLPerf Inference Nvidia implementations
22

33
on:
44
schedule:
5-
- cron: "08 01 * * *" #to be adjusted
5+
- cron: "08 01 * * */3" #to be adjusted
66

77
jobs:
88
run_nvidia:

.github/workflows/test-scc24-sdxl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: MLPerf inference SDXL (SCC)
22

33
on:
44
schedule:
5-
- cron: "56 22 * * *"
5+
- cron: "34 19 * * *"
66

77
jobs:
88
build_reference:

script/get-dataset-coco2014/customize.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ def postprocess(i):
2727
os.getcwd(), 'install', 'sample_ids.txt')
2828
print(env['CM_COCO2014_SAMPLE_ID_PATH'])
2929
if env.get('CM_DATASET_CALIBRATION', '') == "no":
30-
env['CM_DATASET_PATH_ROOT'] = os.path.join(os.getcwd(), 'install')
30+
env['CM_DATASET_PATH_ROOT'] = os.getcwd()
3131
# env['CM_DATASET_PATH'] = os.path.join(os.getcwd(), 'install', 'validation', 'data')
3232
env['CM_DATASET_CAPTIONS_DIR_PATH'] = os.path.join(
33-
os.getcwd(), 'install', 'captions')
33+
os.getcwd(), 'captions')
3434
env['CM_DATASET_LATENTS_DIR_PATH'] = os.path.join(
35-
os.getcwd(), 'install', 'latents')
35+
os.getcwd(), 'latents')
3636
else:
3737
env['CM_CALIBRATION_DATASET_PATH'] = os.path.join(
38-
os.getcwd(), 'install', 'calibration', 'data')
38+
os.getcwd(), 'calibration', 'data')
3939

4040
return {'return': 0}

script/get-dataset-coco2014/run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ python3() {
55
export -f python3
66

77
CUR=${PWD}
8-
mkdir -p install
9-
INSTALL_DIR=${CUR}/install
8+
INSTALL_DIR=${CUR}
109

1110
cd ${CM_RUN_DIR}
1211

script/preprocess-mlperf-inference-submission/_cm.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ deps:
2222
input_mapping:
2323
input: CM_MLPERF_INFERENCE_SUBMISSION_DIR
2424
submission_dir: CM_MLPERF_INFERENCE_SUBMISSION_DIR
25+
version: CM_MLPERF_SUBMISSION_CHECKER_VERSION
2526
submitter: CM_MLPERF_SUBMITTER
2627
tags:
2728
- run

script/preprocess-mlperf-inference-submission/customize.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ def preprocess(i):
2929
print(f"Cleaning {submission_processed}")
3030
shutil.rmtree(submission_processed)
3131

32+
version = env.get('CM_MLPERF_SUBMISSION_CHECKER_VERSION', '')
33+
x_version = ' --version ' + version + ' ' if version != '' else ''
34+
3235
CMD = env['CM_PYTHON_BIN'] + " '" + os.path.join(env['CM_MLPERF_INFERENCE_SOURCE'], "tools", "submission",
33-
"preprocess_submission.py") + "' --input '" + submission_dir + "' --submitter '" + submitter + "' --output '" + submission_processed + "'"
36+
"preprocess_submission.py") + "' --input '" + submission_dir + "' --submitter '" + submitter + "' --output '" + submission_processed + "'" + x_version
3437
env['CM_RUN_CMD'] = CMD
3538

3639
return {'return': 0}

0 commit comments

Comments
 (0)