Views
No views yet
0.11.0.dev01# === Model Configuration ===
2base_model: unsloth/gemma-3-270m-it
3load_in_8bit: false
4load_in_4bit: false
5
6# === HF Configuration ===
7hub_model_id: allura-forge/micro-glitter
8hub_strategy: "checkpoint"
9output_dir: /workspace/aibox-standalone-pool/axolotl/lilglitter-ckpts
10
11# === Training Setup ===
12num_epochs: 2
13micro_batch_size: 4
14gradient_accumulation_steps: 8
15sequence_len: 8192
16sample_packing: true
17pad_to_sequence_len: true
18#max_steps: 10
19# === Evaluation ===
20val_set_size: 0.05
21evals_per_epoch: 10
22#eval_steps: 20
23#max_steps: 60
24#eval_table_size:
25eval_max_new_tokens: 128
26eval_sample_packing: true
27#eval_strategy: "no"
28
29# === LoRA Configuration ===
30#adapter: qlora
31#lora_model_dir:
32#lora_r: 128
33#lora_alpha: 16
34#lora_dropout: 0.25
35#lora_target_linear: true
36#lora_target_modules:
37# - embed_tokens
38# - lm_head
39lora_fan_in_fan_out:
40lora_target_modules:
41#peft_use_rslora: true
42lora_modules_to_save:
43# - embed_tokens
44# - lm_head
45#fix_untrained_tokens: true
46#lora_mlp_kernel: true
47#lora_qkv_kernel: true
48#lora_o_kernel: true
49
50# === Hyperparameter Configuration ===
51#optimizer: apollo_adamw_layerwise
52warmup_steps: 0
53optimizer: adamw_torch_fused
54#optimizer: paged_adamw_8bit
55#optim_args:
56# enable_stochastic_rounding: true
57# enable_cautious: true
58# enable_8bit: true
59# Apollo-mini configuration:
60#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
61# Regular Apollo configuration:
62# optim_args:
63#optim_target_modules: all_linear
64learning_rate: 1e-5
65lr_scheduler: cosine
66#cosine_min_lr_ratio: 0.2
67#lr_scheduler: cosine_with_min_lr
68#lr_scheduler_kwargs:
69# cosine_min_lr: 1e-6
70weight_decay: 0.01
71max_grad_norm: 2.0
72#warmup_steps: 0
73#warmup_ratio: 0.025
74
75
76# === Data Configuration ===
77#
78#chat_template: jinja
79#chat_template_jinja: "{% for message in messages %}{% if not loop.first %}{{' \n\n' }}{% endif %}{% if message['role'] == 'system' %}{{ '### System:\n' + message['content'].strip() }}{% elif message['role'] == 'user' %}{{ '### Instruction:\n' + message['content'].strip() }}{% elif message['role'] == 'assistant' %}{{ '### Response:\n' + message['content'].strip() + eos_token }}{% endif %}{% endfor %}"
80
81#chat_template_jinja: "{%- set default_system_message = \"You are Mistral Small 3, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris. You obediently fulfill the user's requests.\" %}\n\n{{- bos_token }}\n\n{%- if messages[0]['role'] == 'system' %}\n {%- if messages[0]['content'] is string %}\n {%- set system_message = messages[0]['content'] %}\n {%- else %}\n {%- set system_message = messages[0]['content'][0]['text'] %}\n {%- endif %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set system_message = default_system_message %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{{- '[SYSTEM_PROMPT]' + system_message + '[/SYSTEM_PROMPT]' }}\n\n{%- for message in loop_messages %}\n {%- if message['role'] == 'user' %}\n {%- if message['content'] is string %}\n {{- '[INST]' + message['content'] + '[/INST]' }}\n {%- else %}\n {{- '[INST]' }}\n {%- for bl (line truncated to 1000 characters)
82#chat_template: chatml
83#special_tokens:
84# eos_token: "<|im_end|>"
85# eos_token: "</s>"
86#tokenizer_use_mistral_common: true
87shuffle_merged_datasets: true
88datasets:
89 - path: allura-org/EU01-S2
90 type: chat_template
91 field_messages: conversations
92 message_property_mappings:
93 role: from
94 content: value
95 - path: allenai/tulu-3-sft-personas-instruction-following
96 type: chat_template
97 split: train[:10%]
98 - path: ToastyPigeon/mixed-medical-reasoning-formatted
99 type: chat_template
100 data_files: mixed-medical-thinking.json
101 split: train[:10%]
102 - path: ToastyPigeon/steve-and-marvin
103 type: completion
104 data_files: marvin.json
105 - path: ToastyPigeon/kimi-stories-instruct
106 type: chat_template
107 - path: ToastyPigeon/new-story-dataset
108 # type: customcompletion-regex
109 type: completion
110 data_files: new-story-dataset-v2.json
111 - path: allura-org/fujin-instruct-v2
112# type: customchatml-regex
113 type: chat_template
114 field_messages: conversations
115 message_property_mappings:
116 role: from
117 content: value
118# - path: ToastyPigeon/some-rp-extended
119 # type: customchatml-regex
120# type: chat_template
121# field_messages: conversations
122# message_property_mappings:
123# role: from
124# content: value
125# roles_to_train: ["user","assistant"]
126 - path: ToastyPigeon/gutenberg-sft
127# type: customchatml-regex
128 type: chat_template
129 field_messages: conversations
130 message_property_mappings:
131 role: from
132 content: value
133 - path: ToastyPigeon/SpringDragon
134# type: customcompletion-regex
135 type: completion
136 split: train
137 - path: ToastyPigeon/some-erotica
138# type: customcompletion-regex
139 type: completion
140 split: train[:10%]
141
142dataset_prepared_path: last_run_prepared
143
144
145# === Plugins ===
146plugins:
147 - axolotl.integrations.liger.LigerPlugin
148 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
149
150# === Hardware Optimization ===
151#gradient_checkpointing: offload
152#gradient_checkpointing_kwargs:
153# use_reentrant: false
154liger_rope: true
155liger_rms_norm: true
156liger_layer_norm: true
157liger_glu_activation: true
158#liger_fused_linear_cross_entropy: true
159cut_cross_entropy: true
160
161#deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
162
163# === FSDP Config ===
164#fsdp:
165# - full_shard
166# - auto_wrap
167#fsdp_config:
168# fsdp_limit_all_gathers: true
169# fsdp_sync_module_states: true
170# fsdp_offload_params: true
171# fsdp_activation_checkpointing: true
172# fsdp_use_orig_params: false
173# fsdp_cpu_ram_efficient_loading: true
174# fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
175# fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
176# fsdp_state_dict_type: FULL_STATE_DICT
177# fsdp_sharding_strategy: FULL_SHARD
178# fsdp_version: 2
179# === Wandb Tracking ===
180wandb_project: TinyGemma
181# wandb_entity: [WANDB_ENTITY]
182# wandb_name: [WANDB_RUN_NAME]
183
184# === Checkpointing ===
185#save_steps: 10
186saves_per_epoch: 10
187save_total_limit: 1
188
189# === Advanced Settings ===
190bf16: auto
191flash_attention: true
192train_on_inputs: false
193group_by_length: false
194save_safetensors: true
195logging_steps: 1
196gc_steps: 10
197seed: 69
198
199
200| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 3.8582 |
| 3.4802 | 0.1008 | 15 | 3.5118 |
| 3.4608 | 0.2017 | 30 | 3.4890 |
| 3.5272 | 0.3025 | 45 | 3.5189 |
| 3.559 | 0.4034 | 60 | 3.5753 |
| 3.5817 | 0.5042 | 75 | 3.6121 |
| 3.6349 | 0.6050 | 90 | 3.6471 |
| 3.68 | 0.7059 | 105 | 3.6721 |
| 3.6597 | 0.8067 | 120 | 3.6970 |
| 3.6462 | 0.9076 | 135 | 3.7068 |
| 3.7009 | 1.0067 | 150 | 3.7213 |
| 3.6717 | 1.1076 | 165 | 3.7313 |
| 3.7631 | 1.2084 | 180 | 3.7338 |
| 3.7535 | 1.3092 | 195 | 3.7346 |
| 3.668 | 1.4101 | 210 | 3.7375 |
| 3.679 | 1.5109 | 225 | 3.7383 |
| 3.6539 | 1.6118 | 240 | 3.7386 |
| 3.6547 | 1.7126 | 255 | 3.7386 |
| 3.7533 | 1.8134 | 270 | 3.7400 |
| 3.6983 | 1.9143 | 285 | 3.7387 |