-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathexample_training_config_for_finetuning_twllm.yaml
More file actions
64 lines (55 loc) · 1.19 KB
/
example_training_config_for_finetuning_twllm.yaml
File metadata and controls
64 lines (55 loc) · 1.19 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
base_model: yentinglin/Llama-3-Taiwan-70B-Instruct
trust_remote_code: true
load_in_8bit: false
load_in_4bit: false
strict: false
hub_model_id: YOUR_USER_NAME/Llama-3-Taiwan-70B-Instruct-MY_FINETUNING
hub_strategy: end
wandb_name: twllm 70b sft
dataset_processes: 16
datasets:
- path: yentinglin/TaiwanChat
type: sharegpt
conversation: llama3
chat_template: llama3
dataset_prepared_path: last_run_prepared
val_set_size: 0
output_dir: ./output/tw-llm/70b/sft/
save_safetensors: true
sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true
wandb_project: twllm
wandb_watch:
wandb_run_id:
wandb_log_model:
gradient_accumulation_steps: 1
micro_batch_size: 1
num_epochs: 3
optimizer: adamw_8bit
lr_scheduler: cosine
learning_rate: 5e-5
train_on_inputs: false
group_by_length: false
bf16: auto
fp16:
tf32: false
gradient_checkpointing: true
gradient_checkpointing_kwargs:
use_reentrant: false
early_stopping_patience:
resume_from_checkpoint:
logging_steps: 1
xformers_attention:
flash_attention: true
warmup_steps: 100
evals_per_epoch: 0
eval_table_size:
saves_per_epoch: 1
save_total_limit: 10
save_steps:
debug:
deepspeed: deepspeed_configs/zero3_bf16.json
weight_decay: 0.05
fsdp:
fsdp_config: