-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy patheval_mmmu.slurm
67 lines (52 loc) · 1.43 KB
/
eval_mmmu.slurm
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#SBATCH --job-name=mmmu-eval
#SBATCH --gres=gpu:1
#SBATCH --constraint=a100|h100|rtx8000
#SBATCH --cpus-per-task=16
#SBATCH --mem=40GB
#SBATCH --time=02:00:00
#SBATCH --output=./logs/mmmu/eval-%x-%j.out
#SBATCH --error=./logs/mmmu/eval-%x-%j.err
#SBATCH --export=ALL
#SBATCH --mail-type=FAIL
echo "> eval_mmmu.slurm $@"
benchmark="mmmu"
################# Parse Arguments #################
# take command line args
# Default values
# conv_mode="vicuna_v1"
conv_mode="llama_3"
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case "$1" in
--ckpt)
ckpt="$2"
shift 2
;;
--conv_mode)
conv_mode="$2"
shift 2
;;
*)
echo "Unknown argument: $1"
exit 1
;;
esac
done
# Check if the required argument ckpt is provided
if [[ -z "$ckpt" ]]; then
echo "Error: --ckpt argument is required."
exit 1
fi
# Print the values
echo "Benchmark: $benchmark"
echo "Checkpoint path: $ckpt"
echo "Conversation mode: $conv_mode"
export SCRATCH=/scratch/${USER}
export CHECKPOINT_DIR=${CHECKPOINT_DIR:-$SCRATCH/checkpoints}
export EVAL_DIR=${EVAL_DIR:-$SCRATCH/workspace/mllm_eval_hpc}
singularity exec --bind /scratch --nv --overlay $SCRATCH/overlay/cambrian.ext3:ro $SCRATCH/overlay/cuda12.1.1-cudnn8.9.0-devel-ubuntu22.04.2.sif /bin/bash -c "
source $SCRATCH/env.sh
cd $EVAL_DIR/scripts
bash run_benchmark.sh --benchmark $benchmark --ckpt $ckpt --conv_mode $conv_mode
"