-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
deepspeed llava/train/train.py \ | ||
--deepspeed ./scripts/zero3.json \ | ||
--model_name_or_path liuhaotian/llava-v1.5-7b \ | ||
--version v1 \ | ||
--data_path idcp.json \ | ||
--image_folder "" \ | ||
--vision_tower openai/clip-vit-large-patch14-336 \ | ||
--mm_projector_type mlp2x_gelu \ | ||
--mm_vision_select_layer -2 \ | ||
--mm_use_im_start_end False \ | ||
--mm_use_im_patch_token False \ | ||
--image_aspect_ratio pad \ | ||
--group_by_modality_length True \ | ||
--bf16 False \ | ||
--fp16 True \ | ||
--output_dir ./checkpoints/llava-v1.5-7b-task-kaa-final-version-notad-alllearn1-v100 \ | ||
--num_train_epochs 2 \ | ||
--per_device_train_batch_size 4 \ | ||
--per_device_eval_batch_size 4 \ | ||
--gradient_accumulation_steps 4 \ | ||
--evaluation_strategy "no" \ | ||
--save_strategy "steps" \ | ||
--save_steps 1000 \ | ||
--save_total_limit 50 \ | ||
--learning_rate 2e-5 \ | ||
--weight_decay 0. \ | ||
--warmup_ratio 0.03 \ | ||
--lr_scheduler_type "cosine" \ | ||
--logging_steps 1 \ | ||
--tf32 False \ | ||
--model_max_length 2048 \ | ||
--gradient_checkpointing True \ | ||
--dataloader_num_workers 4 \ | ||
--lazy_preprocess True \ | ||
--report_to wandb |