Model save
Browse files- README.md +67 -0
- all_results.json +9 -0
- runs/Jan02_11-23-19_pkaiju/events.out.tfevents.1735817070.pkaiju.18141.0 +2 -2
- train_results.json +9 -0
- trainer_state.json +204 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: mistralai/Mistral-7B-v0.1
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- sft
|
8 |
+
- generated_from_trainer
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: mistral-7b-sft-constitutional-ai
|
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-sft-constitutional-ai
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.0208
|
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: 2e-05
|
43 |
+
- train_batch_size: 8
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- gradient_accumulation_steps: 8
|
48 |
+
- total_train_batch_size: 64
|
49 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
50 |
+
- lr_scheduler_type: cosine
|
51 |
+
- lr_scheduler_warmup_ratio: 0.1
|
52 |
+
- num_epochs: 1
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|
|
58 |
+
| 8.2279 | 0.9966 | 109 | 1.0208 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- PEFT 0.14.0
|
64 |
+
- Transformers 4.47.1
|
65 |
+
- Pytorch 2.5.1+cu124
|
66 |
+
- Datasets 3.2.0
|
67 |
+
- Tokenizers 0.21.0
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.9965714285714286,
|
3 |
+
"total_flos": 6.131289443249684e+17,
|
4 |
+
"train_loss": 8.393078707773752,
|
5 |
+
"train_runtime": 26246.6491,
|
6 |
+
"train_samples": 11456,
|
7 |
+
"train_samples_per_second": 0.267,
|
8 |
+
"train_steps_per_second": 0.004
|
9 |
+
}
|
runs/Jan02_11-23-19_pkaiju/events.out.tfevents.1735817070.pkaiju.18141.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3488703ac06e40781f22f0511ff5ea06a21e8b0dcadb96b67380497104c3cb4d
|
3 |
+
size 11833
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.9965714285714286,
|
3 |
+
"total_flos": 6.131289443249684e+17,
|
4 |
+
"train_loss": 8.393078707773752,
|
5 |
+
"train_runtime": 26246.6491,
|
6 |
+
"train_samples": 11456,
|
7 |
+
"train_samples_per_second": 0.267,
|
8 |
+
"train_steps_per_second": 0.004
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9965714285714286,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 109,
|
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.009142857142857144,
|
13 |
+
"grad_norm": 2.635891914367676,
|
14 |
+
"learning_rate": 1.8181818181818183e-06,
|
15 |
+
"loss": 9.7005,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.045714285714285714,
|
20 |
+
"grad_norm": 2.669848680496216,
|
21 |
+
"learning_rate": 9.090909090909091e-06,
|
22 |
+
"loss": 9.3658,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.09142857142857143,
|
27 |
+
"grad_norm": 2.1069536209106445,
|
28 |
+
"learning_rate": 1.8181818181818182e-05,
|
29 |
+
"loss": 9.1556,
|
30 |
+
"step": 10
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.13714285714285715,
|
34 |
+
"grad_norm": 1.8738576173782349,
|
35 |
+
"learning_rate": 1.991790013823246e-05,
|
36 |
+
"loss": 8.9444,
|
37 |
+
"step": 15
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.18285714285714286,
|
41 |
+
"grad_norm": 1.5760283470153809,
|
42 |
+
"learning_rate": 1.9586678530366607e-05,
|
43 |
+
"loss": 8.5402,
|
44 |
+
"step": 20
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.22857142857142856,
|
48 |
+
"grad_norm": 1.3902924060821533,
|
49 |
+
"learning_rate": 1.900968867902419e-05,
|
50 |
+
"loss": 8.4052,
|
51 |
+
"step": 25
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.2742857142857143,
|
55 |
+
"grad_norm": 1.3036909103393555,
|
56 |
+
"learning_rate": 1.820172254596956e-05,
|
57 |
+
"loss": 8.5012,
|
58 |
+
"step": 30
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.32,
|
62 |
+
"grad_norm": 1.4191102981567383,
|
63 |
+
"learning_rate": 1.7183493500977277e-05,
|
64 |
+
"loss": 8.3836,
|
65 |
+
"step": 35
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.3657142857142857,
|
69 |
+
"grad_norm": 1.3017487525939941,
|
70 |
+
"learning_rate": 1.598110530491216e-05,
|
71 |
+
"loss": 8.376,
|
72 |
+
"step": 40
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.4114285714285714,
|
76 |
+
"grad_norm": 0.9578719139099121,
|
77 |
+
"learning_rate": 1.4625382902408356e-05,
|
78 |
+
"loss": 8.346,
|
79 |
+
"step": 45
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.45714285714285713,
|
83 |
+
"grad_norm": 0.884999692440033,
|
84 |
+
"learning_rate": 1.315108218023621e-05,
|
85 |
+
"loss": 8.1656,
|
86 |
+
"step": 50
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.5028571428571429,
|
90 |
+
"grad_norm": 0.8994832634925842,
|
91 |
+
"learning_rate": 1.1595998950333794e-05,
|
92 |
+
"loss": 8.2717,
|
93 |
+
"step": 55
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.5485714285714286,
|
97 |
+
"grad_norm": 0.8586516976356506,
|
98 |
+
"learning_rate": 1e-05,
|
99 |
+
"loss": 8.2746,
|
100 |
+
"step": 60
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 0.5942857142857143,
|
104 |
+
"grad_norm": 0.8844101428985596,
|
105 |
+
"learning_rate": 8.404001049666211e-06,
|
106 |
+
"loss": 8.1344,
|
107 |
+
"step": 65
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.64,
|
111 |
+
"grad_norm": 0.857933521270752,
|
112 |
+
"learning_rate": 6.848917819763794e-06,
|
113 |
+
"loss": 8.0928,
|
114 |
+
"step": 70
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.6857142857142857,
|
118 |
+
"grad_norm": 0.8832647204399109,
|
119 |
+
"learning_rate": 5.37461709759165e-06,
|
120 |
+
"loss": 8.2155,
|
121 |
+
"step": 75
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.7314285714285714,
|
125 |
+
"grad_norm": 0.8684210777282715,
|
126 |
+
"learning_rate": 4.01889469508784e-06,
|
127 |
+
"loss": 8.1696,
|
128 |
+
"step": 80
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 0.7771428571428571,
|
132 |
+
"grad_norm": 0.8870261311531067,
|
133 |
+
"learning_rate": 2.8165064990227255e-06,
|
134 |
+
"loss": 8.0587,
|
135 |
+
"step": 85
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.8228571428571428,
|
139 |
+
"grad_norm": 0.8674476146697998,
|
140 |
+
"learning_rate": 1.7982774540304404e-06,
|
141 |
+
"loss": 8.2368,
|
142 |
+
"step": 90
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 0.8685714285714285,
|
146 |
+
"grad_norm": 0.8507274985313416,
|
147 |
+
"learning_rate": 9.903113209758098e-07,
|
148 |
+
"loss": 8.081,
|
149 |
+
"step": 95
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.9142857142857143,
|
153 |
+
"grad_norm": 0.8538458347320557,
|
154 |
+
"learning_rate": 4.133214696333943e-07,
|
155 |
+
"loss": 8.2492,
|
156 |
+
"step": 100
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 0.96,
|
160 |
+
"grad_norm": 0.8556557893753052,
|
161 |
+
"learning_rate": 8.209986176753947e-08,
|
162 |
+
"loss": 8.2279,
|
163 |
+
"step": 105
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.9965714285714286,
|
167 |
+
"eval_loss": 1.0207911729812622,
|
168 |
+
"eval_runtime": 10395.2442,
|
169 |
+
"eval_samples_per_second": 1.484,
|
170 |
+
"eval_steps_per_second": 0.186,
|
171 |
+
"step": 109
|
172 |
+
},
|
173 |
+
{
|
174 |
+
"epoch": 0.9965714285714286,
|
175 |
+
"step": 109,
|
176 |
+
"total_flos": 6.131289443249684e+17,
|
177 |
+
"train_loss": 8.393078707773752,
|
178 |
+
"train_runtime": 26246.6491,
|
179 |
+
"train_samples_per_second": 0.267,
|
180 |
+
"train_steps_per_second": 0.004
|
181 |
+
}
|
182 |
+
],
|
183 |
+
"logging_steps": 5,
|
184 |
+
"max_steps": 109,
|
185 |
+
"num_input_tokens_seen": 0,
|
186 |
+
"num_train_epochs": 1,
|
187 |
+
"save_steps": 100,
|
188 |
+
"stateful_callbacks": {
|
189 |
+
"TrainerControl": {
|
190 |
+
"args": {
|
191 |
+
"should_epoch_stop": false,
|
192 |
+
"should_evaluate": false,
|
193 |
+
"should_log": false,
|
194 |
+
"should_save": true,
|
195 |
+
"should_training_stop": true
|
196 |
+
},
|
197 |
+
"attributes": {}
|
198 |
+
}
|
199 |
+
},
|
200 |
+
"total_flos": 6.131289443249684e+17,
|
201 |
+
"train_batch_size": 8,
|
202 |
+
"trial_name": null,
|
203 |
+
"trial_params": null
|
204 |
+
}
|