Views
No views yet
0.10.0.dev01# === Model Configuration ===
2base_model: mistralai/Mistral-Nemo-Base-2407
3load_in_8bit: false
4load_in_4bit: true
5
6# === HF Configuration ===
7hub_model_id: ToastyPigeon/nemo-kink-lora
8hub_strategy: "checkpoint"
9
10# === Training Setup ===
11num_epochs: 1
12micro_batch_size: 2
13gradient_accumulation_steps: 2
14sequence_len: 8192
15#sequence_parallel_degree: 2
16#heads_k_stride: 1
17sample_packing: true
18pad_to_sequence_len: true
19#max_steps: 10
20# === Evaluation ===
21val_set_size: 0.05
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: 128
34lora_alpha: 16
35lora_dropout: 0.1
36lora_target_linear: true
37lora_fan_in_fan_out:
38lora_target_modules:
39peft_use_rslora: true
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: 1e-5
63lr_scheduler: rex
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: Alfitaria/synthkink-combined-completions
85 type: completion
86 - path: Alfitaria/bodinforg-completions
87 type: completion
88
89dataset_prepared_path: last_run_prepared
90
91
92# === Plugins ===
93plugins:
94 - axolotl.integrations.liger.LigerPlugin
95 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
96
97# === Hardware Optimization ===
98#gradient_checkpointing: offload
99#gradient_checkpointing_kwargs:
100# use_reentrant: false
101liger_rope: true
102liger_rms_norm: true
103liger_layer_norm: true
104liger_glu_activation: true
105#liger_fused_linear_cross_entropy: true
106cut_cross_entropy: true
107
108#deepspeed: /workspace/axolotl/deepspeed_configs/zero2.json
109
110# === FSDP Config ===
111fsdp:
112 - full_shard
113 - auto_wrap
114fsdp_config:
115 fsdp_limit_all_gathers: true
116 fsdp_sync_module_states: true
117 fsdp_offload_params: true
118 fsdp_activation_checkpointing: true
119 fsdp_use_orig_params: false
120 fsdp_cpu_ram_efficient_loading: true
121 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
122 fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
123 fsdp_state_dict_type: FULL_STATE_DICT
124 fsdp_sharding_strategy: FULL_SHARD
125# === Wandb Tracking ===
126wandb_project: Nemo
127# wandb_entity: [WANDB_ENTITY]
128# wandb_name: [WANDB_RUN_NAME]
129
130# === Checkpointing ===
131saves_per_epoch: 10
132save_total_limit: 1
133
134# === Advanced Settings ===
135output_dir: /workspace/aibox-standalone-pool/axolotl/nemo-writer-ckpts
136bf16: auto
137flash_attention: true
138train_on_inputs: false
139group_by_length: false
140save_safetensors: true
141logging_steps: 1
142gc_steps: 10
143seed: 69
144
145
146
147| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.5045 | 0.0055 | 1 | 1.5520 |
| 1.4399 | 0.1047 | 19 | 1.3974 |
| 1.3297 | 0.2094 | 38 | 1.3388 |
| 1.4392 | 0.3140 | 57 | 1.3054 |
| 1.2685 | 0.4187 | 76 | 1.2815 |
| 0.9801 | 0.5234 | 95 | 1.2641 |
| 1.1412 | 0.6281 | 114 | 1.2507 |
| 1.1564 | 0.7328 | 133 | 1.2393 |
| 1.1739 | 0.8375 | 152 | 1.2313 |
| 1.2154 | 0.9421 | 171 | 1.2252 |