meg-huggingface commited on
Commit
cb6bfa5
·
2 Parent(s): 6c83bf5 f7df7f2

Merge branch 'main' of hf.co:spaces/EnergyStarAI/launch-computation-example into main

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. entrypoint.sh +1 -1
Dockerfile CHANGED
@@ -63,8 +63,9 @@ COPY ./pause_space.py /pause_space.py
63
  COPY ./parse_requests.py /parse_requests.py
64
  COPY ./runs /runs
65
  #COPY ./data /data
66
- #COPY ./.cache /.cache
67
  RUN chmod 777 -R /runs
 
68
  RUN chmod +x /entrypoint.sh
69
 
70
  # Expose the secret DEBUG at buildtime and use its value as git remote URL
 
63
  COPY ./parse_requests.py /parse_requests.py
64
  COPY ./runs /runs
65
  #COPY ./data /data
66
+ COPY ./.cache /.cache
67
  RUN chmod 777 -R /runs
68
+ RUN chmod 777 -R /.cache
69
  RUN chmod +x /entrypoint.sh
70
 
71
  # Expose the secret DEBUG at buildtime and use its value as git remote URL
entrypoint.sh CHANGED
@@ -8,7 +8,7 @@ echo "Attempting to run."
8
  python /parse_requests.py | while read line; do
9
  IFS="," read backend_model experiment_name <<< $(echo ${line})
10
  echo "Benchmarking Model: ${backend_model}, Task: ${experiment_name}"
11
- optimum-benchmark --config-name ${experiment_name} --config-dir /optimum-benchmark/examples/energy_star/ hydra.run.dir="runs/${experiment_name}/${backend_model}/${now:%Y-%m-%d-%H-%M-%S}"
12
  done
13
  echo "Finished"
14
  #python /pause_space.py
 
8
  python /parse_requests.py | while read line; do
9
  IFS="," read backend_model experiment_name <<< $(echo ${line})
10
  echo "Benchmarking Model: ${backend_model}, Task: ${experiment_name}"
11
+ optimum-benchmark --config-name ${experiment_name} --config-dir /optimum-benchmark/examples/energy_star/ hydra.run.dir="./runs/${experiment_name}/${backend_model}/${now:%Y-%m-%d-%H-%M-%S}"
12
  done
13
  echo "Finished"
14
  #python /pause_space.py