Spaces:
Runtime error
Runtime error
File size: 1,436 Bytes
d023e59 c5729e2 ccb86e6 616b8af d5b1458 81672b4 807b73e 216eab8 9c8006c 216eab8 9714a8a 216eab8 d642558 0351a9f 79fff16 d642558 568dde5 79fff16 568dde5 6c04bde 79fff16 ca32ce8 72e682c c5729e2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
#!/bin/bash
export SPACE="AIEnergyScore/launch-computation-example"
echo "Not checking h100 -- already know it's not there."
#python /check_h100.py
echo "Attempting to run."
#if [[ $? = 0 ]]; then
# For each line in the requests dataset....
python /parse_requests.py | while read -r line; do
# Read the name of the model and the experiment.
IFS="," read backend_model experiment_name <<< "${line}"
echo "Benchmarking Model: ${backend_model}, Task: ${experiment_name}"
# Initialize the directory for output.
now=$(date +%Y-%m-%d-%H-%M-%S)
run_dir="./runs/${experiment_name}/${backend_model}/${now}"
mkdir -p "$run_dir"
echo "${experiment_name},${backend_model}" >> /attempts.txt
# Let the benchmarking begin!
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" ||
echo "${experiment_name},${backend_model}" >> /failed_attempts.txt #(python /failed_run.py --run_dir "${run_dir}" --model_name "${backend_model}" && rm -rf $run_dir)
done
echo "Finished; updating requests dataset and results dataset."
python /create_results.py ./runs
#echo "Uploading all output from the /runs folder."
#python /upload_run_folder.py --run_dir "/runs"
# Pausing space
echo "Pausing space."
python /pause_space.py
echo "Done."
|