bellafc commited on
Commit
07fa111
·
verified ·
1 Parent(s): 331b067

Upload lora_sft.yaml

Browse files
Files changed (1) hide show
  1. lora_sft.yaml +39 -0
lora_sft.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### model
2
+ model_name_or_path: /root/autodl-tmp/LLM-Research/Phi-3-medium-128k-instruct
3
+
4
+ ### method
5
+ stage: sft
6
+ do_train: true
7
+ finetuning_type: lora
8
+ lora_target: all
9
+
10
+ ### dataset
11
+ dataset:
12
+ template: phi
13
+ cutoff_len: 1024
14
+ max_samples: 100000
15
+ overwrite_cache: true
16
+ preprocessing_num_workers: 64
17
+
18
+ ### output
19
+ output_dir: saves/Phi-3-medium-128k-instruct/lora/sft
20
+ logging_steps: 10
21
+ save_steps: 3000
22
+ plot_loss: true
23
+ overwrite_output_dir: true
24
+
25
+ ### train
26
+ per_device_train_batch_size: 3
27
+ gradient_accumulation_steps: 8
28
+ learning_rate: 1.0e-4
29
+ num_train_epochs: 3.0
30
+ lr_scheduler_type: cosine
31
+ warmup_ratio: 0.1
32
+ bf16: true
33
+ ddp_timeout: 180000000
34
+
35
+ ### eval
36
+ # val_size: 0.1
37
+ # per_device_eval_batch_size: 1
38
+ # eval_strategy: steps
39
+ # eval_steps: 500