Views
No views yet
0.12.21# === Model Configuration ===
2base_model: Columbidae/apertus-12b-chatml-untrained
3trust_remote_code: true
4load_in_8bit: false
5load_in_4bit: false
6
7# === HF Configuration ===
8hub_model_id: allura-forge/apertus-12b-cpt-attempt
9hub_strategy: "every_save"
10output_dir: ckpts
11
12# === Wandb Tracking ===
13wandb_project: ApertusV2
14# wandb_entity: [WANDB_ENTITY]
15wandb_name: 12b-cpt-part1
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 ===
29#val_set_size: 0.025
30#evals_per_epoch: 10
31#eval_steps: 20
32#max_steps: 60
33#eval_table_size:
34#eval_max_new_tokens: 128
35#eval_sample_packing: true
36eval_strategy: "no"
37
38# === LoRA Configuration ===
39adapter:
40lora_model_dir:
41lora_r: 128
42lora_alpha: 16
43lora_dropout: 0.05
44lora_target_linear: true
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:
59peft_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
77#optimizer: adamw_torch_fused
78optimizer: 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: 1e-5
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[:20%]
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/some-erotica
132 # type: customcompletion-regex
133 type: completion
134 split: train[50%:65%]
135# data_files: new-story-dataset-v2.json
136# - path: allura-org/fujin-instruct-v2
137# type: customchatml-regex
138# type: chat_template
139# field_messages: conversations
140# message_property_mappings:
141# role: from
142# content: value
143# - path: ToastyPigeon/some-rp-extended
144 # type: customchatml-regex
145# type: chat_template
146# field_messages: conversations
147# message_property_mappings:
148# role: from
149# content: value
150# roles_to_train: ["user","assistant"]
151 - path: Alfitaria/rosier-inf
152 type: completion
153 split: train[:20%]
154# - path: allura-forge/koto-instruct-sft-nothink
155# type: customchatml-regex
156# type: chat_template
157# split: train[:50%]
158# field_messages: conversations
159# message_property_mappings:
160# role: from
161# content: value
162 - path: ToastyPigeon/SpringDragon
163# type: customcompletion-regex
164 type: completion
165 split: train
166 - path: ToastyPigeon/erotic-books-clone
167# type: customcompletion-regex
168 type: completion
169 split: train[:20%]
170# split: train[35%:45%]
171# - path: ToastyPigeon/tulu-mini
172# type: chat_template
173dataset_prepared_path: last_run_prepared
174
175
176# === Plugins ===
177plugins:
178 - axolotl.integrations.liger.LigerPlugin
179 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
180
181# === Hardware Optimization ===
182gradient_checkpointing: true
183liger_rope: true
184liger_rms_norm: true
185liger_layer_norm: true
186liger_glu_activation: true
187#liger_fused_linear_cross_entropy: true
188cut_cross_entropy: true
189
190#deepspeed: ../axolotl/deepspeed_configs/zero2.json
191
192# === FSDP Config ===
193#fsdp:
194# - full_shard
195# - auto_wrap
196#fsdp_config:
197# fsdp_limit_all_gathers: true
198# fsdp_sync_module_states: true
199# fsdp_offload_params: true
200# fsdp_activation_checkpointing: true
201# fsdp_use_orig_params: true
202# fsdp_cpu_ram_efficient_loading: true
203# fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
204# fsdp_transformer_layer_cls_to_wrap: ApertusDecoderLayer
205# fsdp_state_dict_type: FULL_STATE_DICT
206# fsdp_sharding_strategy: FULL_SHARD
207#fsdp_stage: 2
208#fsdp_final_state_dict_type: FULL_STATE_DICT
209
210# === Checkpointing ===
211#save_steps: 2
212saves_per_epoch: 10
213save_total_limit: 1
214
215# === Advanced Settings ===
216bf16: auto
217flash_attention: true
218train_on_inputs: false
219group_by_length: false
220save_safetensors: true
221logging_steps: 1
222seed: 420
223gc_steps: 10
224
225