Views
No views yet
0.5.01#base_model: mistralai/Mistral-7b-v0.1
2base_model: Qwen/Qwen2.5-1.5B-Instruct
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5
6trust_remote_code: true
7
8# load_in_8bit: true
9# load_in_4bit: false
10# strict: false
11
12datasets:
13 - path: open-ita-llms/OpenSFT-ita
14 type: chat_template
15 field_messages: messages
16 message_field_role: role
17 message_field_content: content
18
19chat_template: chatml
20
21dataset_prepared_path: last_run_prepared
22val_set_size: 0.1
23output_dir: ./outputs/qwen15B-opensft
24
25# adapter: lora
26# lora_model_dir:
27
28sequence_len: 16392
29sample_packing: true
30eval_sample_packing: true
31pad_to_sequence_len: true
32
33unfrozen_parameters:
34- ^lm_head.weight$
35- ^model.embed_tokens.weight$
36# input_layernorm layers
37- model.layers.0.input_layernorm
38- model.layers.1.input_layernorm
39- model.layers.2.input_layernorm
40- model.layers.3.input_layernorm
41- model.layers.4.input_layernorm
42- model.layers.5.input_layernorm
43- model.layers.6.input_layernorm
44# lm_head layers
45# mlp.down_proj layers
46- model.layers.2.mlp.down_proj
47- model.layers.19.mlp.down_proj
48- model.layers.1.mlp.down_proj
49- model.layers.27.mlp.down_proj
50- model.layers.3.mlp.down_proj
51- model.layers.0.mlp.down_proj
52- model.layers.6.mlp.down_proj
53# mlp.gate_proj layers
54- model.layers.6.mlp.gate_proj
55- model.layers.1.mlp.gate_proj
56- model.layers.4.mlp.gate_proj
57- model.layers.3.mlp.gate_proj
58- model.layers.7.mlp.gate_proj
59- model.layers.2.mlp.gate_proj
60- model.layers.9.mlp.gate_proj
61# mlp.up_proj layers
62- model.layers.6.mlp.up_proj
63- model.layers.5.mlp.up_proj
64- model.layers.3.mlp.up_proj
65- model.layers.7.mlp.up_proj
66- model.layers.4.mlp.up_proj
67- model.layers.2.mlp.up_proj
68- model.layers.14.mlp.up_proj
69# model.embed_tokens layers
70# model.norm layers
71# post_attention_layernorm layers
72- model.layers.0.post_attention_layernorm
73- model.layers.1.post_attention_layernorm
74- model.layers.2.post_attention_layernorm
75- model.layers.3.post_attention_layernorm
76- model.layers.4.post_attention_layernorm
77- model.layers.5.post_attention_layernorm
78- model.layers.6.post_attention_layernorm
79# self_attn.k_proj layers
80- model.layers.25.self_attn.k_proj
81- model.layers.4.self_attn.k_proj
82- model.layers.2.self_attn.k_proj
83- model.layers.22.self_attn.k_proj
84- model.layers.3.self_attn.k_proj
85- model.layers.0.self_attn.k_proj
86- model.layers.6.self_attn.k_proj
87# self_attn.o_proj layers
88- model.layers.0.self_attn.o_proj
89- model.layers.14.self_attn.o_proj
90- model.layers.19.self_attn.o_proj
91- model.layers.18.self_attn.o_proj
92- model.layers.8.self_attn.o_proj
93- model.layers.22.self_attn.o_proj
94- model.layers.7.self_attn.o_proj
95# self_attn.q_proj layers
96- model.layers.14.self_attn.q_proj
97- model.layers.20.self_attn.q_proj
98- model.layers.26.self_attn.q_proj
99- model.layers.17.self_attn.q_proj
100- model.layers.18.self_attn.q_proj
101- model.layers.27.self_attn.q_proj
102- model.layers.9.self_attn.q_proj
103# self_attn.v_proj layers
104- model.layers.0.self_attn.v_proj
105- model.layers.2.self_attn.v_proj
106- model.layers.3.self_attn.v_proj
107- model.layers.4.self_attn.v_proj
108- model.layers.5.self_attn.v_proj
109- model.layers.8.self_attn.v_proj
110- model.layers.10.self_attn.v_proj
111
112
113
114
115wandb_project: axolotl
116wandb_entity:
117wandb_watch:
118wandb_name: qwen2.5-1.5B-opensft
119wandb_log_model:
120
121gradient_accumulation_steps: 4
122micro_batch_size: 1
123num_epochs: 3
124optimizer: adamw_bnb_8bit #adamw_torch_fused #adamw_bnb_8bit
125lr_scheduler: cosine
126learning_rate: 1.0e-04 # varia da 1e-3 a 1e-6
127
128train_on_inputs: false
129group_by_length: false
130bf16: true
131fp16:
132tf32: false
133
134gradient_checkpointing: true
135early_stopping_patience:
136resume_from_checkpoint:
137local_rank:
138logging_steps: 20
139xformers_attention:
140flash_attention: true
141
142# loss_watchdog_threshold: 5.0
143# loss_watchdog_patience: 3
144
145warmup_steps: 10
146evals_per_epoch: 4
147eval_table_size:
148eval_max_new_tokens: 256
149saves_per_epoch: 1
150debug:
151deepspeed:
152weight_decay: 0.01
153fsdp:
154fsdp_config:
155special_tokens:
156 pad_token: "<|im_end|>"
157 eos_token: "<|im_end|>"
158| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0.0005 | 1 | 0.8033 |
| 0.8489 | 0.2503 | 538 | 0.6900 |
| 0.8416 | 0.5005 | 1076 | 0.6753 |
| 0.7929 | 0.7508 | 1614 | 0.6673 |
| 0.8003 | 1.0005 | 2152 | 0.6572 |
| 0.7125 | 1.2507 | 2690 | 0.6583 |
| 0.7049 | 1.5010 | 3228 | 0.6528 |
| 0.6987 | 1.7513 | 3766 | 0.6529 |
| 0.7025 | 2.0009 | 4304 | 0.6498 |
| 0.6387 | 2.2512 | 4842 | 0.6575 |
| 0.6495 | 2.5015 | 5380 | 0.6568 |
| 0.6711 | 2.7517 | 5918 | 0.6571 |