meg HF Staff commited on
Commit
aae71a0
·
verified ·
1 Parent(s): 107a651

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -2
entrypoint.sh CHANGED
@@ -17,14 +17,14 @@ now=$(date +%Y-%m-%d-%H-%M-%S)
17
  run_dir="/app/runs/${TASK}/${MODEL}/${HARDWARE}/${now}"
18
  mkdir -p "$run_dir"
19
  # Save the task/model run directory to text file, for tracking purposes.
20
- echo "${run_dir}" >> /attempts.txt
21
 
22
  { # try
23
  # Let the benchmarking begin!
24
  optimum-benchmark --config-name "${TASK}" --config-dir="${config_dir}" backend.model="${MODEL}" backend.processor="${MODEL}" hydra.run.dir="${run_dir}" 2> "${run_dir}/error.log"
25
  } || { # catch
26
  echo "Did not benchmark."
27
- echo "${run_dir}" >> /failed_attempts.txt
28
  }
29
 
30
  echo "Finished"# updating requests dataset and results dataset."
 
17
  run_dir="/app/runs/${TASK}/${MODEL}/${HARDWARE}/${now}"
18
  mkdir -p "$run_dir"
19
  # Save the task/model run directory to text file, for tracking purposes.
20
+ echo "${run_dir}" >> attempts.txt
21
 
22
  { # try
23
  # Let the benchmarking begin!
24
  optimum-benchmark --config-name "${TASK}" --config-dir="${config_dir}" backend.model="${MODEL}" backend.processor="${MODEL}" hydra.run.dir="${run_dir}" 2> "${run_dir}/error.log"
25
  } || { # catch
26
  echo "Did not benchmark."
27
+ echo "${run_dir}" >> failed_attempts.txt
28
  }
29
 
30
  echo "Finished"# updating requests dataset and results dataset."