File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
app-mlperf-inference-nvidia
get-preprocessed-dataset-openorca Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ def preprocess(i):
333333
334334 tmp_tp_size = env ['MLC_NVIDIA_TP_SIZE' ]
335335 tmp_pp_size = env ['MLC_NVIDIA_PP_SIZE' ]
336-
336+
337337 fp8_model_path = os .path .join (
338338 env ['MLPERF_SCRATCH_PATH' ],
339339 'models' ,
@@ -443,7 +443,8 @@ def preprocess(i):
443443 f"ln -sf { env ['MLC_DATASET_OPENORCA_PREPROCESSED_PATH' ]} { os .path .join (env ['MLPERF_SCRATCH_PATH' ], "preprocessed_data" , "open_orca" )} "
444444 )
445445 else :
446- cmds .append (f"make preprocess_data BENCHMARKS='{ model_name } '" )
446+ cmds .append (
447+ f"make preprocess_data BENCHMARKS='{ model_name } '" )
447448 else :
448449 cmds .append (f"make preprocess_data BENCHMARKS='{ model_name } '" )
449450
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ def postprocess(i):
6565 env ['MLC_DATASET_OPENORCA_CALIBRATION_PATH' ] = env ['MLC_DATASET_CALIBRATION_PATH' ]
6666 else :
6767 env ['MLC_DATASET_PREPROCESSED_PATH' ] = os .path .join (
68- env ['MLC_OPENORCA_PREPROCESSED_ROOT' ],
69- "open_orca_gpt4_tokenized_llama.sampled_24576.pkl" )
68+ env ['MLC_OPENORCA_PREPROCESSED_ROOT' ],
69+ "open_orca_gpt4_tokenized_llama.sampled_24576.pkl" )
7070 if env .get ('MLC_TMP_DATASET_PREPROCESS_STEP_PROVIDER' ,
7171 '' ) == "nvidia" :
7272 env ['MLC_DATASET_OPENORCA_NVIDIA_PREPROCESSED_PATH' ] = os .path .join (
@@ -75,7 +75,8 @@ def postprocess(i):
7575 env ['MLC_GET_DEPENDENT_CACHED_PATH' ] = env ['MLC_DATASET_OPENORCA_NVIDIA_PREPROCESSED_PATH' ]
7676 else :
7777 env ['MLC_GET_DEPENDENT_CACHED_PATH' ] = env ['MLC_DATASET_PREPROCESSED_PATH' ]
78- # The openorca mlc preprocessed dataset is used in nvidia implementation for checking accuracy
78+ # The openorca mlc preprocessed dataset is used in nvidia
79+ # implementation for checking accuracy
7980 env ['MLC_DATASET_OPENORCA_PREPROCESSED_PATH' ] = env ['MLC_DATASET_PREPROCESSED_PATH' ]
8081
8182 return {'return' : 0 }
You can’t perform that action at this time.
0 commit comments