Spaces:
Runtime error
Runtime error
Moving failure || statement back on the same line as the optimum-benchmark call.
Browse files- entrypoint.sh +1 -3
entrypoint.sh
CHANGED
@@ -19,9 +19,7 @@ python /parse_requests.py | while read -r line; do
|
|
19 |
mkdir -p "$run_dir"
|
20 |
|
21 |
# Let the benchmarking begin!
|
22 |
-
optimum-benchmark --config-name "${experiment_name}" --config-dir /optimum-benchmark/examples/energy_star/ backend.model="${backend_model}" backend.processor="${backend_model}" hydra.run.dir="${run_dir}" 2> "${run_dir}/error.log" ||
|
23 |
-
# If the benchmark fails, update accordingly. Remove the run directory for that specific model.
|
24 |
-
(python /failed_run.py --run_dir "${run_dir}" --model_name "${backend_model}" && rm -rf $run_dir)
|
25 |
done
|
26 |
|
27 |
echo "Finished; uploading dataset results"
|
|
|
19 |
mkdir -p "$run_dir"
|
20 |
|
21 |
# Let the benchmarking begin!
|
22 |
+
optimum-benchmark --config-name "${experiment_name}" --config-dir /optimum-benchmark/examples/energy_star/ backend.model="${backend_model}" backend.processor="${backend_model}" hydra.run.dir="${run_dir}" 2> "${run_dir}/error.log" || (python /failed_run.py --run_dir "${run_dir}" --model_name "${backend_model}" && rm -rf $run_dir) # If the benchmark fails, update accordingly. Remove the run directory for that specific model.
|
|
|
|
|
23 |
done
|
24 |
|
25 |
echo "Finished; uploading dataset results"
|