forked from xinyanghuang7/Basic-Visual-Language-Model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain.sh
More file actions
18 lines (18 loc) · 710 Bytes
/
train.sh
File metadata and controls
18 lines (18 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master_port=25642 train.py \
--lora_rank 128 \
--lora_dropout 0.10 \
--per_device_train_batch_size 4 \
--gradient_accumulation_steps 1 \
--num_train_epochs 2 \
--save_steps 1000 \
--save_total_limit 5 \
--learning_rate 3e-5 \
--seed 42 \
--ddp_find_unused_parameters False \
--feature_proj_lr 1e-4 \
--remove_unused_columns false \
--logging_steps 100 \
--output_dir ./weights/train_V1_5 \
--target_modules "c_attn|w1|w2" \
--image_map /home/u2023111315/Basic-Vision-Language-Model/data/image_map_b.json \
--captions_file /home/u2023111315/Basic-Vision-Language-Model/data/captions_b.json