Spaces:
Runtime error
Runtime error
Update entrypoint.sh
Browse files6 unmodified lines78910111213144 unmodified lines19202122232425262728296 unmodified linesecho "Attempting to run."#if [[ $? = 0 ]]; thentouch /app/attempts.txttouch /app/failed_attempts.txt# For each line in the requests dataset....python /parse_requests.py | while read -r line; do# Read the name of the model and the experiment.4 unmodified linesnow=$(date +%Y-%m-%d-%H-%M-%S)run_dir="./runs/${experiment_name}/${backend_model}/${now}"mkdir -p "$run_dir"echo "${experiment_name},${backend_model}" >> /app/attempts.txt# Let the benchmarking begin!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" ||echo "${experiment_name},${backend_model}" >> /app/failed_attempts.txt #(python /failed_run.py --run_dir "${run_dir}" --model_name "${backend_model}" && rm -rf $run_dir)doneecho "Finished; updating requests dataset and results dataset."6 unmodified lines78910111213144 unmodified lines19202122232425262728296 unmodified linesecho "Attempting to run."#if [[ $? = 0 ]]; thentouch app/attempts.txttouch app/failed_attempts.txt# For each line in the requests dataset....python /parse_requests.py | while read -r line; do# Read the name of the model and the experiment.4 unmodified linesnow=$(date +%Y-%m-%d-%H-%M-%S)run_dir="./runs/${experiment_name}/${backend_model}/${now}"mkdir -p "$run_dir"echo "${experiment_name},${backend_model}" >> app/attempts.txt# Let the benchmarking begin!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" ||echo "${experiment_name},${backend_model}" >> app/failed_attempts.txt #(python /failed_run.py --run_dir "${run_dir}" --model_name "${backend_model}" && rm -rf $run_dir)doneecho "Finished; updating requests dataset and results dataset."
entrypoint.sh+4-4