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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: Dans-DiscountModels/Mistral-Nemo-Base-2407-ChatML-Mod
|
| 4 |
+
tags:
|
| 5 |
+
- axolotl
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- PocketDoc/Dans-Reasoningmaxx-NaturalReasoning
|
| 9 |
+
- PocketDoc/Dans-Reasoningmaxx-WebInstruct
|
| 10 |
+
- PocketDoc/Dans-Reasoningmaxx-GeneralReasoning
|
| 11 |
+
- PocketDoc/Dans-Benchmaxx-COT
|
| 12 |
+
- PocketDoc/Dans-Logicmaxx-SAT-AP
|
| 13 |
+
- PocketDoc/Dans-Assistantmaxx-Opus-Merge
|
| 14 |
+
model-index:
|
| 15 |
+
- name: 12b-mn-dans-reasoning-test-5
|
| 16 |
+
results: []
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 20 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 21 |
+
|
| 22 |
+
[<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)
|
| 23 |
+
<details><summary>See axolotl config</summary>
|
| 24 |
+
|
| 25 |
+
axolotl version: `0.8.0.dev0`
|
| 26 |
+
```yaml
|
| 27 |
+
base_model: Dans-DiscountModels/Mistral-Nemo-Base-2407-ChatML-Mod
|
| 28 |
+
model_type: AutoModelForCausalLM
|
| 29 |
+
tokenizer_type: AutoTokenizer
|
| 30 |
+
|
| 31 |
+
trust_remote_code:
|
| 32 |
+
|
| 33 |
+
# wandb configuration
|
| 34 |
+
wandb_project: 12b-mn-dans-reasoning-test
|
| 35 |
+
wandb_watch:
|
| 36 |
+
|
| 37 |
+
wandb_run_id: V0.0.4-1-2 # V{Version}-{Run Number}-{Attempt Number}
|
| 38 |
+
wandb_log_model:
|
| 39 |
+
|
| 40 |
+
# push checkpoints to hub
|
| 41 |
+
hub_model_id: Dans-DiscountModels/12b-mn-dans-reasoning-test-5
|
| 42 |
+
# how to push checkpoints to hub
|
| 43 |
+
# https://huggingface.co/docs/transformers/v4.31.0/en/main_classes/trainer#transformers.TrainingArguments.hub_strategy
|
| 44 |
+
hub_strategy: "every_save"
|
| 45 |
+
# Whether to use hf `use_auth_token` for loading datasets. Useful for fetching private datasets
|
| 46 |
+
# Required to be true when used in combination with `push_dataset_to_hub`
|
| 47 |
+
hf_use_auth_token: true
|
| 48 |
+
|
| 49 |
+
# where to save the finished model to
|
| 50 |
+
output_dir: ./12b-mn-dans-reasoning-test
|
| 51 |
+
|
| 52 |
+
save_safetensors: true
|
| 53 |
+
|
| 54 |
+
# dataset settings (local or huggingface repo)
|
| 55 |
+
datasets:
|
| 56 |
+
- path: PocketDoc/Dans-Reasoningmaxx-NaturalReasoning
|
| 57 |
+
type: dan-chat-advanced
|
| 58 |
+
- path: PocketDoc/Dans-Reasoningmaxx-WebInstruct
|
| 59 |
+
type: dan-chat-advanced
|
| 60 |
+
- path: PocketDoc/Dans-Reasoningmaxx-GeneralReasoning
|
| 61 |
+
type: dan-chat-advanced
|
| 62 |
+
- path: PocketDoc/Dans-Benchmaxx-COT
|
| 63 |
+
type: dan-chat-advanced
|
| 64 |
+
- path: PocketDoc/Dans-Logicmaxx-SAT-AP
|
| 65 |
+
type: dan-chat-advanced
|
| 66 |
+
- path: PocketDoc/Dans-Assistantmaxx-Opus-Merge
|
| 67 |
+
type: dan-chat-advanced
|
| 68 |
+
# - path: PocketDoc/Dans-Assistantmaxx-sonnetorca-subset
|
| 69 |
+
# type: dan-chat-advanced
|
| 70 |
+
|
| 71 |
+
plugins:
|
| 72 |
+
- axolotl.integrations.liger.LigerPlugin
|
| 73 |
+
- axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
|
| 74 |
+
liger_rope: true
|
| 75 |
+
liger_rms_norm: true
|
| 76 |
+
liger_layer_norm: true
|
| 77 |
+
liger_glu_activation: true
|
| 78 |
+
liger_fused_linear_cross_entropy: false
|
| 79 |
+
cut_cross_entropy: true
|
| 80 |
+
|
| 81 |
+
load_in_8bit: false
|
| 82 |
+
load_in_4bit: false
|
| 83 |
+
strict: false
|
| 84 |
+
|
| 85 |
+
adapter:
|
| 86 |
+
lora_model_dir:
|
| 87 |
+
|
| 88 |
+
lora_r: 128
|
| 89 |
+
lora_alpha: 128
|
| 90 |
+
lora_dropout: 0.1
|
| 91 |
+
lora_target_linear: True
|
| 92 |
+
lora_target_modules:
|
| 93 |
+
lora_modules_to_save:
|
| 94 |
+
- embed_tokens
|
| 95 |
+
- lm_head
|
| 96 |
+
lora_fan_in_fan_out:
|
| 97 |
+
peft_use_rslora: true
|
| 98 |
+
|
| 99 |
+
dataset_prepared_path: ./12b-mn-dans-reasoning-test-data
|
| 100 |
+
val_set_size: 0.005
|
| 101 |
+
|
| 102 |
+
sequence_len: 8192
|
| 103 |
+
|
| 104 |
+
sample_packing: true
|
| 105 |
+
eval_sample_packing: true
|
| 106 |
+
|
| 107 |
+
pad_to_sequence_len: true
|
| 108 |
+
|
| 109 |
+
gradient_checkpointing: true
|
| 110 |
+
# gradient_checkpointing_kwargs:
|
| 111 |
+
# use_reentrant: false
|
| 112 |
+
|
| 113 |
+
gradient_accumulation_steps: 1
|
| 114 |
+
micro_batch_size: 4
|
| 115 |
+
|
| 116 |
+
num_epochs: 2
|
| 117 |
+
|
| 118 |
+
optimizer: came_pytorch
|
| 119 |
+
|
| 120 |
+
lr_scheduler: rex
|
| 121 |
+
learning_rate: 0.0000015
|
| 122 |
+
cosine_min_lr_ratio: 0.1
|
| 123 |
+
|
| 124 |
+
weight_decay: 0.1
|
| 125 |
+
|
| 126 |
+
max_grad_norm: 0.1
|
| 127 |
+
|
| 128 |
+
train_on_inputs: false
|
| 129 |
+
group_by_length: true
|
| 130 |
+
|
| 131 |
+
bf16: true
|
| 132 |
+
fp16: false
|
| 133 |
+
tf32: false
|
| 134 |
+
|
| 135 |
+
early_stopping_patience:
|
| 136 |
+
|
| 137 |
+
resume_from_checkpoint:
|
| 138 |
+
auto_resume_from_checkpoints: true
|
| 139 |
+
|
| 140 |
+
local_rank:
|
| 141 |
+
logging_steps: 1
|
| 142 |
+
xformers_attention:
|
| 143 |
+
flash_attention: true
|
| 144 |
+
|
| 145 |
+
warmup_ratio: 0.05
|
| 146 |
+
|
| 147 |
+
evals_per_epoch: 16
|
| 148 |
+
eval_table_size:
|
| 149 |
+
eval_max_new_tokens:
|
| 150 |
+
|
| 151 |
+
saves_per_epoch: 4
|
| 152 |
+
save_total_limit: 1
|
| 153 |
+
|
| 154 |
+
debug: false
|
| 155 |
+
|
| 156 |
+
deepspeed: deepspeed_configs/zero3_bf16.json
|
| 157 |
+
|
| 158 |
+
fsdp:
|
| 159 |
+
fsdp_config:
|
| 160 |
+
|
| 161 |
+
special_tokens:
|
| 162 |
+
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
</details><br>
|
| 166 |
+
|
| 167 |
+
# 12b-mn-dans-reasoning-test-5
|
| 168 |
+
|
| 169 |
+
This model is a fine-tuned version of [Dans-DiscountModels/Mistral-Nemo-Base-2407-ChatML-Mod](https://huggingface.co/Dans-DiscountModels/Mistral-Nemo-Base-2407-ChatML-Mod) on the PocketDoc/Dans-Reasoningmaxx-NaturalReasoning, the PocketDoc/Dans-Reasoningmaxx-WebInstruct, the PocketDoc/Dans-Reasoningmaxx-GeneralReasoning, the PocketDoc/Dans-Benchmaxx-COT, the PocketDoc/Dans-Logicmaxx-SAT-AP and the PocketDoc/Dans-Assistantmaxx-Opus-Merge datasets.
|
| 170 |
+
It achieves the following results on the evaluation set:
|
| 171 |
+
- Loss: 0.5607
|
| 172 |
+
|
| 173 |
+
## Model description
|
| 174 |
+
|
| 175 |
+
More information needed
|
| 176 |
+
|
| 177 |
+
## Intended uses & limitations
|
| 178 |
+
|
| 179 |
+
More information needed
|
| 180 |
+
|
| 181 |
+
## Training and evaluation data
|
| 182 |
+
|
| 183 |
+
More information needed
|
| 184 |
+
|
| 185 |
+
## Training procedure
|
| 186 |
+
|
| 187 |
+
### Training hyperparameters
|
| 188 |
+
|
| 189 |
+
The following hyperparameters were used during training:
|
| 190 |
+
- learning_rate: 1.5e-06
|
| 191 |
+
- train_batch_size: 4
|
| 192 |
+
- eval_batch_size: 4
|
| 193 |
+
- seed: 42
|
| 194 |
+
- distributed_type: multi-GPU
|
| 195 |
+
- num_devices: 4
|
| 196 |
+
- total_train_batch_size: 16
|
| 197 |
+
- total_eval_batch_size: 16
|
| 198 |
+
- optimizer: Use OptimizerNames.ADAMW_HF with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 199 |
+
- lr_scheduler_type: cosine
|
| 200 |
+
- lr_scheduler_warmup_steps: 72
|
| 201 |
+
- num_epochs: 2.0
|
| 202 |
+
|
| 203 |
+
### Training results
|
| 204 |
+
|
| 205 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 206 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 207 |
+
| 0.7429 | 0.0014 | 1 | 0.7557 |
|
| 208 |
+
| 0.6704 | 0.0634 | 46 | 0.6654 |
|
| 209 |
+
| 0.632 | 0.1269 | 92 | 0.6255 |
|
| 210 |
+
| 0.6256 | 0.1903 | 138 | 0.6108 |
|
| 211 |
+
| 0.5898 | 0.2538 | 184 | 0.6022 |
|
| 212 |
+
| 0.6078 | 0.3172 | 230 | 0.5967 |
|
| 213 |
+
| 0.5585 | 0.3807 | 276 | 0.5925 |
|
| 214 |
+
| 0.609 | 0.4441 | 322 | 0.5887 |
|
| 215 |
+
| 0.6203 | 0.5076 | 368 | 0.5854 |
|
| 216 |
+
| 0.5651 | 0.5710 | 414 | 0.5825 |
|
| 217 |
+
| 0.5886 | 0.6345 | 460 | 0.5802 |
|
| 218 |
+
| 0.5479 | 0.6979 | 506 | 0.5783 |
|
| 219 |
+
| 0.5924 | 0.7614 | 552 | 0.5764 |
|
| 220 |
+
| 0.5515 | 0.8248 | 598 | 0.5745 |
|
| 221 |
+
| 0.5891 | 0.8883 | 644 | 0.5727 |
|
| 222 |
+
| 0.5757 | 0.9517 | 690 | 0.5712 |
|
| 223 |
+
| 0.5241 | 1.0152 | 736 | 0.5718 |
|
| 224 |
+
| 0.5303 | 1.0786 | 782 | 0.5723 |
|
| 225 |
+
| 0.5586 | 1.1421 | 828 | 0.5713 |
|
| 226 |
+
| 0.5087 | 1.2055 | 874 | 0.5702 |
|
| 227 |
+
| 0.5251 | 1.2690 | 920 | 0.5694 |
|
| 228 |
+
| 0.5336 | 1.3324 | 966 | 0.5689 |
|
| 229 |
+
| 0.4921 | 1.3959 | 1012 | 0.5689 |
|
| 230 |
+
| 0.5164 | 1.4593 | 1058 | 0.5670 |
|
| 231 |
+
| 0.5546 | 1.5228 | 1104 | 0.5665 |
|
| 232 |
+
| 0.49 | 1.5862 | 1150 | 0.5649 |
|
| 233 |
+
| 0.4836 | 1.6497 | 1196 | 0.5647 |
|
| 234 |
+
| 0.4768 | 1.7131 | 1242 | 0.5642 |
|
| 235 |
+
| 0.5207 | 1.7766 | 1288 | 0.5630 |
|
| 236 |
+
| 0.5127 | 1.8400 | 1334 | 0.5624 |
|
| 237 |
+
| 0.5111 | 1.9034 | 1380 | 0.5615 |
|
| 238 |
+
| 0.4927 | 1.9669 | 1426 | 0.5607 |
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
### Framework versions
|
| 242 |
+
|
| 243 |
+
- Transformers 4.49.0
|
| 244 |
+
- Pytorch 2.4.1+cu124
|
| 245 |
+
- Datasets 3.2.0
|
| 246 |
+
- Tokenizers 0.21.1
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"transformers_version": "4.49.0"
|
| 7 |
+
}
|