Skip to content

Commit

Permalink
Merge pull request NVlabs#67 from Efficient-Large-Model/dev/fix_shard…
Browse files Browse the repository at this point in the history
…ed_eval

Fix bugs in sharded evaluation scripts
  • Loading branch information
Efficient-Large-Language-Model authored May 1, 2024
2 parents 2f66927 + fd01d2c commit 4f906a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/v1_5/eval/mmbench_cn_sharded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for IDX in $(seq 0 $((CHUNKS-1))); do
CUDA_VISIBLE_DEVICES=${GPULIST[$GPU_IDX1]},${GPULIST[$GPU_IDX2]} python -m llava.eval.model_vqa_mmbench \
--model-path $MODEL_PATH \
--question-file ./playground/data/eval/mmbench_cn/$SPLIT.tsv \
--answers-file ./eval_output/$CKPT/mmbench_cn/$SPLIT.jsonl \
--answers-file ./eval_output/$CKPT/mmbench_cn/${CHUNKS}_${IDX}.jsonl \
--lang cn \
--single-pred-prompt \
--temperature 0 \
Expand Down
3 changes: 2 additions & 1 deletion scripts/v1_5/eval/seed_sharded.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
MODEL_PATH=$1

gpu_list="${CUDA_VISIBLE_DEVICES:-0}"
Expand Down Expand Up @@ -44,4 +45,4 @@ done
python scripts/convert_seed_for_submission.py \
--annotation-file ./playground/data/eval/seed_bench/SEED-Bench.json \
--result-file $output_file \
--result-upload-file ./eval_output/$CKPT/seed_bench/answers_upload.jsonl
--result-upload-file ./eval_output/$CKPT/seed_bench/answers_upload.jsonl

0 comments on commit 4f906a9

Please sign in to comment.