Views
No views yet
0.13.0.dev01# === Model Configuration ===
2base_model: NewEden/Apertus-8B-2509-patched-chatML
3load_in_8bit: false
4load_in_4bit: false
5
6# === HF Configuration ===
7#hub_model_id: ToastyPigeon/muse-marvin-32k-lora-2
8#hub_strategy: "every_save"
9output_dir: apertus-v2/embedding-trained-2ep
10
11# === Wandb Tracking ===
12wandb_project: ApertusV2
13# wandb_entity: [WANDB_ENTITY]
14wandb_name: embeddings-2ep
15
16# === Training Setup ===
17num_epochs: 2
18micro_batch_size: 1
19gradient_accumulation_steps: 4
20sequence_len: 4096
21#sequence_parallel_degree: 2
22#heads_k_stride: 1
23sample_packing: true
24#pad_to_sequence_len: true
25#temperature: 0.7
26#max_steps: 10
27# === Evaluation ===
28val_set_size: 0.025
29evals_per_epoch: 10
30#eval_steps: 20
31#max_steps: 60
32#eval_table_size:
33eval_max_new_tokens: 128
34#eval_sample_packing: true
35#eval_strategy: "no"
36
37# === LoRA Configuration ===
38adapter:
39lora_model_dir:
40lora_r:
41lora_alpha:
42lora_dropout:
43lora_target_linear:
44lora_target_modules:
45# - up_proj
46# - down_proj
47# - gate_proj
48# - q_proj
49# - v_proj
50# - k_proj
51# - o_proj
52# - input_layernorm
53# - post_attention_layernorm
54# - embed_tokens
55# - lm_head
56
57lora_fan_in_fan_out:
58#peft_use_rslora: true
59lora_modules_to_save:
60# - embed_tokens
61# - lm_head
62#fix_untrained_tokens: true
63#lora_mlp_kernel: true
64#lora_qkv_kernel: true
65#lora_o_kernel: true
66unfrozen_parameters:
67 - embed_tokens
68 - lm_head
69# === Hyperparameter Configuration ===
70#optimizer: apollo_adamw_layerwise
71#warmup_steps: 0
72warmup_ratio: 0.025
73optimizer: adamw_torch_fused
74#optimizer: paged_adamw_8bit
75#optim_args:
76# enable_stochastic_rounding: true
77# enable_cautious: true
78# enable_8bit: true
79# Apollo-mini configuration:
80#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
81# Regular Apollo configuration:
82# optim_args:
83#optim_target_modules: all_linear
84learning_rate: 5e-5
85lr_scheduler: cosine
86#cosine_min_lr_ratio: 0.2
87#lr_scheduler: cosine_with_min_lr
88#lr_scheduler_kwargs:
89# cosine_min_lr: 1e-6
90weight_decay: 0.01
91max_grad_norm: 1.0
92#warmup_steps: 0
93#warmup_ratio: 0.025
94
95
96# === Data Configuration ===
97#
98#chat_template: jinja
99chat_template: chatml
100special_tokens:
101# eos_token: "<|im_end|>"
102# eos_token: "</s>"
103#tokenizer_use_mistral_common: true
104shuffle_merged_datasets: true
105datasets:
106# - path: grimulkan/LimaRP-augmented
107# type: chat_template
108# field_messages: conversations
109# message_property_mappings:
110# role: from
111# content: value
112# - path: allenai/tulu-3-sft-personas-instruction-following
113# type: chat_template
114# split: train[:10%]
115# - path: ToastyPigeon/mixed-medical-reasoning-formatted
116# type: chat_template
117# data_files: mixed-medical-thinking.json
118# split: train[:10%]
119# - path: ToastyPigeon/steve-and-marvin
120# type: completion
121# data_files: marvin.json
122# - path: ToastyPigeon/kimi-stories-completion
123# type: completion
124# - path: ToastyPigeon/new-story-dataset
125 # type: customcompletion-regex
126# type: completion
127# data_files: new-story-dataset-v2.json
128# - path: allura-org/fujin-instruct-v2
129# type: customchatml-regex
130# type: chat_template
131# field_messages: conversations
132# message_property_mappings:
133# role: from
134# content: value
135# - path: ToastyPigeon/some-rp-extended
136 # type: customchatml-regex
137# type: chat_template
138# field_messages: conversations
139# message_property_mappings:
140# role: from
141# content: value
142# roles_to_train: ["user","assistant"]
143 - path: allura-forge/koto-instruct-sft-nothink
144# type: customchatml-regex
145 type: chat_template
146# split: train[:50%]
147# field_messages: conversations
148# message_property_mappings:
149# role: from
150# content: value
151# - path: ToastyPigeon/SpringDragon
152# type: customcompletion-regex
153# type: completion
154# split: train
155# - path: ToastyPigeon/some-erotica
156# type: customcompletion-regex
157# type: completion
158# split: train[:10%]
159# - path: ToastyPigeon/tulu-mini
160# type: chat_template
161dataset_prepared_path: last_run_prepared
162
163
164# === Plugins ===
165plugins:
166 - axolotl.integrations.liger.LigerPlugin
167 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
168
169# === Hardware Optimization ===
170#gradient_checkpointing: true
171liger_rope: true
172liger_rms_norm: true
173liger_layer_norm: true
174liger_glu_activation: true
175#liger_fused_linear_cross_entropy: true
176cut_cross_entropy: true
177
178#deepspeed: ../axolotl/deepspeed_configs/zero2.json
179
180# === FSDP Config ===
181fsdp:
182 - full_shard
183 - auto_wrap
184fsdp_config:
185 fsdp_limit_all_gathers: true
186 fsdp_sync_module_states: true
187 fsdp_offload_params: true
188 fsdp_activation_checkpointing: true
189 fsdp_use_orig_params: true
190 fsdp_cpu_ram_efficient_loading: true
191 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
192 fsdp_transformer_layer_cls_to_wrap: ApertusDecoderLayer
193 fsdp_state_dict_type: FULL_STATE_DICT
194 fsdp_sharding_strategy: FULL_SHARD
195
196# === Checkpointing ===
197#save_steps: 10
198saves_per_epoch: 1
199save_total_limit: 1
200
201# === Advanced Settings ===
202bf16: auto
203flash_attention: true
204train_on_inputs: false
205group_by_length: false
206save_safetensors: true
207logging_steps: 1
208| Training Loss | Epoch | Step | Validation Loss | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 1.1357 | 6.25 | 5.32 | 12.43 |
| 1.2319 | 0.1002 | 87 | 1.1015 | 5.33 | 5.33 | 18.79 |
| 0.9188 | 0.2003 | 174 | 1.0660 | 5.33 | 5.33 | 18.79 |
| 0.9956 | 0.3005 | 261 | 1.0509 | 5.33 | 5.33 | 18.79 |
| 1.0228 | 0.4007 | 348 | 1.0405 | 5.33 | 5.33 | 18.79 |
| 1.1445 | 0.5009 | 435 | 1.0353 | 5.33 | 5.33 | 18.79 |
| 0.9755 | 0.6010 | 522 | 1.0302 | 5.33 | 5.33 | 18.79 |
| 1.0101 | 0.7012 | 609 | 1.0275 | 5.33 | 5.33 | 18.79 |
| 0.9641 | 0.8014 | 696 | 1.0244 | 5.33 | 5.33 | 18.79 |
| 1.1194 | 0.9016 | 783 | 1.0215 | 5.33 | 5.33 | 18.79 |
| 1.1722 | 1.0012 | 870 | 1.0188 | 5.33 | 5.33 | 18.79 |
| 1.1047 | 1.1013 | 957 | 1.0171 | 5.33 | 5.33 | 18.79 |
| 0.9053 | 1.2015 | 1044 | 1.0152 | 5.33 | 5.33 | 18.79 |
| 0.927 | 1.3017 | 1131 | 1.0139 | 5.33 | 5.33 | 18.79 |
| 1.0436 | 1.4018 | 1218 | 1.0123 | 5.33 | 5.33 | 18.79 |
| 0.9647 | 1.5020 | 1305 | 1.0114 | 5.33 | 5.33 | 18.79 |
| 1.0689 | 1.6022 | 1392 | 1.0105 | 5.33 | 5.33 | 18.79 |
| 1.0046 | 1.7024 | 1479 | 1.0100 | 5.33 | 5.33 | 18.79 |
| 0.9518 | 1.8025 | 1566 | 1.0097 | 5.33 | 5.33 | 18.79 |
| 0.9851 | 1.9027 | 1653 | 1.0096 | 5.33 | 5.33 | 18.79 |