# ver.1: attn_dist_div -> Attn Gate ==> POPE (10%), BEAF (10%), OK-VQA (10%)
CUDA_VISIBLE_DEVICES=2 python3 -m accelerate.commands.launch \
	--num_processes=1 \
	-m lmms_eval \
	--model llava \
	--model_args pretrained=liuhaotian/llava-v1.5-7b,attn_implementation=eager \
	--tasks pope_attn_dist_div_attn_search_1 \
	--batch_size 1 \
	--log_samples \
	--log_samples_suffix llava_v1.5_7b_pope_attn_dist_div_attn_search_1 \
	--output_path ./logs/ \
	--process_with_media \
	--limit 900



# ver.2: attn_dist_div -> Prev MLP Gate (shallow layer: 2) ==> POPE (10%), BEAF (10%), OK-VQA (10%)
CUDA_VISIBLE_DEVICES=2 python3 -m accelerate.commands.launch \
	--num_processes=1 \
	-m lmms_eval \
	--model llava \
	--model_args pretrained=liuhaotian/llava-v1.5-7b,attn_implementation=eager \
	--tasks pope_attn_dist_div_prev_mlp_search_1 \
	--batch_size 1 \
	--log_samples \
	--log_samples_suffix llava_v1.5_7b_pope_attn_dist_div_prev_mlp_search_1 \
	--output_path ./logs/ \
	--process_with_media \
	--limit 900




# ver.3: attn_dist_div -> Attn Gate & Prev MLP Gate (shallow layer: 2) ==> POPE (10%), BEAF (10%), OK-VQA (10%)
CUDA_VISIBLE_DEVICES=2 python3 -m accelerate.commands.launch \
	--num_processes=1 \
	-m lmms_eval \
	--model llava \
	--model_args pretrained=liuhaotian/llava-v1.5-7b,attn_implementation=eager \
	--tasks pope_attn_dist_div_attn_prev_mlp_search_1 \
	--batch_size 1 \
	--log_samples \
	--log_samples_suffix llava_v1.5_7b_pope_attn_dist_div_attn_prev_mlp_search_1 \
	--output_path ./logs/ \
	--process_with_media \
	--limit 900








