Spaces:
Runtime error
Runtime error
Simplifying variable definition.
Browse files- 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
|
9 |
-
|
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"
|