Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxin Zhang <[email protected]>
  • Loading branch information
VincyZhang committed May 15, 2024
1 parent 6adbcd9 commit 0454b21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/scripts/models/model_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ main() {
else
pretrained="${model}"
fi
if [[ ${device} == "cpu" ]]; then
model_sourze="hf"
elif [[ ${device} == "hpu" ]]; then
model_sourze="gaudi-hf"
fi
log_dir="/log/${device}/${model}"
mkdir -p ${log_dir}
$BOLD_YELLOW && echo "-------- evaluation start --------" && $RESET
Expand Down Expand Up @@ -77,7 +82,7 @@ function run_benchmark() {
cd ${working_dir}
overall_log="${log_dir}/${device}-${tasks}-${model}-${datasets}.log"
python main.py \
--model hf \
--model ${model_sourze} \
--model_args pretrained=${pretrained} \
--tasks ${datasets} \
--device ${device} \
Expand Down

0 comments on commit 0454b21

Please sign in to comment.