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-lora-2
12hub_strategy: "every_save"
13output_dir: ckpts-mmarv
14
15# === Training Setup ===
16num_epochs: 1
17micro_batch_size: 1
18gradient_accumulation_steps: 4
19sequence_len: 16384
20#sequence_parallel_degree: 2
21#heads_k_stride: 1
22sample_packing: true
23pad_to_sequence_len: true
24#temperature: 0.7
25#max_steps: 10
26# === Evaluation ===
27val_set_size: 0.025
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: qlora
38lora_model_dir:
39lora_r: 32
40lora_alpha: 32
41lora_dropout: 0.1
42lora_target_linear: true
43lora_target_modules:
44# - q_proj
45# - v_proj
46# - k_proj
47# - o_proj
48lora_fan_in_fan_out:
49peft_use_rslora: false
50#lora_modules_to_save:
51# - embed_tokens
52# - lm_head
53#fix_untrained_tokens: true
54#lora_mlp_kernel: true
55#lora_qkv_kernel: true
56#lora_o_kernel: true
57
58# === Hyperparameter Configuration ===
59#optimizer: apollo_adamw_layerwise
60#warmup_steps: 0
61warmup_ratio: 0.025
62optimizer: adamw_torch_fused
63#optimizer: paged_adamw_8bit
64#optim_args:
65# enable_stochastic_rounding: true
66# enable_cautious: true
67# enable_8bit: true
68# Apollo-mini configuration:
69#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
70# Regular Apollo configuration:
71# optim_args:
72#optim_target_modules: all_linear
73learning_rate: 1e-5
74lr_scheduler: cosine
75#cosine_min_lr_ratio: 0.2
76#lr_scheduler: cosine_with_min_lr
77#lr_scheduler_kwargs:
78# cosine_min_lr: 1e-6
79weight_decay: 0.01
80max_grad_norm: 1.0
81#warmup_steps: 0
82#warmup_ratio: 0.025
83
84
85# === Data Configuration ===
86#
87#chat_template: jinja
88#chat_template: chatml
89special_tokens:
90# eos_token: "<|im_end|>"
91# eos_token: "</s>"
92#tokenizer_use_mistral_common: true
93shuffle_merged_datasets: true
94datasets:
95 - path: grimulkan/LimaRP-augmented
96 type: chat_template
97 field_messages: conversations
98 message_property_mappings:
99 role: from
100 content: value
101# - path: allenai/tulu-3-sft-personas-instruction-following
102# type: chat_template
103# split: train[:10%]
104# - path: ToastyPigeon/mixed-medical-reasoning-formatted
105# type: chat_template
106# data_files: mixed-medical-thinking.json
107# split: train[:10%]
108 - path: ToastyPigeon/steve-and-marvin
109 type: completion
110 data_files: marvin.json
111 - path: ToastyPigeon/kimi-stories-completion
112 type: completion
113# - path: ToastyPigeon/new-story-dataset
114 # type: customcompletion-regex
115# type: completion
116# data_files: new-story-dataset-v2.json
117# - path: allura-org/fujin-instruct-v2
118# type: customchatml-regex
119# type: chat_template
120# field_messages: conversations
121# message_property_mappings:
122# role: from
123# content: value
124# - path: ToastyPigeon/some-rp-extended
125 # type: customchatml-regex
126# type: chat_template
127# field_messages: conversations
128# message_property_mappings:
129# role: from
130# content: value
131# roles_to_train: ["user","assistant"]
132# - path: ToastyPigeon/gutenberg-sft
133# type: customchatml-regex
134# type: chat_template
135# field_messages: conversations
136# message_property_mappings:
137# role: from
138# content: value
139# - path: ToastyPigeon/SpringDragon
140# type: customcompletion-regex
141# type: completion
142# split: train
143# - path: ToastyPigeon/some-erotica
144# type: customcompletion-regex
145# type: completion
146# split: train[:10%]
147
148dataset_prepared_path: last_run_prepared
149
150
151# === Plugins ===
152plugins:
153 - axolotl.integrations.liger.LigerPlugin
154 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
155
156# === Hardware Optimization ===
157#gradient_checkpointing: true
158liger_rope: true
159liger_rms_norm: true
160liger_layer_norm: true
161liger_glu_activation: true
162#liger_fused_linear_cross_entropy: true
163cut_cross_entropy: true
164
165#deepspeed: ../axolotl/deepspeed_configs/zero3_bf16_cpuoffload_params.json
166
167# === FSDP Config ===
168fsdp:
169 - full_shard
170 - auto_wrap
171fsdp_config:
172 fsdp_limit_all_gathers: true
173 fsdp_sync_module_states: true
174 fsdp_offload_params: true
175 fsdp_activation_checkpointing: true
176 fsdp_use_orig_params: false
177 fsdp_cpu_ram_efficient_loading: true
178 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
179 fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
180 fsdp_state_dict_type: FULL_STATE_DICT
181 fsdp_sharding_strategy: FULL_SHARD
182# fsdp_version: 2
183# === Wandb Tracking ===
184wandb_project: MuseMarvin
185# wandb_entity: [WANDB_ENTITY]
186wandb_name: r32-qlora-all-linear
187
188# === Checkpointing ===
189#save_steps: 10
190saves_per_epoch: 10
191save_total_limit: 1
192
193# === Advanced Settings ===
194bf16: auto
195flash_attention: true
196train_on_inputs: false
197group_by_length: false
198save_safetensors: true
199logging_steps: 1
200gc_steps: 10
201seed: 69
202
203
204
205| 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.5701 | 0.1032 | 24 | 2.4684 | 5.33 | 5.32 | 7.1 |
| 2.4005 | 0.2065 | 48 | 2.4408 | 5.33 | 5.32 | 7.1 |
| 2.358 | 0.3097 | 72 | 2.4302 | 5.33 | 5.32 | 7.1 |
| 2.2869 | 0.4129 | 96 | 2.4240 | 5.33 | 5.32 | 7.1 |
| 2.4939 | 0.5161 | 120 | 2.4198 | 5.33 | 5.32 | 7.1 |
| 2.6741 | 0.6194 | 144 | 2.4175 | 5.33 | 5.32 | 7.1 |
| 2.3114 | 0.7226 | 168 | 2.4160 | 5.33 | 5.32 | 7.1 |
| 2.3292 | 0.8258 | 192 | 2.4153 | 5.33 | 5.32 | 7.1 |
| 2.5872 | 0.9290 | 216 | 2.4151 | 5.33 | 5.32 | 7.1 |