-
Notifications
You must be signed in to change notification settings - Fork 7
/
llava15_train.sh
48 lines (46 loc) · 1.44 KB
/
llava15_train.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export PYTHONPATH=$PYTHONPATH:`realpath .`
task_name=llava15_7b_DPO
exp_name=llava15_rlaifv
deepspeed ./muffin/train/train_llava15.py \
--deepspeed ./script/zero2.json \
--model_name_or_path liuhaotian/llava-v1.5-7b \
--data_dir ./RLAIF-V-Dataset_logps/ \
--image_folder not_used \
--vision_tower openai/clip-vit-large-patch14-336 \
--mm_use_im_start_end False \
--mm_use_im_patch_token False \
--fully_tune True \
--image_aspect_ratio pad \
--bf16 True \
--mm_projector_type mlp2x_gelu \
--mm_vision_select_layer -2 \
--output_dir .ckpt/$task_name-$exp_name/checkpoints \
--num_train_epochs 10 \
--per_device_train_batch_size 1 \
--per_device_eval_batch_size 4 \
--gradient_accumulation_steps 1 \
--evaluation_strategy "no" \
--save_strategy "steps" \
--save_steps 167 \
--save_total_limit 50 \
--data_source_names '' \
--data_source_weights 1 \
--max_steps 2672 \
--learning_rate 5e-7 \
--weight_decay 0.01 \
--warmup_ratio 0.05 \
--lr_scheduler_type "cosine" \
--logging_steps 2 \
--logging_dir .ckpt/$task_name-$exp_name/log \
--tf32 True \
--model_max_length 2048 \
--gradient_checkpointing True \
--lazy_preprocess True \
--task DPO \
--report_to wandb \
--run_name $exp_name \
--dataloader_num_workers 16 \
--dpo_use_average False \
--dpo_token_weighted False \
--dpo_token_weight 1.0 \
--dpo_beta 0.1