Views
No views yet
0.4.11# Allow cli options to override these settings.
2strict: false
3
4# Base model settings.
5base_model: meta-llama/Meta-Llama-3-8B-Instruct
6tokenizer_config: meta-llama/Meta-Llama-3-8B-Instruct
7model_type: AutoModelForCausalLM
8
9# Wandb settings
10wandb_entity: collinear
11wandb_project: template-training
12wandb_name: l3smi-sft-qlora-r64
13
14# Output settings
15save_safetensors: true
16hub_model_id: fozziethebeat/l3bgi-sft-qlora-r64
17dataset_prepared_path: data/l3bgi-sft-qlora-r64
18output_dir: models/l3bgi-sft-qlora-r64
19
20# Data format settings
21chat_template: llama3
22datasets:
23 - path: fozziethebeat/alpaca_messages_2k_test
24 split: train
25 type: chat_template
26 chat_template: llama3
27 field_messages: messages
28 message_field_role: role
29 message_field_content: content
30test_datasets:
31 - path: fozziethebeat/alpaca_messages_2k_test
32 split: test
33 type: chat_template
34 chat_template: llama3
35 field_messages: messages
36 message_field_role: role
37 message_field_content: content
38
39# Data packing settings
40sequence_len: 512
41train_on_inputs: false
42pad_to_sequence_len: true
43group_by_length: false
44sample_packing: false
45eval_sample_packing: false
46
47# Adapter settings
48adapter: qlora
49lora_model_dir:
50load_in_8bit: false
51load_in_4bit: true
52lora_r: 64
53lora_alpha: 16
54lora_dropout: 0.05
55lora_target_linear: true
56lora_fan_in_fan_out:
57lora_target_modules:
58 - gate_proj
59 - down_proj
60 - up_proj
61 - q_proj
62 - v_proj
63 - k_proj
64 - o_proj
65
66# Computation Format settings
67bf16: true
68fp16:
69tf32: false
70
71# Trainer settings
72gradient_accumulation_steps: 2
73micro_batch_size: 2
74num_epochs: 2
75optimizer: adamw_torch
76lr_scheduler: cosine
77learning_rate: 1e-5
78loss_watchdog_threshold: 5.0
79loss_watchdog_patience: 3
80
81gradient_checkpointing: true
82early_stopping_patience:
83resume_from_checkpoint:
84local_rank:
85logging_steps: 1
86xformers_attention:
87#flash_attention: true
88
89warmup_steps: 10
90eval_table_size:
91eval_max_new_tokens: 128
92evals_per_epoch: 4
93saves_per_epoch: 1
94debug:
95weight_decay: 0.01
96special_tokens:
97 pad_token: <|end_of_text|>
98deepspeed:
99fsdp:
100| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.0859 | 0.0022 | 1 | 1.3374 |
| 0.9847 | 0.2497 | 111 | 1.1122 |
| 1.203 | 0.4994 | 222 | 1.0451 |
| 1.3916 | 0.7492 | 333 | 1.0307 |
| 0.7893 | 0.9989 | 444 | 1.0251 |
| 1.0244 | 1.2486 | 555 | 1.0228 |
| 0.6814 | 1.4983 | 666 | 1.0221 |
| 0.9408 | 1.7480 | 777 | 1.0224 |
| 1.0832 | 1.9978 | 888 | 1.0220 |