Upload llama3_lora_sft.yaml with huggingface_hub
Browse files- llama3_lora_sft.yaml +38 -0
llama3_lora_sft.yaml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### model
|
2 |
+
model_name_or_path: /root/paddlejob/workspace/env_run/output/output/mistral-7b-inst-v0.3
|
3 |
+
|
4 |
+
### method
|
5 |
+
stage: sft
|
6 |
+
do_train: true
|
7 |
+
finetuning_type: full
|
8 |
+
|
9 |
+
### dataset
|
10 |
+
dataset: alpaca_en_demo_52k
|
11 |
+
template: mistral
|
12 |
+
cutoff_len: 1024
|
13 |
+
max_samples: 10000
|
14 |
+
overwrite_cache: true
|
15 |
+
preprocessing_num_workers: 16
|
16 |
+
|
17 |
+
### output
|
18 |
+
output_dir: saves/llama3-8b/lora/sft
|
19 |
+
logging_steps: 1
|
20 |
+
save_steps: 500
|
21 |
+
plot_loss: true
|
22 |
+
overwrite_output_dir: true
|
23 |
+
|
24 |
+
### train
|
25 |
+
per_device_train_batch_size: 1
|
26 |
+
gradient_accumulation_steps: 8
|
27 |
+
learning_rate: 2.0e-5
|
28 |
+
num_train_epochs: 3.0
|
29 |
+
lr_scheduler_type: cosine
|
30 |
+
warmup_ratio: 0.1
|
31 |
+
bf16: true
|
32 |
+
ddp_timeout: 180000000
|
33 |
+
|
34 |
+
### eval
|
35 |
+
val_size: 0.1
|
36 |
+
per_device_eval_batch_size: 1
|
37 |
+
eval_strategy: steps
|
38 |
+
eval_steps: 500
|