Views
No views yet
0.8.11base_model: NousResearch/Meta-Llama-3-8B
2# optionally might have model_type or tokenizer_type
3model_type: LlamaForCausalLM
4tokenizer_type: AutoTokenizer
5# Automatically upload checkpoint and final model to HF
6# hub_model_id: username/custom_model_name
7
8load_in_8bit: true
9load_in_4bit: false
10
11datasets:
12 - path: mhenrichsen/alpaca_2k_test
13 type: alpaca
14dataset_prepared_path:
15val_set_size: 0.05
16output_dir: ./outputs/lora-out
17
18sequence_len: 2048
19sample_packing: true
20eval_sample_packing: false
21pad_to_sequence_len: true
22
23adapter: lora
24lora_model_dir:
25lora_r: 8
26lora_alpha: 16
27lora_dropout: 0.05
28lora_target_linear: true
29lora_modules_to_save:
30 - embed_tokens
31 - lm_head
32
33wandb_project: llama3-lora
34wandb_entity: your_username
35wandb_name: llama3-alpaca2k-run1
36wandb_watch: gradients
37wandb_log_model: None
38
39
40gradient_accumulation_steps: 4
41micro_batch_size: 4
42num_epochs: 2
43optimizer: adamw_bnb_8bit
44lr_scheduler: cosine
45learning_rate: 0.0002
46
47bf16: auto
48tf32: false
49
50gradient_checkpointing: true
51resume_from_checkpoint:
52logging_steps: 1
53flash_attention: true
54
55warmup_steps: 10
56evals_per_epoch: 4
57saves_per_epoch: 1
58weight_decay: 0.01
59special_tokens:
60 pad_token: <|end_of_text|>
61| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.1188 | 0.0930 | 1 | 1.0755 |
| 1.0276 | 0.2791 | 3 | 1.0557 |
| 1.0467 | 0.5581 | 6 | 1.0094 |
| 1.0644 | 0.8372 | 9 | 1.0095 |
| 0.7988 | 1.0930 | 12 | 1.0279 |
| 0.6768 | 1.3721 | 15 | 1.0479 |
| 0.6719 | 1.6512 | 18 | 1.0495 |