Model save
Browse files- README.md +69 -0
- adapter_model.safetensors +1 -1
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/May18_23-14-07_gpu4-119-5/events.out.tfevents.1716038098.gpu4-119-5.2598658.0 +2 -2
- runs/May18_23-14-07_gpu4-119-5/events.out.tfevents.1716042344.gpu4-119-5.2598658.1 +3 -0
- train_results.json +8 -0
- trainer_state.json +176 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: microsoft/phi-2
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: phi-2-sft-lora-chat
|
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 |
+
# phi-2-sft-lora-chat
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.2272
|
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: 3
|
48 |
+
- gradient_accumulation_steps: 4
|
49 |
+
- total_train_batch_size: 48
|
50 |
+
- total_eval_batch_size: 12
|
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: 0.02
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
60 |
+
| 1.2627 | 0.02 | 111 | 1.2272 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- PEFT 0.7.1
|
66 |
+
- Transformers 4.36.2
|
67 |
+
- Pytorch 2.1.2+cu121
|
68 |
+
- Datasets 2.14.6
|
69 |
+
- Tokenizers 0.15.2
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 335579632
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d65e9b75d99d8a42ff66359a3ae4406271efb1d4107ca56e601092c07016c5bc
|
3 |
size 335579632
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.02,
|
3 |
+
"eval_loss": 1.2271578311920166,
|
4 |
+
"eval_runtime": 1802.0046,
|
5 |
+
"eval_samples": 23110,
|
6 |
+
"eval_samples_per_second": 16.275,
|
7 |
+
"eval_steps_per_second": 1.356,
|
8 |
+
"train_loss": 1.2791897563246992,
|
9 |
+
"train_runtime": 2444.0756,
|
10 |
+
"train_samples": 207865,
|
11 |
+
"train_samples_per_second": 2.168,
|
12 |
+
"train_steps_per_second": 0.045
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.02,
|
3 |
+
"eval_loss": 1.2271578311920166,
|
4 |
+
"eval_runtime": 1802.0046,
|
5 |
+
"eval_samples": 23110,
|
6 |
+
"eval_samples_per_second": 16.275,
|
7 |
+
"eval_steps_per_second": 1.356
|
8 |
+
}
|
runs/May18_23-14-07_gpu4-119-5/events.out.tfevents.1716038098.gpu4-119-5.2598658.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:4210c56ac3b8a174da30a2d4922bcccc7f16a777012647eaaaf18497e69821b7
|
3 |
+
size 8880
|
runs/May18_23-14-07_gpu4-119-5/events.out.tfevents.1716042344.gpu4-119-5.2598658.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:392d9adb2eaa719969370551b24d2e67839b936011be9464f17910cbdaf75705
|
3 |
+
size 354
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.02,
|
3 |
+
"train_loss": 1.2791897563246992,
|
4 |
+
"train_runtime": 2444.0756,
|
5 |
+
"train_samples": 207865,
|
6 |
+
"train_samples_per_second": 2.168,
|
7 |
+
"train_steps_per_second": 0.045
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.020107784973506633,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 111,
|
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.0,
|
13 |
+
"learning_rate": 1.6666666666666667e-05,
|
14 |
+
"loss": 1.2849,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.0,
|
19 |
+
"learning_rate": 8.333333333333334e-05,
|
20 |
+
"loss": 1.3474,
|
21 |
+
"step": 5
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.0,
|
25 |
+
"learning_rate": 0.0001666666666666667,
|
26 |
+
"loss": 1.3589,
|
27 |
+
"step": 10
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.0,
|
31 |
+
"learning_rate": 0.00019954719225730847,
|
32 |
+
"loss": 1.3078,
|
33 |
+
"step": 15
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 0.0,
|
37 |
+
"learning_rate": 0.00019679487013963564,
|
38 |
+
"loss": 1.2688,
|
39 |
+
"step": 20
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.0,
|
43 |
+
"learning_rate": 0.00019161084574320696,
|
44 |
+
"loss": 1.3346,
|
45 |
+
"step": 25
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 0.01,
|
49 |
+
"learning_rate": 0.00018412535328311814,
|
50 |
+
"loss": 1.2897,
|
51 |
+
"step": 30
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.01,
|
55 |
+
"learning_rate": 0.0001745264449675755,
|
56 |
+
"loss": 1.2717,
|
57 |
+
"step": 35
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 0.01,
|
61 |
+
"learning_rate": 0.00016305526670845226,
|
62 |
+
"loss": 1.2734,
|
63 |
+
"step": 40
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 0.01,
|
67 |
+
"learning_rate": 0.00015000000000000001,
|
68 |
+
"loss": 1.2862,
|
69 |
+
"step": 45
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.01,
|
73 |
+
"learning_rate": 0.00013568862215918717,
|
74 |
+
"loss": 1.2708,
|
75 |
+
"step": 50
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 0.01,
|
79 |
+
"learning_rate": 0.00012048066680651908,
|
80 |
+
"loss": 1.2435,
|
81 |
+
"step": 55
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 0.01,
|
85 |
+
"learning_rate": 0.00010475819158237425,
|
86 |
+
"loss": 1.2824,
|
87 |
+
"step": 60
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 0.01,
|
91 |
+
"learning_rate": 8.891618000989891e-05,
|
92 |
+
"loss": 1.2778,
|
93 |
+
"step": 65
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.01,
|
97 |
+
"learning_rate": 7.335261863099651e-05,
|
98 |
+
"loss": 1.2511,
|
99 |
+
"step": 70
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.01,
|
103 |
+
"learning_rate": 5.845849869981137e-05,
|
104 |
+
"loss": 1.2728,
|
105 |
+
"step": 75
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 0.01,
|
109 |
+
"learning_rate": 4.4607993613388976e-05,
|
110 |
+
"loss": 1.2866,
|
111 |
+
"step": 80
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 0.02,
|
115 |
+
"learning_rate": 3.21490588442868e-05,
|
116 |
+
"loss": 1.2377,
|
117 |
+
"step": 85
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 0.02,
|
121 |
+
"learning_rate": 2.139469052572127e-05,
|
122 |
+
"loss": 1.2673,
|
123 |
+
"step": 90
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.02,
|
127 |
+
"learning_rate": 1.2615062293021507e-05,
|
128 |
+
"loss": 1.2778,
|
129 |
+
"step": 95
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.02,
|
133 |
+
"learning_rate": 6.030737921409169e-06,
|
134 |
+
"loss": 1.2666,
|
135 |
+
"step": 100
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.02,
|
139 |
+
"learning_rate": 1.8071302737293295e-06,
|
140 |
+
"loss": 1.2382,
|
141 |
+
"step": 105
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"epoch": 0.02,
|
145 |
+
"learning_rate": 5.0345761681491746e-08,
|
146 |
+
"loss": 1.2627,
|
147 |
+
"step": 110
|
148 |
+
},
|
149 |
+
{
|
150 |
+
"epoch": 0.02,
|
151 |
+
"eval_loss": 1.2271578311920166,
|
152 |
+
"eval_runtime": 1802.5494,
|
153 |
+
"eval_samples_per_second": 16.27,
|
154 |
+
"eval_steps_per_second": 1.356,
|
155 |
+
"step": 111
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"epoch": 0.02,
|
159 |
+
"step": 111,
|
160 |
+
"total_flos": 79541494087680.0,
|
161 |
+
"train_loss": 1.2791897563246992,
|
162 |
+
"train_runtime": 2444.0756,
|
163 |
+
"train_samples_per_second": 2.168,
|
164 |
+
"train_steps_per_second": 0.045
|
165 |
+
}
|
166 |
+
],
|
167 |
+
"logging_steps": 5,
|
168 |
+
"max_steps": 111,
|
169 |
+
"num_input_tokens_seen": 0,
|
170 |
+
"num_train_epochs": 1,
|
171 |
+
"save_steps": 100,
|
172 |
+
"total_flos": 79541494087680.0,
|
173 |
+
"train_batch_size": 4,
|
174 |
+
"trial_name": null,
|
175 |
+
"trial_params": null
|
176 |
+
}
|