Spaces:
Runtime error
Runtime error
meg-huggingface
commited on
Commit
Β·
f5a3abd
1
Parent(s):
5de034c
Cleaning up
Browse files
Dockerfile
CHANGED
|
@@ -57,15 +57,12 @@ RUN pip install -r requirements.txt
|
|
| 57 |
|
| 58 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
| 59 |
|
| 60 |
-
COPY ./check_h100.py /check_h100.py
|
| 61 |
COPY ./.cache /.cache
|
| 62 |
COPY ./entrypoint.sh /entrypoint.sh
|
| 63 |
COPY ./pause_space.py /pause_space.py
|
| 64 |
COPY ./parse_requests.py /parse_requests.py
|
| 65 |
COPY ./create_results.py /create_results.py
|
| 66 |
-
COPY ./failed_run.py /failed_run.py
|
| 67 |
COPY ./runs /runs
|
| 68 |
-
COPY ./upload_run_folder.py /upload_run_folder.py
|
| 69 |
COPY ./attempts.txt /attempts.txt
|
| 70 |
COPY ./failed_attempts.txt /failed_attempts.txt
|
| 71 |
|
|
|
|
| 57 |
|
| 58 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
| 59 |
|
|
|
|
| 60 |
COPY ./.cache /.cache
|
| 61 |
COPY ./entrypoint.sh /entrypoint.sh
|
| 62 |
COPY ./pause_space.py /pause_space.py
|
| 63 |
COPY ./parse_requests.py /parse_requests.py
|
| 64 |
COPY ./create_results.py /create_results.py
|
|
|
|
| 65 |
COPY ./runs /runs
|
|
|
|
| 66 |
COPY ./attempts.txt /attempts.txt
|
| 67 |
COPY ./failed_attempts.txt /failed_attempts.txt
|
| 68 |
|
entrypoint.sh
CHANGED
|
@@ -2,10 +2,7 @@
|
|
| 2 |
|
| 3 |
export SPACE="AIEnergyScore/launch-computation-example"
|
| 4 |
|
| 5 |
-
echo "Not checking h100 -- already know it's not there."
|
| 6 |
-
#python /check_h100.py
|
| 7 |
echo "Attempting to run."
|
| 8 |
-
#if [[ $? = 0 ]]; then
|
| 9 |
|
| 10 |
# For each line in the requests dataset....
|
| 11 |
python /parse_requests.py | while read -r line; do
|
|
@@ -21,15 +18,12 @@ python /parse_requests.py | while read -r line; do
|
|
| 21 |
|
| 22 |
# Let the benchmarking begin!
|
| 23 |
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" ||
|
| 24 |
-
echo "${experiment_name},${backend_model}" >> /failed_attempts.txt
|
| 25 |
done
|
| 26 |
|
| 27 |
echo "Finished; updating requests dataset and results dataset."
|
| 28 |
python /create_results.py ./runs
|
| 29 |
|
| 30 |
-
#echo "Uploading all output from the /runs folder."
|
| 31 |
-
#python /upload_run_folder.py --run_dir "/runs"
|
| 32 |
-
|
| 33 |
# Pausing space
|
| 34 |
echo "Pausing space."
|
| 35 |
python /pause_space.py
|
|
|
|
| 2 |
|
| 3 |
export SPACE="AIEnergyScore/launch-computation-example"
|
| 4 |
|
|
|
|
|
|
|
| 5 |
echo "Attempting to run."
|
|
|
|
| 6 |
|
| 7 |
# For each line in the requests dataset....
|
| 8 |
python /parse_requests.py | while read -r line; do
|
|
|
|
| 18 |
|
| 19 |
# Let the benchmarking begin!
|
| 20 |
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" ||
|
| 21 |
+
echo "${experiment_name},${backend_model}" >> /failed_attempts.txt
|
| 22 |
done
|
| 23 |
|
| 24 |
echo "Finished; updating requests dataset and results dataset."
|
| 25 |
python /create_results.py ./runs
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Pausing space
|
| 28 |
echo "Pausing space."
|
| 29 |
python /pause_space.py
|
app.py β old_code/app.py
RENAMED
|
File without changes
|
check_h100.py β old_code/check_h100.py
RENAMED
|
File without changes
|
failed_run.py β old_code/failed_run.py
RENAMED
|
File without changes
|
upload_run_folder.py β old_code/upload_run_folder.py
RENAMED
|
File without changes
|