Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix benchmark
Browse files Browse the repository at this point in the history
Signed-off-by: changwangss <[email protected]>
  • Loading branch information
changwangss committed Jun 11, 2024
1 parent fe06a84 commit 17287f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ function run_benchmark {
if [[ ${mode} == "accuracy" ]]; then
mode_cmd=" --accuracy "
extra_cmd=$extra_cmd" --tasks ${lm_eval_tasks}"
extra_cmd=$extra_cmd" --eval_batch_size ${batch_size}"
elif [[ ${mode} == "benchmark" ]]; then
mode_cmd=" --benchmark "
extra_cmd=$extra_cmd" --benchmark_iters ${iters}"
extra_cmd=$extra_cmd" --benchmark_batch_size ${batch_size}"
else
echo "Error: No such mode: ${mode}"
exit 1
Expand Down Expand Up @@ -242,13 +244,11 @@ function run_benchmark {
if [ "${script}" == "run_generation_sq.py" ];then
python -u ./${script} \
--model ${model_name_or_path} \
--batch_size ${batch_size} \
${mode_cmd} \
${extra_cmd}
elif [ "${script}" == "run_generation_cpu_woq.py" ];then
python -u ./${script} \
--model ${model_name_or_path} \
--eval_batch_size ${batch_size} \
${mode_cmd} \
${extra_cmd}
else
Expand Down

0 comments on commit 17287f8

Please sign in to comment.