Views
No views yet
0.9.21 # ============= SFT DEBUG (~1M conv) =============
2base_model: giux78/zagreus-test-202000
3strict: false
4output_dir: ./ale_outputs/opendata-sft-debug
5seed: 42
6
7datasets:
8 - path: /leonardo_work/EUHPC_A04_045/training/opendata-1000000
9 type: chat_template
10 field_messages: conversation
11 roles_to_train: ["assistant"]
12 train_on_eos: turn
13
14dataset_prepared_path: ./ale_outputs/dataset_cache/opendata-sft
15#default_system_message: "Sei un assistente utile."
16chat_template: llama3
17
18sequence_len: 4096
19sample_packing: true
20eval_sample_packing: true
21pad_to_sequence_len: true
22
23
24
25# --- Cosine knobs (Axolotl) ---
26# 1) Mantieni LR costante al massimo per l'80% degli step
27cosine_constant_lr_ratio: 0.8
28# 2) Floor al 30% del LR max (min_lr = 4.5e-6)
29cosine_min_lr_ratio: 0.3
30# Non impostare lr_div_factor quando usi cosine_min_lr_ratio
31
32
33optimizer: adamw_torch_fused
34lr_scheduler: cosine # <-- per isolare il comportamento
35learning_rate: 1.5e-5
36warmup_ratio: 0.05 # un po’ più lungo in debug
37weight_decay: 0.01
38max_grad_norm: 1.0
39
40micro_batch_size: 1
41gradient_accumulation_steps: 8
42# Usa max_steps per “più step” indipendentemente dalla lunghezza effettiva del dataset
43max_steps: 3000 # ≈ 4x gli step attuali
44#num_epochs: null # ignora epoche quando max_steps è settato
45
46bf16: auto
47flash_attention: true
48gradient_checkpointing: true
49
50logging_steps: 10
51eval_strategy: steps
52eval_steps: 100
53save_strategy: steps
54save_steps: 500
55save_total_limit: 3
56val_set_size: 10000
57
58fsdp_config:
59 fsdp_sharding_strategy: FULL_SHARD
60 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
61 fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
62 fsdp_backward_prefetch_policy: BACKWARD_PRE
63 fsdp_state_dict_type: FULL_STATE_DICT
64
65special_tokens:
66 pad_token: <|end_of_text|>
67 eos_token: <|end_of_text|>
68
69| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0.0020 | 1 | 3.7876 |
| 3.7674 | 0.2011 | 100 | 3.7542 |
| 3.7586 | 0.4022 | 200 | 3.7143 |
| 3.6915 | 0.6033 | 300 | 3.6839 |
| 3.6682 | 0.8044 | 400 | 3.6515 |
| 3.6233 | 1.0040 | 500 | 3.6184 |
| 3.5936 | 1.2051 | 600 | 3.5953 |
| 3.6268 | 1.4062 | 700 | 3.5772 |
| 3.5927 | 1.6073 | 800 | 3.5650 |
| 3.5824 | 1.8084 | 900 | 3.5573 |
| 3.4978 | 2.0080 | 1000 | 3.5523 |
| 3.4974 | 2.2092 | 1100 | 3.5496 |
| 3.5411 | 2.4103 | 1200 | 3.5488 |
| 3.5636 | 2.6114 | 1300 | 3.5486 |
| 3.5708 | 2.8125 | 1400 | 3.5484 |
| 3.4299 | 3.0121 | 1500 | 3.5484 |
| 3.4308 | 3.2132 | 1600 | 3.5484 |
| 3.4696 | 3.4143 | 1700 | 3.5483 |
| 3.5215 | 3.6154 | 1800 | 3.5480 |
| 3.5023 | 3.8165 | 1900 | 3.5482 |
| 3.366 | 4.0161 | 2000 | 3.5482 |
| 3.3848 | 4.2172 | 2100 | 3.5481 |
| 3.4039 | 4.4183 | 2200 | 3.5482 |
| 3.4763 | 4.6194 | 2300 | 3.5481 |
| 3.4401 | 4.8205 | 2400 | 3.5481 |
| 3.2693 | 5.0201 | 2500 | 3.5481 |
| 3.334 | 5.2212 | 2600 | 3.5482 |
| 3.3382 | 5.4223 | 2700 | 3.5482 |
| 3.4097 | 5.6234 | 2800 | 3.5484 |
| 3.362 | 5.8245 | 2900 | 3.5482 |
| 3.2564 | 6.0241 | 3000 | 3.5482 |