Spaces:
Runtime error
Runtime error
Putting output logs into runs/logs-${now}.txt
Browse files- entrypoint.sh +3 -2
entrypoint.sh
CHANGED
@@ -13,13 +13,14 @@ echo "Attempting to run."
|
|
13 |
python /parse_requests.py | while read line; do
|
14 |
IFS="," read backend_model experiment_name <<< $(echo ${line})
|
15 |
echo "Benchmarking Model: ${backend_model}, Task: ${experiment_name}"
|
16 |
-
|
|
|
17 |
|
18 |
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
|
19 |
|
20 |
done || {
|
21 |
echo "Trying the curl thing to get the error logs."
|
22 |
-
curl https://api.hf.space/v1/${SPACE}/logs/run -H "Authorization: Bearer ${DEBUG}"
|
23 |
echo "DID IT WORK?!"
|
24 |
}
|
25 |
|
|
|
13 |
python /parse_requests.py | while read line; do
|
14 |
IFS="," read backend_model experiment_name <<< $(echo ${line})
|
15 |
echo "Benchmarking Model: ${backend_model}, Task: ${experiment_name}"
|
16 |
+
now=$(date +%Y-%m-%d-%H-%M-%S)
|
17 |
+
export run_dir="./runs/" #${experiment_name}/${backend_model}/${now}"
|
18 |
|
19 |
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
|
20 |
|
21 |
done || {
|
22 |
echo "Trying the curl thing to get the error logs."
|
23 |
+
curl https://api.hf.space/v1/${SPACE}/logs/run -H "Authorization: Bearer ${DEBUG}" > ./runs/logs-${now}.txt
|
24 |
echo "DID IT WORK?!"
|
25 |
}
|
26 |
|