ToastyPigeon commited on
Commit
d5fc796
·
verified ·
1 Parent(s): 4760421

Training in progress, step 20

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: apache-2.0
4
+ base_model: mistralai/Mistral-Nemo-Base-2407
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ datasets:
9
+ - Alfitaria/synthkink-combined-completions
10
+ - Alfitaria/bodinforg-completions
11
+ model-index:
12
+ - name: nemo-kink-lora
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
20
+ <details><summary>See axolotl config</summary>
21
+
22
+ axolotl version: `0.10.0.dev0`
23
+ ```yaml
24
+ # === Model Configuration ===
25
+ base_model: mistralai/Mistral-Nemo-Base-2407
26
+ load_in_8bit: false
27
+ load_in_4bit: true
28
+
29
+ # === HF Configuration ===
30
+ hub_model_id: ToastyPigeon/nemo-kink-lora
31
+ hub_strategy: "checkpoint"
32
+
33
+ # === Training Setup ===
34
+ num_epochs: 1
35
+ micro_batch_size: 2
36
+ gradient_accumulation_steps: 2
37
+ sequence_len: 8192
38
+ #sequence_parallel_degree: 2
39
+ #heads_k_stride: 1
40
+ sample_packing: true
41
+ pad_to_sequence_len: true
42
+ #max_steps: 10
43
+ # === Evaluation ===
44
+ val_set_size: 0.05
45
+ evals_per_epoch: 10
46
+ #eval_steps: 20
47
+ #max_steps: 60
48
+ #eval_table_size:
49
+ eval_max_new_tokens: 128
50
+ eval_sample_packing: true
51
+ #eval_strategy: "no"
52
+
53
+ # === LoRA Configuration ===
54
+ adapter: qlora
55
+ lora_model_dir:
56
+ lora_r: 128
57
+ lora_alpha: 16
58
+ lora_dropout: 0.1
59
+ lora_target_linear: true
60
+ lora_fan_in_fan_out:
61
+ lora_target_modules:
62
+ peft_use_rslora: true
63
+ lora_modules_to_save:
64
+ # - embed_tokens
65
+ # - lm_head
66
+ #fix_untrained_tokens: true
67
+ #lora_mlp_kernel: true
68
+ #lora_qkv_kernel: true
69
+ #lora_o_kernel: true
70
+
71
+ # === Hyperparameter Configuration ===
72
+ #optimizer: apollo_adamw_layerwise
73
+ warmup_steps: 0
74
+ optimizer: adamw_torch_fused
75
+ #optimizer: paged_adamw_8bit
76
+ #optim_args:
77
+ # enable_stochastic_rounding: true
78
+ # enable_cautious: true
79
+ # enable_8bit: true
80
+ # Apollo-mini configuration:
81
+ #optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
82
+ # Regular Apollo configuration:
83
+ # optim_args:
84
+ #optim_target_modules: all_linear
85
+ learning_rate: 1e-5
86
+ lr_scheduler: rex
87
+ #cosine_min_lr_ratio: 0.2
88
+ #lr_scheduler: cosine_with_min_lr
89
+ #lr_scheduler_kwargs:
90
+ # cosine_min_lr: 1e-6
91
+ weight_decay: 0.01
92
+ max_grad_norm: 1.0
93
+ #warmup_steps: 0
94
+ #warmup_ratio: 0.025
95
+
96
+
97
+ # === Data Configuration ===
98
+ #chat_template: jinja
99
+ #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)
100
+ #chat_template: chatml
101
+ special_tokens:
102
+ pad_token: "<pad>"
103
+
104
+ #tokenizer_use_mistral_common: true
105
+ shuffle_merged_datasets: true
106
+ datasets:
107
+ - path: Alfitaria/synthkink-combined-completions
108
+ type: completion
109
+ - path: Alfitaria/bodinforg-completions
110
+ type: completion
111
+
112
+ dataset_prepared_path: last_run_prepared
113
+
114
+
115
+ # === Plugins ===
116
+ plugins:
117
+ - axolotl.integrations.liger.LigerPlugin
118
+ - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
119
+
120
+ # === Hardware Optimization ===
121
+ #gradient_checkpointing: offload
122
+ #gradient_checkpointing_kwargs:
123
+ # use_reentrant: false
124
+ liger_rope: true
125
+ liger_rms_norm: true
126
+ liger_layer_norm: true
127
+ liger_glu_activation: true
128
+ #liger_fused_linear_cross_entropy: true
129
+ cut_cross_entropy: true
130
+
131
+ #deepspeed: /workspace/axolotl/deepspeed_configs/zero2.json
132
+
133
+ # === FSDP Config ===
134
+ fsdp:
135
+ - full_shard
136
+ - auto_wrap
137
+ fsdp_config:
138
+ fsdp_limit_all_gathers: true
139
+ fsdp_sync_module_states: true
140
+ fsdp_offload_params: true
141
+ fsdp_activation_checkpointing: true
142
+ fsdp_use_orig_params: false
143
+ fsdp_cpu_ram_efficient_loading: true
144
+ fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
145
+ fsdp_transformer_layer_cls_to_wrap: MistralDecoderLayer
146
+ fsdp_state_dict_type: FULL_STATE_DICT
147
+ fsdp_sharding_strategy: FULL_SHARD
148
+ # === Wandb Tracking ===
149
+ wandb_project: Nemo
150
+ # wandb_entity: [WANDB_ENTITY]
151
+ # wandb_name: [WANDB_RUN_NAME]
152
+
153
+ # === Checkpointing ===
154
+ saves_per_epoch: 10
155
+ save_total_limit: 1
156
+
157
+ # === Advanced Settings ===
158
+ output_dir: /workspace/aibox-standalone-pool/axolotl/nemo-writer-ckpts
159
+ bf16: auto
160
+ flash_attention: true
161
+ train_on_inputs: false
162
+ group_by_length: false
163
+ save_safetensors: true
164
+ logging_steps: 1
165
+ gc_steps: 10
166
+ seed: 69
167
+
168
+
169
+
170
+
171
+ ```
172
+
173
+ </details><br>
174
+
175
+ # nemo-kink-lora
176
+
177
+ This model is a fine-tuned version of [mistralai/Mistral-Nemo-Base-2407](https://huggingface.co/mistralai/Mistral-Nemo-Base-2407) on the Alfitaria/synthkink-combined-completions and the Alfitaria/bodinforg-completions datasets.
178
+ It achieves the following results on the evaluation set:
179
+ - Loss: 1.2252
180
+
181
+ ## Model description
182
+
183
+ More information needed
184
+
185
+ ## Intended uses & limitations
186
+
187
+ More information needed
188
+
189
+ ## Training and evaluation data
190
+
191
+ More information needed
192
+
193
+ ## Training procedure
194
+
195
+ ### Training hyperparameters
196
+
197
+ The following hyperparameters were used during training:
198
+ - learning_rate: 1e-05
199
+ - train_batch_size: 2
200
+ - eval_batch_size: 2
201
+ - seed: 69
202
+ - distributed_type: multi-GPU
203
+ - num_devices: 2
204
+ - gradient_accumulation_steps: 2
205
+ - total_train_batch_size: 8
206
+ - total_eval_batch_size: 4
207
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
208
+ - lr_scheduler_type: cosine
209
+ - lr_scheduler_warmup_steps: 5
210
+ - training_steps: 181
211
+
212
+ ### Training results
213
+
214
+ | Training Loss | Epoch | Step | Validation Loss |
215
+ |:-------------:|:------:|:----:|:---------------:|
216
+ | 1.5045 | 0.0055 | 1 | 1.5520 |
217
+ | 1.4399 | 0.1047 | 19 | 1.3974 |
218
+ | 1.3297 | 0.2094 | 38 | 1.3388 |
219
+ | 1.4392 | 0.3140 | 57 | 1.3054 |
220
+ | 1.2685 | 0.4187 | 76 | 1.2815 |
221
+ | 0.9801 | 0.5234 | 95 | 1.2641 |
222
+ | 1.1412 | 0.6281 | 114 | 1.2507 |
223
+ | 1.1564 | 0.7328 | 133 | 1.2393 |
224
+ | 1.1739 | 0.8375 | 152 | 1.2313 |
225
+ | 1.2154 | 0.9421 | 171 | 1.2252 |
226
+
227
+
228
+ ### Framework versions
229
+
230
+ - PEFT 0.15.2
231
+ - Transformers 4.51.3
232
+ - Pytorch 2.7.0+cu128
233
+ - Datasets 3.5.1
234
+ - Tokenizers 0.21.1
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-Nemo-Base-2407",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.1,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 128,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "q_proj",
28
+ "up_proj",
29
+ "k_proj",
30
+ "v_proj",
31
+ "gate_proj",
32
+ "down_proj",
33
+ "o_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": true
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5318d544f6a8e7e321d2241ec5d6f842796e51c11af790b2fa50cc037bd73dc
3
+ size 1824599104
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MistralForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "head_dim": 128,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 5120,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 14336,
13
+ "max_position_embeddings": 131072,
14
+ "model_type": "mistral",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 40,
17
+ "num_key_value_heads": 8,
18
+ "quantization_config": {
19
+ "_load_in_4bit": true,
20
+ "_load_in_8bit": false,
21
+ "bnb_4bit_compute_dtype": "bfloat16",
22
+ "bnb_4bit_quant_storage": "bfloat16",
23
+ "bnb_4bit_quant_type": "nf4",
24
+ "bnb_4bit_use_double_quant": true,
25
+ "llm_int8_enable_fp32_cpu_offload": false,
26
+ "llm_int8_has_fp16_weight": false,
27
+ "llm_int8_skip_modules": null,
28
+ "llm_int8_threshold": 6.0,
29
+ "load_in_4bit": true,
30
+ "load_in_8bit": false,
31
+ "quant_method": "bitsandbytes"
32
+ },
33
+ "rms_norm_eps": 1e-05,
34
+ "rope_theta": 1000000.0,
35
+ "sliding_window": null,
36
+ "tie_word_embeddings": false,
37
+ "torch_dtype": "bfloat16",
38
+ "transformers_version": "4.52.4",
39
+ "use_cache": false,
40
+ "vocab_size": 131072
41
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0240ce510f08e6c2041724e9043e33be9d251d1e4a4d94eb68cd47b954b61d2
3
+ size 17078292
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07f3504f93b7b89b1cf919c9061e463fa6ac1bf3191d416ea1d7d28242a9c9be
3
+ size 7377