Skip to content

Commit

Permalink
Merge pull request #394 from OFA-Sys/feature/scripts
Browse files Browse the repository at this point in the history
modify scripts
  • Loading branch information
logicwong authored May 28, 2023
2 parents df9bd43 + 501329d commit 5d3830f
Show file tree
Hide file tree
Showing 21 changed files with 62 additions and 62 deletions.
6 changes: 3 additions & 3 deletions run_scripts/caption/train_caption_stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ patch_image_size=480
eval_cider_cached=${data_dir}/cider_cached_tokens/coco-valid-words.p
drop_worst_ratio=0.2

for max_epoch in {2,}; do
for max_epoch in 2; do
echo "max_epoch "${max_epoch}
for warmup_ratio in {0.06,}; do
for warmup_ratio in 0.06; do
echo "warmup_ratio "${warmup_ratio}
for drop_worst_after in {2500,}; do
for drop_worst_after in 2500; do
echo "drop_worst_after "${drop_worst_after}

log_file=${log_dir}/${max_epoch}"_"${warmup_ratio}"_"${drop_worst_after}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/caption/train_caption_stage1_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ patch_image_size=480
eval_cider_cached=${data_dir}/cider_cached_tokens/coco-valid-words.p
drop_worst_ratio=0.2

for max_epoch in {5,}; do
for max_epoch in 5; do
echo "max_epoch "${max_epoch}
for warmup_ratio in {0.06,}; do
for warmup_ratio in 0.06; do
echo "warmup_ratio "${warmup_ratio}
for drop_worst_after in {6000,}; do
for drop_worst_after in 6000; do
echo "drop_worst_after "${drop_worst_after}

log_file=${log_dir}/${max_epoch}"_"${warmup_ratio}"_"${drop_worst_after}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/caption/train_caption_stage1_el.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ patch_image_size=480
eval_cider_cached=${data_dir}/cider_cached_tokens/coco-valid-words.p
drop_worst_ratio=0.05 # modified from 0.2 for el
log_end=0.75 # for el
for max_epoch in {2,}; do
for max_epoch in 2; do
echo "max_epoch "${max_epoch}
for warmup_ratio in {0.06,}; do
for warmup_ratio in 0.06; do
echo "warmup_ratio "${warmup_ratio}
for drop_worst_after in {2500,}; do
for drop_worst_after in 2500; do
echo "drop_worst_after "${drop_worst_after}

log_file=${log_dir}/${max_epoch}"_"${warmup_ratio}"_"${drop_worst_after}_el${log_end}_".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/caption/train_caption_stage1_el_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ drop_worst_ratio=0.05 # modified from 0.2 for el
drop_best_ratio=0.05
drop_best_after=2500
log_end=0.75 # for el
for max_epoch in {2,}; do
for max_epoch in 2; do
echo "max_epoch "${max_epoch}
for warmup_ratio in {0.06,}; do
for warmup_ratio in 0.06; do
echo "warmup_ratio "${warmup_ratio}
for drop_worst_after in {2500,}; do
for drop_worst_after in 2500; do
echo "drop_worst_after "${drop_worst_after}

log_file=${log_dir}/${max_epoch}"_"${warmup_ratio}"_dwdb"${drop_worst_after}_el${log_end}_".log"
Expand Down
4 changes: 2 additions & 2 deletions run_scripts/caption/train_caption_stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ patch_image_size=480
eval_cider_cached=${data_dir}/cider_cached_tokens/coco-valid-words.p
scst_cider_cached=${data_dir}/cider_cached_tokens/coco-train-words.p

for lr in {1e-5,}; do
for lr in 1e-5; do
echo "lr "${lr}
for max_epoch in {3,}; do
for max_epoch in 3; do
echo "max_epoch "${max_epoch}

log_file=${log_dir}/${lr}"_"${max_epoch}".log"
Expand Down
4 changes: 2 additions & 2 deletions run_scripts/caption/train_caption_stage2_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ patch_image_size=480
eval_cider_cached=${data_dir}/cider_cached_tokens/coco-valid-words.p
scst_cider_cached=${data_dir}/cider_cached_tokens/coco-train-words.p

for lr in {1e-5,}; do
for lr in 1e-5; do
echo "lr "${lr}
for max_epoch in {3,}; do
for max_epoch in 3; do
echo "max_epoch "${max_epoch}

log_file=${log_dir}/${lr}"_"${max_epoch}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/gigaword/train_gigaword.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ max_src_length=512
max_tgt_length=64
num_bins=1000

for max_epoch in {6,}; do
for max_epoch in 6; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,}; do
for lr in 1e-4; do
echo "lr "${lr}
for noise_ratio in {0.2,}; do
for noise_ratio in 0.2; do
echo "noise_ratio "${noise_ratio}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${noise_ratio}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_cola.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {4,2,1}; do
for update_freq in 4 2 1; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_mnli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {4,2}; do
for update_freq in 4 2; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_mrpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {4,2,1}; do
for update_freq in 4 2 1; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_qnli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {4,2}; do
for update_freq in 4 2; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_qqp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {4,2}; do
for update_freq in 4 2; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_rte.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {8,4,2}; do
for update_freq in 8 4 2; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/glue/train_sst2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ max_tgt_length=30
num_bins=1000
prompt_type="src"

