End of training
Browse files- README.md +169 -0
- generation_config.json +7 -0
README.md
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: mistralai/Mistral-7B-v0.1
|
5 |
+
tags:
|
6 |
+
- axolotl
|
7 |
+
- generated_from_trainer
|
8 |
+
datasets:
|
9 |
+
- AiAF/pretraining.jsonl
|
10 |
+
model-index:
|
11 |
+
- name: UFOs-Pretraining-V1.1
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
[<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)
|
19 |
+
<details><summary>See axolotl config</summary>
|
20 |
+
|
21 |
+
axolotl version: `0.6.0`
|
22 |
+
```yaml
|
23 |
+
base_model: mistralai/Mistral-7B-v0.1
|
24 |
+
# optionally might have model_type or tokenizer_type
|
25 |
+
model_type: MistralForCausalLM
|
26 |
+
tokenizer_type: LlamaTokenizer
|
27 |
+
# Automatically upload checkpoint and final model to HF
|
28 |
+
hub_model_id: AiAF/UFOs-Pretraining-V1.1
|
29 |
+
|
30 |
+
load_in_8bit: false
|
31 |
+
load_in_4bit: false
|
32 |
+
strict: false
|
33 |
+
|
34 |
+
datasets:
|
35 |
+
- path: AiAF/pretraining.jsonl
|
36 |
+
type: completion
|
37 |
+
|
38 |
+
dataset_prepared_path:
|
39 |
+
val_set_size: 0.05
|
40 |
+
output_dir: ./outputs/out/v1.1
|
41 |
+
|
42 |
+
sequence_len: 8192
|
43 |
+
sample_packing: true
|
44 |
+
pad_to_sequence_len: true
|
45 |
+
eval_sample_packing: false
|
46 |
+
|
47 |
+
max_steps: 100000
|
48 |
+
|
49 |
+
wandb_project: "UFO_LLM_Pretraining"
|
50 |
+
wandb_entity:
|
51 |
+
wandb_watch: "all"
|
52 |
+
wandb_name: "UFO_LLM_Pretraining-V1.1"
|
53 |
+
wandb_log_model: "false"
|
54 |
+
|
55 |
+
gradient_accumulation_steps: 4
|
56 |
+
micro_batch_size: 2
|
57 |
+
num_epochs: 10
|
58 |
+
optimizer: adamw_bnb_8bit
|
59 |
+
lr_scheduler: cosine
|
60 |
+
learning_rate: 0.000005
|
61 |
+
|
62 |
+
train_on_inputs: false
|
63 |
+
group_by_length: false
|
64 |
+
bf16: auto
|
65 |
+
fp16:
|
66 |
+
tf32: false
|
67 |
+
|
68 |
+
gradient_checkpointing: true
|
69 |
+
early_stopping_patience:
|
70 |
+
resume_from_checkpoint:
|
71 |
+
local_rank:
|
72 |
+
logging_steps: 1
|
73 |
+
xformers_attention:
|
74 |
+
flash_attention: true
|
75 |
+
|
76 |
+
warmup_steps: 10
|
77 |
+
evals_per_epoch: 4
|
78 |
+
eval_table_size:
|
79 |
+
eval_max_new_tokens: 128
|
80 |
+
saves_per_epoch: 1
|
81 |
+
debug:
|
82 |
+
deepspeed:
|
83 |
+
weight_decay: 0.0
|
84 |
+
fsdp:
|
85 |
+
fsdp_config:
|
86 |
+
special_tokens:
|
87 |
+
|
88 |
+
|
89 |
+
```
|
90 |
+
|
91 |
+
</details><br>
|
92 |
+
|
93 |
+
# UFOs-Pretraining-V1.1
|
94 |
+
|
95 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the AiAF/pretraining.jsonl dataset.
|
96 |
+
It achieves the following results on the evaluation set:
|
97 |
+
- Loss: 1.7822
|
98 |
+
|
99 |
+
## Model description
|
100 |
+
|
101 |
+
More information needed
|
102 |
+
|
103 |
+
## Intended uses & limitations
|
104 |
+
|
105 |
+
More information needed
|
106 |
+
|
107 |
+
## Training and evaluation data
|
108 |
+
|
109 |
+
More information needed
|
110 |
+
|
111 |
+
## Training procedure
|
112 |
+
|
113 |
+
### Training hyperparameters
|
114 |
+
|
115 |
+
The following hyperparameters were used during training:
|
116 |
+
- learning_rate: 5e-06
|
117 |
+
- train_batch_size: 2
|
118 |
+
- eval_batch_size: 2
|
119 |
+
- seed: 42
|
120 |
+
- gradient_accumulation_steps: 4
|
121 |
+
- total_train_batch_size: 8
|
122 |
+
- optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
123 |
+
- lr_scheduler_type: cosine
|
124 |
+
- lr_scheduler_warmup_steps: 10
|
125 |
+
- training_steps: 90
|
126 |
+
|
127 |
+
### Training results
|
128 |
+
|
129 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
130 |
+
|:-------------:|:------:|:----:|:---------------:|
|
131 |
+
| 1.7686 | 0.1111 | 1 | 1.6895 |
|
132 |
+
| 2.0582 | 0.3333 | 3 | 1.6884 |
|
133 |
+
| 1.9134 | 0.6667 | 6 | 1.6791 |
|
134 |
+
| 1.8262 | 1.0 | 9 | 1.6672 |
|
135 |
+
| 1.875 | 1.3333 | 12 | 1.6578 |
|
136 |
+
| 1.8751 | 1.6667 | 15 | 1.6501 |
|
137 |
+
| 1.8375 | 2.0 | 18 | 1.6471 |
|
138 |
+
| 1.7018 | 2.3333 | 21 | 1.6587 |
|
139 |
+
| 1.398 | 2.6667 | 24 | 1.6508 |
|
140 |
+
| 1.6955 | 3.0 | 27 | 1.6577 |
|
141 |
+
| 1.4222 | 3.3333 | 30 | 1.6812 |
|
142 |
+
| 1.264 | 3.6667 | 33 | 1.6664 |
|
143 |
+
| 1.4261 | 4.0 | 36 | 1.6827 |
|
144 |
+
| 1.2406 | 4.3333 | 39 | 1.7099 |
|
145 |
+
| 1.2105 | 4.6667 | 42 | 1.7099 |
|
146 |
+
| 1.3733 | 5.0 | 45 | 1.7162 |
|
147 |
+
| 1.2441 | 5.3333 | 48 | 1.7490 |
|
148 |
+
| 1.1755 | 5.6667 | 51 | 1.7440 |
|
149 |
+
| 1.2253 | 6.0 | 54 | 1.7394 |
|
150 |
+
| 1.1223 | 6.3333 | 57 | 1.7542 |
|
151 |
+
| 1.1837 | 6.6667 | 60 | 1.7679 |
|
152 |
+
| 0.9838 | 7.0 | 63 | 1.7670 |
|
153 |
+
| 1.1613 | 7.3333 | 66 | 1.7693 |
|
154 |
+
| 1.1775 | 7.6667 | 69 | 1.7753 |
|
155 |
+
| 0.8999 | 8.0 | 72 | 1.7796 |
|
156 |
+
| 1.1617 | 8.3333 | 75 | 1.7813 |
|
157 |
+
| 1.1119 | 8.6667 | 78 | 1.7819 |
|
158 |
+
| 1.1191 | 9.0 | 81 | 1.7825 |
|
159 |
+
| 1.0606 | 9.3333 | 84 | 1.7821 |
|
160 |
+
| 1.1476 | 9.6667 | 87 | 1.7820 |
|
161 |
+
| 1.0837 | 10.0 | 90 | 1.7822 |
|
162 |
+
|
163 |
+
|
164 |
+
### Framework versions
|
165 |
+
|
166 |
+
- Transformers 4.48.3
|
167 |
+
- Pytorch 2.5.1+cu124
|
168 |
+
- Datasets 3.2.0
|
169 |
+
- Tokenizers 0.21.0
|
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.48.3"
|
7 |
+
}
|