meg HF staff commited on
Commit
38b2415
·
verified ·
1 Parent(s): f18e497

Simplifying variable definition.

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -4
entrypoint.sh CHANGED
@@ -5,10 +5,8 @@ echo "Not checking h100 -- already know it's not there."
5
  echo "Attempting to run."
6
  #if [[ $? = 0 ]]; then
7
 
8
- python /parse_requests.py > pending_backend_models.txt
9
- cat pending_backend_models.txt | while read line; do
10
- backend_model=$(echo ${line} | awk -F',' '{print $1;}')
11
- experiment_name=$(echo ${line} | awk -F',' '{print $2;}')
12
  optimum-benchmark --config-name ${experiment_name} --config-dir /optimum-benchmark/examples/energy_star/ hydra.run.dir='/data/runs/${experiment_name}/${backend_model}/${now:%Y-%m-%d-%H-%M-%S}'
13
  done
14
  echo "Finished"
 
5
  echo "Attempting to run."
6
  #if [[ $? = 0 ]]; then
7
 
8
+ python /parse_requests.py | while read line; do
9
+ IFS="," read backend_model experiment_name <<< $(echo ${line})
 
 
10
  optimum-benchmark --config-name ${experiment_name} --config-dir /optimum-benchmark/examples/energy_star/ hydra.run.dir='/data/runs/${experiment_name}/${backend_model}/${now:%Y-%m-%d-%H-%M-%S}'
11
  done
12
  echo "Finished"