#!/bin/bash # Check if three arguments are passed if [ "$#" -ne 7 ]; then echo "Usage: $0 " exit 1 fi # Assign the command line arguments to variables model_path=$1 question_path=$2 base_answer_path=$3 image_folder=$4 extra_prompt=$5 N=$6 temperature=$7 # Loop over each chunk/process for (( chunk_id=0; chunk_id "${base_answer_path}.jsonl" for ((i=0; i> "${base_answer_path}/result.jsonl" done # remove the unmerged files for (( chunk_id=0; chunk_id