forked from shibing624/MedicalGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_orpo.sh
30 lines (30 loc) · 858 Bytes
/
run_orpo.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
CUDA_VISIBLE_DEVICES=0,1 python orpo_training.py \
--model_type auto \
--model_name_or_path Qwen/Qwen1.5-0.5B-Chat \
--template_name qwen \
--train_file_dir ./data/reward \
--per_device_train_batch_size 2 \
--per_device_eval_batch_size 2 \
--do_train \
--do_eval \
--use_peft True \
--max_train_samples 1000 \
--max_eval_samples 50 \
--max_steps 100 \
--eval_steps 20 \
--save_steps 50 \
--max_source_length 1024 \
--max_target_length 512 \
--output_dir outputs-orpo-qwen-v1 \
--target_modules all \
--lora_rank 8 \
--lora_alpha 16 \
--lora_dropout 0.05 \
--torch_dtype float16 \
--fp16 True \
--device_map auto \
--report_to tensorboard \
--remove_unused_columns False \
--gradient_checkpointing True \
--orpo_beta 0.1 \
--cache_dir ./cache