Views
No views yet
0.13.0.dev01# === Model Configuration ===
2base_model: apertus-12b-nonzero-trained/cpt-part2-instruct-part1
3load_in_8bit: false
4load_in_4bit: false
5
6# === HF Configuration ===
7#hub_model_id: ToastyPigeon/apertus-12b-try-again-s1
8#hub_strategy: "every_save"
9output_dir: apertus-12b-nonzero-trained/part2-instruct
10# === Wandb Tracking ===
11wandb_project: ApertusV3
12# wandb_entity: [WANDB_ENTITY]
13wandb_name: 12b-part2-instruct
14
15# === Training Setup ===
16num_epochs: 1
17micro_batch_size: 2
18gradient_accumulation_steps: 16
19sequence_len: 4096
20#sequence_parallel_degree: 2
21#heads_k_stride: 1
22sample_packing: true
23#pad_to_sequence_len: true
24#temperature: 0.7
25#max_steps: 10
26# === Evaluation ===
27val_set_size: 200
28evals_per_epoch: 10
29#eval_steps: 20
30#max_steps: 60
31#eval_table_size:
32eval_max_new_tokens: 128
33#eval_sample_packing: true
34#eval_strategy: "no"
35
36# === LoRA Configuration ===
37adapter: lora
38lora_model_dir:
39lora_r: 128
40lora_alpha: 16
41lora_dropout: 0
42lora_target_linear:
43lora_target_modules:
44# - up_proj
45 - down_proj
46# - gate_proj
47 - q_proj
48 - v_proj
49 - k_proj
50 - o_proj
51# - input_layernorm
52# - post_attention_layernorm
53# - embed_tokens
54# - lm_head
55
56lora_fan_in_fan_out:
57peft_use_rslora: true
58lora_modules_to_save:
59# - embed_tokens
60# - lm_head
61#fix_untrained_tokens: true
62#lora_mlp_kernel: true
63#lora_qkv_kernel: true
64#lora_o_kernel: true
65#unfrozen_parameters:
66# - model.layers.(2[4-9]|3[0-9]).*
67# - model.layers.[0-9+].mlp.up_proj
68# - model.layers.[0-9]+.mlp.down_proj
69# - model.layers.[0-9+].feedforward_layernorm
70# - embed_tokens
71# - lm_head
72# - model.layers.[0-9]+.self_attn.(q|k|v|o)_proj
73# === Hyperparameter Configuration ===
74#optimizer: apollo_adamw_layerwise
75#warmup_steps: 0
76warmup_ratio: 0.025
77#optimizer: adamw_8bit
78optimizer: adamw_torch_fused
79#optimizer: paged_adamw_8bit
80#optim_args:
81# enable_stochastic_rounding: true
82# enable_cautious: true
83# enable_8bit: true
84# Apollo-mini configuration:
85#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
86# Regular Apollo configuration:
87# optim_args:
88#optim_target_modules: all_linear
89learning_rate: 2e-5
90lr_scheduler: cosine
91#cosine_min_lr_ratio: 0.2
92#lr_scheduler: cosine_with_min_lr
93#lr_scheduler_kwargs:
94# cosine_min_lr: 1e-6
95weight_decay: 0.01
96max_grad_norm: 2.0
97#warmup_steps: 0
98#warmup_ratio: 0.025
99
100
101# === Data Configuration ===
102#
103#chat_template: jinja
104chat_template: chatml
105special_tokens:
106 eos_token: "<|im_end|>"
107# eos_token: "</s>"
108#tokenizer_use_mistral_common: true
109shuffle_merged_datasets: true
110datasets:
111# - path: allura-org/the-anarchist-library
112# type: completion
113# split: train[:20%]
114 - path: grimulkan/LimaRP-augmented
115 type: chat_template
116 field_messages: conversations
117 message_property_mappings:
118 role: from
119 content: value
120# - path: allenai/tulu-3-sft-personas-instruction-following
121# type: chat_template
122# split: train[:10%]
123 - path: ToastyPigeon/mixed-medical-reasoning-formatted
124 type: chat_template
125 data_files: mixed-medical-nothink.json
126# split: train[:10%]
127# - path: ToastyPigeon/steve-and-marvin
128# type: completion
129# data_files: marvin.json
130 - path: ToastyPigeon/kimi-stories-instruct
131 type: chat_template
132# type: completion
133# - path: ToastyPigeon/new-story-dataset
134 # type: customcompletion-regex
135# type: completion
136# data_files: new-story-dataset-v2.json
137 - path: allura-org/fujin-instruct-v2
138# type: customchatml-regex
139 type: chat_template
140 field_messages: conversations
141 message_property_mappings:
142 role: from
143 content: value
144 - path: ToastyPigeon/some-rp-extended
145 # type: customchatml-regex
146 type: chat_template
147 field_messages: conversations
148 message_property_mappings:
149 role: from
150 content: value
151 roles_to_train: ["user","assistant"]
152 split: train[:30%]
153# - path: Alfitaria/rosier-inf
154# type: completion
155# split: train[70%:]
156 - path: allura-forge/koto-instruct-sft-nothink
157# type: customchatml-regex
158 type: chat_template
159# split: train[:50%]
160# field_messages: conversations
161# message_property_mappings:
162# role: from
163# content: value
164# - path: ToastyPigeon/SpringDragon
165# type: customcompletion-regex
166# type: completion
167# split: train
168# - path: ToastyPigeon/erotic-books-clone
169# type: customcompletion-regex
170# type: completion
171# split: train[:50%]
172# split: train[35%:45%]
173# - path: ToastyPigeon/tulu-mini
174# type: chat_template
175dataset_prepared_path: last_run_prepared
176
177
178# === Plugins ===
179plugins:
180 - axolotl.integrations.liger.LigerPlugin
181 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
182
183# === Hardware Optimization ===
184#gradient_checkpointing: true
185liger_rope: true
186liger_rms_norm: true
187liger_layer_norm: true
188liger_glu_activation: true
189#liger_fused_linear_cross_entropy: true
190cut_cross_entropy: true
191
192#deepspeed: ../axolotl/deepspeed_configs/zero2.json
193
194# === FSDP Config ===
195fsdp:
196 - full_shard
197 - auto_wrap
198fsdp_config:
199 fsdp_limit_all_gathers: true
200 fsdp_sync_module_states: true
201 fsdp_offload_params: true
202 fsdp_activation_checkpointing: true
203 fsdp_use_orig_params: true
204 fsdp_cpu_ram_efficient_loading: true
205 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
206 fsdp_transformer_layer_cls_to_wrap: ApertusDecoderLayer
207 fsdp_state_dict_type: FULL_STATE_DICT
208 fsdp_sharding_strategy: FULL_SHARD
209#fsdp_stage: 2
210#fsdp_final_state_dict_type: FULL_STATE_DICT
211
212# === Checkpointing ===
213#save_steps: 2
214saves_per_epoch: 4
215save_total_limit: 4
216
217# === Advanced Settings ===
218bf16: true
219flash_attention: true
220train_on_inputs: false
221group_by_length: false
222save_safetensors: true
223logging_steps: 1
224seed: 420
225gc_steps: 10
226| Training Loss | Epoch | Step | Validation Loss | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 1.4636 | 6.87 | 6.87 | 8.13 |
| 1.2677 | 0.1020 | 38 | 1.3280 | 6.89 | 6.88 | 8.18 |
| 1.1286 | 0.2041 | 76 | 1.2605 | 6.89 | 6.88 | 8.18 |
| 1.159 | 0.3061 | 114 | 1.2275 | 6.89 | 6.88 | 8.18 |
| 1.0281 | 0.4081 | 152 | 1.2122 | 6.89 | 6.88 | 8.18 |
| 1.0781 | 0.5102 | 190 | 1.2033 | 6.89 | 6.88 | 8.18 |
| 1.0296 | 0.6122 | 228 | 1.1976 | 6.89 | 6.88 | 8.18 |
| 1.0756 | 0.7142 | 266 | 1.1939 | 6.89 | 6.88 | 8.18 |
| 1.1134 | 0.8162 | 304 | 1.1921 | 6.89 | 6.88 | 8.18 |
| 1.0437 | 0.9183 | 342 | 1.1911 | 6.89 | 6.88 | 8.18 |