Views
No views yet
0.13.0.dev01# !pip install transformers==4.55.4
2# !pip install --no-deps trl==0.22.2
3# !pip install --no-build-isolation mamba_ssm==2.2.5
4# !pip install --no-build-isolation causal_conv1d==1.5.2
5# === Model Configuration ===
6base_model: LatitudeGames/Muse-12B
7load_in_8bit: false
8load_in_4bit: true
9
10# === HF Configuration ===
11hub_model_id: ToastyPigeon/muse-marvin-od-lora
12hub_strategy: "every_save"
13output_dir: ckpts-mmarv
14
15# === Wandb Tracking ===
16wandb_project: MuseMarvin
17# wandb_entity: [WANDB_ENTITY]
18wandb_name: r32-qlora-od
19
20# === Training Setup ===
21num_epochs: 1
22micro_batch_size: 1
23gradient_accumulation_steps: 4
24sequence_len: 16384
25#sequence_parallel_degree: 2
26#heads_k_stride: 1
27sample_packing: true
28pad_to_sequence_len: true
29#temperature: 0.7
30#max_steps: 10
31# === Evaluation ===
32val_set_size: 0.025
33evals_per_epoch: 10
34#eval_steps: 20
35#max_steps: 60
36#eval_table_size:
37eval_max_new_tokens: 128
38#eval_sample_packing: true
39#eval_strategy: "no"
40
41# === LoRA Configuration ===
42adapter: qlora
43lora_model_dir:
44lora_r: 32
45lora_alpha: 32
46lora_dropout: 0.1
47lora_target_linear:
48lora_target_modules:
49# - up_proj
50 - down_proj
51# - gate_proj
52# - q_proj
53# - v_proj
54# - k_proj
55 - o_proj
56lora_fan_in_fan_out:
57peft_use_rslora: false
58#lora_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
66# === Hyperparameter Configuration ===
67#optimizer: apollo_adamw_layerwise
68#warmup_steps: 0
69warmup_ratio: 0.025
70optimizer: adamw_torch_fused
71#optimizer: paged_adamw_8bit
72#optim_args:
73# enable_stochastic_rounding: true
74# enable_cautious: true
75# enable_8bit: true
76# Apollo-mini configuration:
77#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
78# Regular Apollo configuration:
79# optim_args:
80#optim_target_modules: all_linear
81learning_rate: 1e-5
82lr_scheduler: cosine
83#cosine_min_lr_ratio: 0.2
84#lr_scheduler: cosine_with_min_lr
85#lr_scheduler_kwargs:
86# cosine_min_lr: 1e-6
87weight_decay: 0.01
88max_grad_norm: 1.0
89#warmup_steps: 0
90#warmup_ratio: 0.025
91
92
93# === Data Configuration ===
94#
95#chat_template: jinja
96#chat_template: chatml
97special_tokens:
98# eos_token: "<|im_end|>"
99# eos_token: "</s>"
100#tokenizer_use_mistral_common: true
101shuffle_merged_datasets: true
102datasets:
103 - path: grimulkan/LimaRP-augmented
104 type: chat_template
105 field_messages: conversations
106 message_property_mappings:
107 role: from
108 content: value
109# - path: allenai/tulu-3-sft-personas-instruction-following
110# type: chat_template
111# split: train[:10%]
112# - path: ToastyPigeon/mixed-medical-reasoning-formatted
113# type: chat_template
114# data_files: mixed-medical-thinking.json
115# split: train[:10%]
116 - path: ToastyPigeon/steve-and-marvin
117 type: completion
118 data_files: marvin.json
119 - path: ToastyPigeon/kimi-stories-completion
120 type: completion
121# - path: ToastyPigeon/new-story-dataset
122 # type: customcompletion-regex
123# type: completion
124# data_files: new-story-dataset-v2.json
125# - path: allura-org/fujin-instruct-v2
126# type: customchatml-regex
127# type: chat_template
128# field_messages: conversations
129# message_property_mappings:
130# role: from
131# content: value
132# - path: ToastyPigeon/some-rp-extended
133 # type: customchatml-regex
134# type: chat_template
135# field_messages: conversations
136# message_property_mappings:
137# role: from
138# content: value
139# roles_to_train: ["user","assistant"]
140# - path: ToastyPigeon/gutenberg-sft
141# type: customchatml-regex
142# type: chat_template
143# field_messages: conversations
144# message_property_mappings:
145# role: from
146# content: value
147# - path: ToastyPigeon/SpringDragon
148# type: customcompletion-regex
149# type: completion
150# split: train
151# - path: ToastyPigeon/some-erotica
152# type: customcompletion-regex
153# type: completion
154# split: train[:10%]
155
156dataset_prepared_path: last_run_prepared
157
158
159# === Plugins ===
160plugins:
161 - axolotl.integrations.liger.LigerPlugin
162 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
163
164# === Hardware Optimization ===
165#gradient_checkpointing: true
166liger_rope: true
167liger_rms_norm: true
168liger_layer_norm: true
169liger_glu_activation: true
170#liger_fused_linear_cross_entropy: true
171cut_cross_entropy: true
172
173#deepspeed: ../axolotl/deepspeed_configs/zero3_bf16_cpuoffload_params.json
174
175# === FSDP Config ===
176fsdp:
177 - full_shard
178 - auto_wrap
179fsdp_config:
180 fsdp_limit_all_gathers: true
181 fsdp_sync_module_states: true
182 fsdp_offload_params: true
183 fsdp_activation_checkpointing: true
184 fsdp_use_orig_params: false
185 fsdp_cpu_ram_efficient_loading: true
186 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
187 fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
188 fsdp_state_dict_type: FULL_STATE_DICT
189 fsdp_sharding_strategy: FULL_SHARD
190# fsdp_version: 2
191
192# === Checkpointing ===
193#save_steps: 10
194saves_per_epoch: 10
195save_total_limit: 1
196
197# === Advanced Settings ===
198bf16: auto
199flash_attention: true
200train_on_inputs: false
201group_by_length: false
202save_safetensors: true
203logging_steps: 1
204gc_steps: 10
205seed: 69
206
207
208
209| Training Loss | Epoch | Step | Validation Loss | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 2.5323 | 8.04 | 6.73 | 8.36 |
| 2.5917 | 0.1032 | 24 | 2.4905 | 4.89 | 4.89 | 6.68 |
| 2.4128 | 0.2065 | 48 | 2.4525 | 4.89 | 4.89 | 6.68 |
| 2.3689 | 0.3097 | 72 | 2.4407 | 4.89 | 4.89 | 6.68 |
| 2.2965 | 0.4129 | 96 | 2.4342 | 4.89 | 4.89 | 6.68 |
| 2.5034 | 0.5161 | 120 | 2.4302 | 4.89 | 4.89 | 6.68 |
| 2.6843 | 0.6194 | 144 | 2.4278 | 4.89 | 4.89 | 6.68 |
| 2.3187 | 0.7226 | 168 | 2.4263 | 4.89 | 4.89 | 6.68 |
| 2.3404 | 0.8258 | 192 | 2.4257 | 4.89 | 4.89 | 6.68 |
| 2.5971 | 0.9290 | 216 | 2.4255 | 4.89 | 4.89 | 6.68 |