StringVal="2e-5"
#StringTask="CoLA SST-2 MRPC STS-B QQP QNLI RTE"
model_name="bert-base-uncased_clip_x2_wiki_mlm_vlm_match_whole_seq/Epoch14/Epoch14_XATTNBERT bert-base-uncased_clip_x2_wiki_mlm_vlm_match_whole_seq2/Epoch15/Epoch15_XATTNBERT"
for md in $model_name; do
	for val in $StringVal; do 
		echo ${val}
		OutDir="results/finetune/${md}/SWAG/lr-"
		OutDir+="${val}"
		mkdir -p "$OutDir"
		echo ${OutDir}
		CUDA_VISIBLE_DEVICES=0 PYTHONPATH=$PYTHONPATH:./src python ./src/finetune/x_run_swag.py \
		--task_name swag \
		--config_name bert-base-uncased \
		--tokenizer_name bert-base-uncased \
		--model_name_or_path "results/pretrain/${md}.pth" \
		--xlayers 2 \
		--do_train \
		--do_eval \
		--do_predict \
		--data_dir data/SWAG \
		--learning_rate $val \
		--weight_decay 0.01 \
		--num_train_epochs 3 \
		--max_seq_length 128 \
		--output_dir $OutDir \
		--per_device_eval_batch_size 4 \
		--per_device_train_batch_size 4 \
		--gradient_accumulation_steps 4 \
		--overwrite_output \
		--evaluation_strategy "epoch" \
		#--warmup_steps 12 \
		#--overwrite_cache \
		#--eval_steps 12 \
		#--logging_steps 12 \
		#--config_name "bert-base-cased" \
		#--tokenizer_name "bert-base-cased" \
		#--evaluate_during_training
		
		#unc-nlp/
	done
done