for max_epoch in {5,7,10}; do
for max_epoch in 5 7 10; do
echo "max_epoch "${max_epoch}
for lr in {1e-4,7e-5,6e-5,5e-5,3e-5}; do
for lr in 1e-4 7e-5 6e-5 5e-5 3e-5; do
echo "lr "${lr}
for update_freq in {2,1}; do
for update_freq in 2 1; do
echo "update_freq "${update_freq}

log_file=${log_dir}/${max_epoch}"_"${lr}"_"${update_freq}".log"
Expand Down
8 changes: 4 additions & 4 deletions run_scripts/image_classify/train_imagenet_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ max_tgt_length=30
num_bins=1000
patch_image_size=480

for total_num_updates in {160000,}; do
for total_num_updates in 160000; do
echo "total_num_updates "${total_num_updates}
for warmup_updates in {1000,}; do
for warmup_updates in 1000; do
echo "warmup_updates "${warmup_updates}
for lr in {5e-5,}; do
for lr in 5e-5; do
echo "lr "${lr}
for patch_image_size in {480,}; do
for patch_image_size in 480; do
echo "patch_image_size "${patch_image_size}

log_file=${log_dir}/${total_num_updates}"_"${warmup_updates}"_"${lr}"_"${patch_image_size}"_rank"${RANK}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/image_gen/train_image_gen_stage1_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ VQGAN_CONFIG_PATH=../../checkpoints/vqgan/model.yaml
CLIP_MODEL_PATH=../../checkpoints/clip/ViT-B-16.pt
GEN_IMAGES_PATH=../../results/image_gen_stage1

for total_num_updates in {40000,}; do
for total_num_updates in 40000; do
echo "total_num_updates "${total_num_updates}
for warmup_updates in {2000,}; do
for warmup_updates in 2000; do
echo "warmup_updates "${warmup_updates}
for lr in {1e-3,}; do
for lr in 1e-3; do
echo "lr "${lr}

log_file=${log_dir}/${total_num_updates}"_"${warmup_updates}"_"${lr}"_rank"${RANK}".log"
Expand Down
6 changes: 3 additions & 3 deletions run_scripts/image_gen/train_image_gen_stage2_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ VQGAN_CONFIG_PATH=../../checkpoints/vqgan/model.yaml
CLIP_MODEL_PATH=../../checkpoints/clip/ViT-B-16.pt
GEN_IMAGES_PATH=../../results/image_gen_stage2

for total_num_updates in {5000,}; do
for total_num_updates in 5000; do
echo "total_num_updates "${total_num_updates}
for warmup_updates in {0,}; do
for warmup_updates in 0; do
echo "warmup_updates "${warmup_updates}
for lr in {1e-6,}; do
for lr in 1e-6; do
echo "lr "${lr}

log_file=${log_dir}/${total_num_updates}"_"${warmup_updates}"_"${lr}"_rank"${RANK}".log"
Expand Down
4 changes: 2 additions & 2 deletions run_scripts/snli_ve/train_snli_ve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ num_bins=1000
patch_image_size=480
prompt_type="prev_output"

for max_epoch in {6,}; do
for max_epoch in 6; do
echo "max_epoch "${max_epoch}
for lr in {2e-5,}; do
for lr in 2e-5; do
echo "lr "${lr}

log_file=${log_dir}/${max_epoch}"_"${lr}".log"
Expand Down
4 changes: 2 additions & 2 deletions run_scripts/snli_ve/train_snli_ve_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ num_bins=1000
patch_image_size=480
prompt_type="prev_output"

for max_epoch in {5,}; do
for max_epoch in 5; do
echo "max_epoch "${max_epoch}
for lr in {5e-5,}; do
for lr in 5e-5; do
echo "lr "${lr}

log_file=${log_dir}/${max_epoch}"_"${lr}".log"
Expand Down
8 changes: 4 additions & 4 deletions run_scripts/vqa/train_vqa_base_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ val_inference_type=allcand
unconstrained_training_flag=""
# unconstrained_training_flag="--unconstrained-training"

for max_epoch in {15,}; do
for max_epoch in 15; do
echo "max_epoch "${max_epoch}
for warmup_ratio in {0.04,}; do
for warmup_ratio in 0.04; do
echo "warmup_updates "${warmup_updates}
for lr in {5e-5,}; do
for lr in 5e-5; do
echo "lr "${lr}
for patch_image_size in {480,}; do
for patch_image_size in 480; do
echo "patch_image_size "${patch_image_size}

log_file=${log_dir}/${max_epoch}"_"${warmup_ratio}"_"${lr}"_"${patch_image_size}"_rank"${RANK}".log"
Expand Down
8 changes: 4 additions & 4 deletions run_scripts/vqa/train_vqa_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ val_inference_type=allcand
unconstrained_training_flag=""
# unconstrained_training_flag="--unconstrained-training"

for total_num_updates in {40000,}; do
for total_num_updates in 40000; do
echo "total_num_updates "${total_num_updates}
for warmup_updates in {1000,}; do
for warmup_updates in 1000; do
echo "warmup_updates "${warmup_updates}
for lr in {5e-5,}; do
for lr in 5e-5; do
echo "lr "${lr}
for patch_image_size in {480,}; do
for patch_image_size in 480; do
echo "patch_image_size "${patch_image_size}

log_file=${log_dir}/${total_num_updates}"_"${warmup_updates}"_"${lr}"_"${patch_image_size}"_rank"${RANK}".log"
Expand Down

0 comments on commit 5d3830f

Please sign in to comment.