1+ defaults :
2+ - ../config/deepspeed_zero@_here_
3+ - ../config/deepspeed_zero2@_here_
4+ - ../config/deepspeed_zero3@_here_
5+ - ../config/deepspeed_zero3_cpuoffload@_here_
6+
7+ hydra :
8+ run :
9+ dir : .
10+ output_subdir : null
11+
12+ exp_name : " distill_vl_zero3"
13+ seed : 42
14+ logging_dir : ./output/logs
15+ output_dir : ./output
16+
17+ checkpoint_config :
18+ type : file_system
19+ output_dir : /data/cpfs_0/rl_examples/models/${exp_name}
20+
21+ save_steps : 100
22+ logging_steps : 1
23+ resume_from_checkpoint : false
24+
25+ student_pretrain : Qwen/Qwen2.5-VL-7B-Instruct
26+ teacher_pretrain : Qwen/Qwen2.5-VL-32B-Instruct
27+
28+ # distill config
29+ distill_loss_weight : 0.85
30+ kd_objective : forward_kl
31+ distill_on_prompt : True
32+
33+ sequence_length : 1024
34+ max_grad_norm : 1.0
35+
36+ student :
37+ model_args :
38+ attn_implementation : fa2
39+ disable_gradient_checkpointing : false
40+ dtype : bf16
41+ model_type : ~
42+ training_args :
43+ learning_rate : 2.0e-5
44+ weight_decay : 1.0e-2
45+ lr_scheduler_type : constant
46+ per_device_train_batch_size : 1
47+ gradient_accumulation_steps : 1
48+ warmup_steps : 0
49+ num_train_epochs : 1
50+ data_args :
51+ template : qwen2-vl
52+ # use leonardPKU/GEOQA_R1V_Train_8K as dataset
53+ # download to ./data/geoqa_data from https://huggingface.co/datasets/leonardPKU/GEOQA_R1V_Train_8K
54+ file_name : data/geoqa_data/
55+ dataset_dir : ./
56+ preprocessing_num_workers : 16
57+
58+ strategy_args :
59+ strategy_name : deepspeed_train
60+ strategy_config : ${deepspeed_zero3}
61+ device_mapping : list(range(0,8))
62+
63+ teacher :
64+ model_args :
65+ attn_implementation : fa2
66+ disable_gradient_checkpointing : true
67+ dtype : bf16
68+ data_args :
69+ template : qwen2-vl
70+ strategy_args :
71+ strategy_name : deepspeed_infer
72+ strategy_config : ${deepspeed_zero3}
73+ device_mapping : list(range(0,8))
74+
75+ system_envs :
76+ RAY_PROFILING : " 0"
0 commit comments