Spaces:
Runtime error
Runtime error
Some clean-up.
Browse files- entrypoint.sh +1 -7
entrypoint.sh
CHANGED
@@ -20,18 +20,12 @@ python /parse_requests.py | while read line; do
|
|
20 |
|
21 |
# Let the benchmarking begin!
|
22 |
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
|
23 |
-
|
24 |
done || {
|
25 |
echo "Error."
|
26 |
failed=1
|
27 |
-
# TODO: Although this works, `curl` appears to run indefinitely because it is recording itself (the logs are recording the curl operation.)
|
28 |
-
#echo "Using curl to retrieve the space run log."
|
29 |
-
#logs_name=./runs/logs-${now}.txt
|
30 |
-
#curl https://api.hf.space/v1/${SPACE}/logs/run -H "Authorization: Bearer ${DEBUG}" > ${logs_name}
|
31 |
-
#python /failed_run.py --run_dir $run_dir --model_name $backend_model --logs_name $logs_name
|
32 |
}
|
33 |
|
34 |
-
echo "
|
35 |
python /upload_run_folder.py --run_dir "/runs"
|
36 |
|
37 |
if [ -s $run_dir/error.log ]; then
|
|
|
20 |
|
21 |
# Let the benchmarking begin!
|
22 |
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
|
|
|
23 |
done || {
|
24 |
echo "Error."
|
25 |
failed=1
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
+
echo "Uploading all output from the /runs folder."
|
29 |
python /upload_run_folder.py --run_dir "/runs"
|
30 |
|
31 |
if [ -s $run_dir/error.log ]; then
|