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