Model save
Browse files- README.md +69 -0
- all_results.json +9 -0
- train_results.json +9 -0
- trainer_state.json +239 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mistralai/Mistral-7B-v0.3
|
3 |
+
datasets:
|
4 |
+
- generator
|
5 |
+
library_name: peft
|
6 |
+
license: apache-2.0
|
7 |
+
tags:
|
8 |
+
- trl
|
9 |
+
- sft
|
10 |
+
- generated_from_trainer
|
11 |
+
model-index:
|
12 |
+
- name: mistral-7b-0.3-gpt4o_100k_classification-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 |
+
# mistral-7b-0.3-gpt4o_100k_classification-lora
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.3](https://huggingface.co/mistralai/Mistral-7B-v0.3) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.4816
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 0.0002
|
43 |
+
- train_batch_size: 4
|
44 |
+
- eval_batch_size: 4
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 8
|
48 |
+
- gradient_accumulation_steps: 2
|
49 |
+
- total_train_batch_size: 64
|
50 |
+
- total_eval_batch_size: 32
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: cosine
|
53 |
+
- lr_scheduler_warmup_ratio: 0.1
|
54 |
+
- num_epochs: 1
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
60 |
+
| 0.9141 | 1.0 | 134 | 1.4816 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- PEFT 0.13.0
|
66 |
+
- Transformers 4.45.1
|
67 |
+
- Pytorch 2.4.1+cu121
|
68 |
+
- Datasets 3.0.1
|
69 |
+
- Tokenizers 0.20.0
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 3.750131265144095e+17,
|
4 |
+
"train_loss": 1.0418888739685515,
|
5 |
+
"train_runtime": 1659.9836,
|
6 |
+
"train_samples": 92634,
|
7 |
+
"train_samples_per_second": 5.16,
|
8 |
+
"train_steps_per_second": 0.081
|
9 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 3.750131265144095e+17,
|
4 |
+
"train_loss": 1.0418888739685515,
|
5 |
+
"train_runtime": 1659.9836,
|
6 |
+
"train_samples": 92634,
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|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 134,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.007462686567164179,
|
13 |
+
"grad_norm": 7.811283588409424,
|
14 |
+
"learning_rate": 1.4285714285714285e-05,
|
15 |
+
"loss": 2.0521,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.03731343283582089,
|
20 |
+
"grad_norm": 6.445086479187012,
|
21 |
+
"learning_rate": 7.142857142857143e-05,
|
22 |
+
"loss": 2.0103,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.07462686567164178,
|
27 |
+
"grad_norm": 4.3372368812561035,
|
28 |
+
"learning_rate": 0.00014285714285714287,
|
29 |
+
"loss": 1.6079,
|
30 |
+
"step": 10
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.11194029850746269,
|
34 |
+
"grad_norm": 1.0932683944702148,
|
35 |
+
"learning_rate": 0.00019996573249755572,
|
36 |
+
"loss": 1.3371,
|
37 |
+
"step": 15
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.14925373134328357,
|
41 |
+
"grad_norm": 0.9909504055976868,
|
42 |
+
"learning_rate": 0.00019876883405951377,
|
43 |
+
"loss": 1.1968,
|
44 |
+
"step": 20
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.1865671641791045,
|
48 |
+
"grad_norm": 0.8857837915420532,
|
49 |
+
"learning_rate": 0.0001958819734868193,
|
50 |
+
"loss": 1.107,
|
51 |
+
"step": 25
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.22388059701492538,
|
55 |
+
"grad_norm": 0.8879585266113281,
|
56 |
+
"learning_rate": 0.0001913545457642601,
|
57 |
+
"loss": 1.0563,
|
58 |
+
"step": 30
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.26119402985074625,
|
62 |
+
"grad_norm": 0.5094943642616272,
|
63 |
+
"learning_rate": 0.00018526401643540922,
|
64 |
+
"loss": 1.0143,
|
65 |
+
"step": 35
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.29850746268656714,
|
69 |
+
"grad_norm": 0.39295411109924316,
|
70 |
+
"learning_rate": 0.0001777145961456971,
|
71 |
+
"loss": 0.9871,
|
72 |
+
"step": 40
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.3358208955223881,
|
76 |
+
"grad_norm": 0.5487385988235474,
|
77 |
+
"learning_rate": 0.0001688354575693754,
|
78 |
+
"loss": 0.9945,
|
79 |
+
"step": 45
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.373134328358209,
|
83 |
+
"grad_norm": 0.48006948828697205,
|
84 |
+
"learning_rate": 0.00015877852522924732,
|
85 |
+
"loss": 0.9775,
|
86 |
+
"step": 50
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.41044776119402987,
|
90 |
+
"grad_norm": 0.32778072357177734,
|
91 |
+
"learning_rate": 0.00014771587602596084,
|
92 |
+
"loss": 0.9614,
|
93 |
+
"step": 55
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.44776119402985076,
|
97 |
+
"grad_norm": 0.6229733824729919,
|
98 |
+
"learning_rate": 0.00013583679495453,
|
99 |
+
"loss": 0.9528,
|
100 |
+
"step": 60
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 0.48507462686567165,
|
104 |
+
"grad_norm": 0.37184789776802063,
|
105 |
+
"learning_rate": 0.00012334453638559057,
|
106 |
+
"loss": 0.9527,
|
107 |
+
"step": 65
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.5223880597014925,
|
111 |
+
"grad_norm": 0.8213186264038086,
|
112 |
+
"learning_rate": 0.00011045284632676536,
|
113 |
+
"loss": 0.9422,
|
114 |
+
"step": 70
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.5597014925373134,
|
118 |
+
"grad_norm": 0.5482317209243774,
|
119 |
+
"learning_rate": 9.73823051692127e-05,
|
120 |
+
"loss": 0.9439,
|
121 |
+
"step": 75
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.5970149253731343,
|
125 |
+
"grad_norm": 0.535866379737854,
|
126 |
+
"learning_rate": 8.435655349597689e-05,
|
127 |
+
"loss": 0.9348,
|
128 |
+
"step": 80
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 0.6343283582089553,
|
132 |
+
"grad_norm": 0.4782055914402008,
|
133 |
+
"learning_rate": 7.159846552960774e-05,
|
134 |
+
"loss": 0.932,
|
135 |
+
"step": 85
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.6716417910447762,
|
139 |
+
"grad_norm": 0.44723376631736755,
|
140 |
+
"learning_rate": 5.9326335692419995e-05,
|
141 |
+
"loss": 0.9185,
|
142 |
+
"step": 90
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 0.7089552238805971,
|
146 |
+
"grad_norm": 0.3611028790473938,
|
147 |
+
"learning_rate": 4.7750143528405126e-05,
|
148 |
+
"loss": 0.9224,
|
149 |
+
"step": 95
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.746268656716418,
|
153 |
+
"grad_norm": 0.3897744119167328,
|
154 |
+
"learning_rate": 3.7067960895016275e-05,
|
155 |
+
"loss": 0.9175,
|
156 |
+
"step": 100
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 0.7835820895522388,
|
160 |
+
"grad_norm": 0.3638187646865845,
|
161 |
+
"learning_rate": 2.746256289877126e-05,
|
162 |
+
"loss": 0.9237,
|
163 |
+
"step": 105
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.8208955223880597,
|
167 |
+
"grad_norm": 0.36973854899406433,
|
168 |
+
"learning_rate": 1.9098300562505266e-05,
|
169 |
+
"loss": 0.9264,
|
170 |
+
"step": 110
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 0.8582089552238806,
|
174 |
+
"grad_norm": 0.3612724244594574,
|
175 |
+
"learning_rate": 1.2118288733803473e-05,
|
176 |
+
"loss": 0.9275,
|
177 |
+
"step": 115
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"epoch": 0.8955223880597015,
|
181 |
+
"grad_norm": 0.3824576139450073,
|
182 |
+
"learning_rate": 6.6419573502798374e-06,
|
183 |
+
"loss": 0.9104,
|
184 |
+
"step": 120
|
185 |
+
},
|
186 |
+
{
|
187 |
+
"epoch": 0.9328358208955224,
|
188 |
+
"grad_norm": 0.3507688343524933,
|
189 |
+
"learning_rate": 2.7630079602323442e-06,
|
190 |
+
"loss": 0.929,
|
191 |
+
"step": 125
|
192 |
+
},
|
193 |
+
{
|
194 |
+
"epoch": 0.9701492537313433,
|
195 |
+
"grad_norm": 0.3513280153274536,
|
196 |
+
"learning_rate": 5.478104631726711e-07,
|
197 |
+
"loss": 0.9141,
|
198 |
+
"step": 130
|
199 |
+
},
|
200 |
+
{
|
201 |
+
"epoch": 1.0,
|
202 |
+
"eval_loss": 1.4816477298736572,
|
203 |
+
"eval_runtime": 1.5129,
|
204 |
+
"eval_samples_per_second": 1.322,
|
205 |
+
"eval_steps_per_second": 0.661,
|
206 |
+
"step": 134
|
207 |
+
},
|
208 |
+
{
|
209 |
+
"epoch": 1.0,
|
210 |
+
"step": 134,
|
211 |
+
"total_flos": 3.750131265144095e+17,
|
212 |
+
"train_loss": 1.0418888739685515,
|
213 |
+
"train_runtime": 1659.9836,
|
214 |
+
"train_samples_per_second": 5.16,
|
215 |
+
"train_steps_per_second": 0.081
|
216 |
+
}
|
217 |
+
],
|
218 |
+
"logging_steps": 5,
|
219 |
+
"max_steps": 134,
|
220 |
+
"num_input_tokens_seen": 0,
|
221 |
+
"num_train_epochs": 1,
|
222 |
+
"save_steps": 100,
|
223 |
+
"stateful_callbacks": {
|
224 |
+
"TrainerControl": {
|
225 |
+
"args": {
|
226 |
+
"should_epoch_stop": false,
|
227 |
+
"should_evaluate": false,
|
228 |
+
"should_log": false,
|
229 |
+
"should_save": true,
|
230 |
+
"should_training_stop": true
|
231 |
+
},
|
232 |
+
"attributes": {}
|
233 |
+
}
|
234 |
+
},
|
235 |
+
"total_flos": 3.750131265144095e+17,
|
236 |
+
"train_batch_size": 4,
|
237 |
+
"trial_name": null,
|
238 |
+
"trial_params": null
|
239 |
+
}
|