SZhanZ
commited on
Commit
·
1af3e6b
1
Parent(s):
adbe690
add sft yaml
Browse files
sft_related/qwen2_5_vl_full_sft.yaml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### model
|
| 2 |
+
model_name_or_path: Qwen/Qwen2.5-VL-3B-Instruct
|
| 3 |
+
image_resolution: 262144
|
| 4 |
+
video_resolution: 16384
|
| 5 |
+
trust_remote_code: true
|
| 6 |
+
|
| 7 |
+
### method
|
| 8 |
+
stage: sft
|
| 9 |
+
do_train: true
|
| 10 |
+
finetuning_type: full
|
| 11 |
+
freeze_vision_tower: true # choices: [true, false]
|
| 12 |
+
freeze_multi_modal_projector: true # choices: [true, false]
|
| 13 |
+
train_mm_proj_only: false # choices: [true, false]
|
| 14 |
+
deepspeed: examples/deepspeed/ds_z2_config.json # choices: [ds_z0_config.json, ds_z2_config.json, ds_z3_config.json]
|
| 15 |
+
|
| 16 |
+
### dataset
|
| 17 |
+
dataset: mllm_rec_json
|
| 18 |
+
template: qwen2_vl
|
| 19 |
+
cutoff_len: 2048
|
| 20 |
+
max_samples: 1000000
|
| 21 |
+
overwrite_cache: true
|
| 22 |
+
preprocessing_num_workers: 16
|
| 23 |
+
|
| 24 |
+
### output
|
| 25 |
+
output_dir: saves/qwen2_5_vl-3b/full/sft
|
| 26 |
+
logging_steps: 10
|
| 27 |
+
save_steps: 100
|
| 28 |
+
plot_loss: true
|
| 29 |
+
overwrite_output_dir: true
|
| 30 |
+
|
| 31 |
+
### train
|
| 32 |
+
per_device_train_batch_size: 1
|
| 33 |
+
gradient_accumulation_steps: 2
|
| 34 |
+
learning_rate: 2.0e-5
|
| 35 |
+
num_train_epochs: 3.0
|
| 36 |
+
lr_scheduler_type: cosine
|
| 37 |
+
warmup_ratio: 0.1
|
| 38 |
+
bf16: true
|
| 39 |
+
ddp_timeout: 180000000
|
| 40 |
+
|
| 41 |
+
### eval
|
| 42 |
+
# val_size: 0.1
|
| 43 |
+
# per_device_eval_batch_size: 1
|
| 44 |
+
# eval_strategy: steps
|
| 45 |
+
# eval_steps: 500
|