forked from varshakishore/dsi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cont_100.sh
29 lines (25 loc) · 933 Bytes
/
cont_100.sh
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
# hyper parameters
batch_size=1024
# set it to 0.0001 for bert and 0.001 for t5
learning_rate=0.000005
train_epochs=20
output_dir="/home/cw862/DSI/dsi/MSMARCO_baselines/cont/"
logging_step=200
data_dir="/home/cw862/MSMARCO"
base_data_dir_new='/home/cw862/MSMARCO/new_docs'
model_path="/home/vk352/dsi/msmarco_output/debug/finetune_old_epoch20"
wandb_name="cont_100_5e-6_"
train_cmd="
python dsi_model_v1.py \
--batch_size=$batch_size --output_dir=$output_dir --logging_step=$logging_step \
--learning_rate $learning_rate --train_epochs $train_epochs \
--initialize_model $model_path --model_name='bert-base-uncased' \
--wandb_name $wandb_name --output_name $wandb_name \
--base_data_dir=$data_dir --base_data_dir_new=$base_data_dir_new \
--filter_num=100"
# --freeze_base_model --initialize_model $model_path
echo $train_cmd
eval $train_cmd
echo "copy current script to model directory to:"
echo $output_dir
cp $0 $output_dir