Views
No views yet
0.11.0.dev01# === Model Configuration ===
2base_model: inflatebot/MN-12B-Mag-Mell-R1
3load_in_8bit: false
4load_in_4bit: true
5
6# === HF Configuration ===
7hub_model_id: ToastyPigeon/nemo-kimi-lora-2e
8hub_strategy: "checkpoint"
9
10# === Training Setup ===
11num_epochs: 2
12micro_batch_size: 1
13gradient_accumulation_steps: 2
14sequence_len: 32768
15sequence_parallel_degree: 2
16heads_k_stride: 1
17sample_packing: true
18pad_to_sequence_len: false
19#max_steps: 10
20# === Evaluation ===
21val_set_size: 0.01
22evals_per_epoch: 10
23#eval_steps: 20
24#max_steps: 60
25#eval_table_size:
26eval_max_new_tokens: 128
27eval_sample_packing: true
28#eval_strategy: "no"
29
30# === LoRA Configuration ===
31adapter: qlora
32lora_model_dir:
33lora_r: 32
34lora_alpha: 32
35lora_dropout: 0.1
36lora_target_linear: true
37lora_fan_in_fan_out:
38lora_target_modules:
39peft_use_rslora: false
40lora_modules_to_save:
41# - embed_tokens
42# - lm_head
43#fix_untrained_tokens: true
44#lora_mlp_kernel: true
45#lora_qkv_kernel: true
46#lora_o_kernel: true
47
48# === Hyperparameter Configuration ===
49#optimizer: apollo_adamw_layerwise
50warmup_steps: 0
51optimizer: adamw_torch_fused
52#optimizer: paged_adamw_8bit
53#optim_args:
54# enable_stochastic_rounding: true
55# enable_cautious: true
56# enable_8bit: true
57# Apollo-mini configuration:
58#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
59# Regular Apollo configuration:
60# optim_args:
61#optim_target_modules: all_linear
62learning_rate: 5e-6
63lr_scheduler: cosine
64#cosine_min_lr_ratio: 0.2
65#lr_scheduler: cosine_with_min_lr
66#lr_scheduler_kwargs:
67# cosine_min_lr: 1e-6
68weight_decay: 0.01
69max_grad_norm: 1.0
70#warmup_steps: 0
71#warmup_ratio: 0.025
72
73
74# === Data Configuration ===
75#chat_template: jinja
76#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)
77#chat_template: chatml
78special_tokens:
79 pad_token: "<pad>"
80
81#tokenizer_use_mistral_common: true
82shuffle_merged_datasets: true
83datasets:
84 - path: ToastyPigeon/steve-and-marvin
85 type: completion
86 data_files: marvin.json
87 - path: ToastyPigeon/kimi-stories-completion
88 type: completion
89 - path: Alfitaria/bodinforg-completions
90 type: completion
91dataset_prepared_path: last_run_prepared
92
93
94# === Plugins ===
95plugins:
96 - axolotl.integrations.liger.LigerPlugin
97 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
98
99# === Hardware Optimization ===
100#gradient_checkpointing: offload
101#gradient_checkpointing_kwargs:
102# use_reentrant: false
103liger_rope: true
104liger_rms_norm: true
105liger_layer_norm: true
106liger_glu_activation: true
107#liger_fused_linear_cross_entropy: true
108cut_cross_entropy: true
109
110#deepspeed: /workspace/axolotl/deepspeed_configs/zero2.json
111
112# === FSDP Config ===
113fsdp:
114 - full_shard
115 - auto_wrap
116fsdp_config:
117 fsdp_limit_all_gathers: true
118 fsdp_sync_module_states: true
119 fsdp_offload_params: true
120 fsdp_activation_checkpointing: true
121 fsdp_use_orig_params: false
122 fsdp_cpu_ram_efficient_loading: true
123 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
124 fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
125 fsdp_state_dict_type: FULL_STATE_DICT
126 fsdp_sharding_strategy: FULL_SHARD
127# === Wandb Tracking ===
128wandb_project: Nemo
129# wandb_entity: [WANDB_ENTITY]
130# wandb_name: [WANDB_RUN_NAME]
131
132# === Checkpointing ===
133saves_per_epoch: 10
134save_total_limit: 1
135
136# === Advanced Settings ===
137output_dir: /workspace/aibox-standalone-pool/axolotl/nemo-writer-ckpts-2e
138bf16: auto
139flash_attention: true
140train_on_inputs: false
141group_by_length: false
142save_safetensors: true
143logging_steps: 1
144gc_steps: 10
145seed: 69
146
147
148
149| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 2.9604 |
| 2.6808 | 0.1016 | 50 | 2.7132 |
| 3.1442 | 0.2033 | 100 | 2.6132 |
| 2.8972 | 0.3049 | 150 | 2.5786 |
| 2.4404 | 0.4065 | 200 | 2.5598 |
| 2.5215 | 0.5081 | 250 | 2.5512 |
| 2.5145 | 0.6098 | 300 | 2.5456 |
| 2.5293 | 0.7114 | 350 | 2.5412 |
| 2.5439 | 0.8130 | 400 | 2.5380 |
| 2.2925 | 0.9146 | 450 | 2.5342 |
| 2.4822 | 1.0163 | 500 | 2.5326 |
| 2.382 | 1.1179 | 550 | 2.5299 |
| 2.6777 | 1.2195 | 600 | 2.5282 |
| 2.5493 | 1.3211 | 650 | 2.5264 |
| 2.5682 | 1.4228 | 700 | 2.5257 |
| 2.4425 | 1.5244 | 750 | 2.5248 |
| 2.5204 | 1.6260 | 800 | 2.5243 |
| 2.5435 | 1.7276 | 850 | 2.5239 |
| 2.8078 | 1.8293 | 900 | 2.5237 |
| 2.8416 | 1.9309 | 950 | 2.5237 |