meg HF staff commited on
Commit
ccb86e6
·
verified ·
1 Parent(s): 6785821

Trying to curl error logs.

Browse files
Files changed (1) hide show
  1. entrypoint.sh +8 -0
entrypoint.sh CHANGED
@@ -1,5 +1,10 @@
1
  #!/bin/bash
2
 
 
 
 
 
 
3
  echo "Not checking h100 -- already know it's not there."
4
  #python /check_h100.py
5
  echo "Attempting to run."
@@ -12,6 +17,9 @@ python /parse_requests.py | while read line; do
12
 
13
  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
14
 
 
 
 
15
  if [ -s $run_dir/error.log ]; then
16
  # error.log is not-empty, an error was raised
17
  echo "An error was raised while benchmarking the model..."
 
1
  #!/bin/bash
2
 
3
+ # TODO: I think this flag is related to getting fail logs; check.
4
+ set -e
5
+
6
+ export SPACE="EnergyStarAI/launch-computation-example"
7
+
8
  echo "Not checking h100 -- already know it's not there."
9
  #python /check_h100.py
10
  echo "Attempting to run."
 
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
+ echo "Trying the curl thing."
21
+ curl https://api.hf.space/v1/${SPACE}/logs/run -H
22
+
23
  if [ -s $run_dir/error.log ]; then
24
  # error.log is not-empty, an error was raised
25
  echo "An error was raised while benchmarking the model..."