Views
No views yet
0.11.0.dev01base_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: cfierro/alpaca-en2fr
13 type: alpaca
14dataset_prepared_path: /workspace/axolotl-datasets/llama3-en2fr_alpaca
15val_set_size: 0.05
16output_dir: /workspace/axolotl-outputs/llama3-en2fr_alpaca-lora
17
18sequence_len: 4096
19sample_packing: true
20eval_sample_packing: false
21pad_to_sequence_len: true
22
23adapter: lora
24lora_model_dir:
25lora_r: 32
26lora_alpha: 16
27lora_dropout: 0.05
28lora_target_linear: true
29lora_modules_to_save:
30 - embed_tokens
31 - lm_head
32merge_lora: true
33
34wandb_project: weight-diff-ft
35wandb_entity: cfierro
36wandb_watch: all
37wandb_name: llama3-en2fr_alpaca-lora
38wandb_log_model: "false"
39hub_model_id: cfierro/llama3-en2fr_alpaca-lora
40
41gradient_accumulation_steps: 4
42micro_batch_size: 2
43max_steps: 1000 # 8k examples at most
44optimizer: adamw_bnb_8bit
45lr_scheduler: cosine
46learning_rate: 0.0002
47
48bf16: auto
49tf32: false
50
51gradient_checkpointing: true
52resume_from_checkpoint:
53logging_steps: 1
54flash_attention: true
55
56warmup_steps: 10
57early_stopping_patience: 2
58eval_steps: 50 # bs=4*2 -> eval every 8*50=400 examples
59save_steps: 50 # needed for config validation
60save_total_limit: 1
61load_best_model_at_end: true
62weight_decay: 0.0
63special_tokens:
64 pad_token: <|end_of_text|>
65| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 1.4635 |
| 1.0737 | 0.2729 | 50 | 1.0379 |
| 1.0289 | 0.5457 | 100 | 1.0071 |
| 1.0187 | 0.8186 | 150 | 0.9880 |
| 0.8044 | 1.0873 | 200 | 1.0000 |
| 0.8264 | 1.3602 | 250 | 0.9983 |