Gunslinger3D
commited on
Commit
•
c0ccf35
1
Parent(s):
5ed240c
fine-tuning-Phi2-with-webglm-qa-with-lora_2
Browse files- README.md +162 -0
- adapter_config.json +30 -0
- adapter_model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
base_model: microsoft/phi-2
|
7 |
+
model-index:
|
8 |
+
- name: fine-tuning-Phi2-with-webglm-qa-with-lora_2
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# fine-tuning-Phi2-with-webglm-qa-with-lora_2
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.0749
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 5e-05
|
39 |
+
- train_batch_size: 2
|
40 |
+
- eval_batch_size: 2
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 5
|
43 |
+
- total_train_batch_size: 10
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_steps: 100
|
47 |
+
- training_steps: 1000
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
54 |
+
| No log | 0.2 | 10 | 8.2244 |
|
55 |
+
| No log | 0.4 | 20 | 7.4785 |
|
56 |
+
| No log | 0.6 | 30 | 5.5477 |
|
57 |
+
| No log | 0.8 | 40 | 2.9270 |
|
58 |
+
| 5.8579 | 1.0 | 50 | 0.6602 |
|
59 |
+
| 5.8579 | 1.2 | 60 | 0.5707 |
|
60 |
+
| 5.8579 | 1.39 | 70 | 0.5056 |
|
61 |
+
| 5.8579 | 1.59 | 80 | 0.4537 |
|
62 |
+
| 5.8579 | 1.79 | 90 | 0.4048 |
|
63 |
+
| 0.4258 | 1.99 | 100 | 0.3539 |
|
64 |
+
| 0.4258 | 2.19 | 110 | 0.3117 |
|
65 |
+
| 0.4258 | 2.39 | 120 | 0.2848 |
|
66 |
+
| 0.4258 | 2.59 | 130 | 0.2589 |
|
67 |
+
| 0.4258 | 2.79 | 140 | 0.2344 |
|
68 |
+
| 0.2253 | 2.99 | 150 | 0.2160 |
|
69 |
+
| 0.2253 | 3.19 | 160 | 0.2037 |
|
70 |
+
| 0.2253 | 3.39 | 170 | 0.1890 |
|
71 |
+
| 0.2253 | 3.59 | 180 | 0.1794 |
|
72 |
+
| 0.2253 | 3.78 | 190 | 0.1695 |
|
73 |
+
| 0.1573 | 3.98 | 200 | 0.1607 |
|
74 |
+
| 0.1573 | 4.18 | 210 | 0.1544 |
|
75 |
+
| 0.1573 | 4.38 | 220 | 0.1518 |
|
76 |
+
| 0.1573 | 4.58 | 230 | 0.1441 |
|
77 |
+
| 0.1573 | 4.78 | 240 | 0.1365 |
|
78 |
+
| 0.1251 | 4.98 | 250 | 0.1302 |
|
79 |
+
| 0.1251 | 5.18 | 260 | 0.1286 |
|
80 |
+
| 0.1251 | 5.38 | 270 | 0.1258 |
|
81 |
+
| 0.1251 | 5.58 | 280 | 0.1228 |
|
82 |
+
| 0.1251 | 5.78 | 290 | 0.1203 |
|
83 |
+
| 0.1059 | 5.98 | 300 | 0.1159 |
|
84 |
+
| 0.1059 | 6.18 | 310 | 0.1116 |
|
85 |
+
| 0.1059 | 6.37 | 320 | 0.1112 |
|
86 |
+
| 0.1059 | 6.57 | 330 | 0.1092 |
|
87 |
+
| 0.1059 | 6.77 | 340 | 0.1046 |
|
88 |
+
| 0.0905 | 6.97 | 350 | 0.1032 |
|
89 |
+
| 0.0905 | 7.17 | 360 | 0.1028 |
|
90 |
+
| 0.0905 | 7.37 | 370 | 0.1005 |
|
91 |
+
| 0.0905 | 7.57 | 380 | 0.1011 |
|
92 |
+
| 0.0905 | 7.77 | 390 | 0.0991 |
|
93 |
+
| 0.0816 | 7.97 | 400 | 0.0973 |
|
94 |
+
| 0.0816 | 8.17 | 410 | 0.0965 |
|
95 |
+
| 0.0816 | 8.37 | 420 | 0.0954 |
|
96 |
+
| 0.0816 | 8.57 | 430 | 0.0949 |
|
97 |
+
| 0.0816 | 8.76 | 440 | 0.0938 |
|
98 |
+
| 0.0722 | 8.96 | 450 | 0.0915 |
|
99 |
+
| 0.0722 | 9.16 | 460 | 0.0907 |
|
100 |
+
| 0.0722 | 9.36 | 470 | 0.0900 |
|
101 |
+
| 0.0722 | 9.56 | 480 | 0.0893 |
|
102 |
+
| 0.0722 | 9.76 | 490 | 0.0877 |
|
103 |
+
| 0.0656 | 9.96 | 500 | 0.0872 |
|
104 |
+
| 0.0656 | 10.16 | 510 | 0.0868 |
|
105 |
+
| 0.0656 | 10.36 | 520 | 0.0867 |
|
106 |
+
| 0.0656 | 10.56 | 530 | 0.0874 |
|
107 |
+
| 0.0656 | 10.76 | 540 | 0.0863 |
|
108 |
+
| 0.0614 | 10.96 | 550 | 0.0849 |
|
109 |
+
| 0.0614 | 11.16 | 560 | 0.0834 |
|
110 |
+
| 0.0614 | 11.35 | 570 | 0.0829 |
|
111 |
+
| 0.0614 | 11.55 | 580 | 0.0827 |
|
112 |
+
| 0.0614 | 11.75 | 590 | 0.0817 |
|
113 |
+
| 0.0553 | 11.95 | 600 | 0.0817 |
|
114 |
+
| 0.0553 | 12.15 | 610 | 0.0824 |
|
115 |
+
| 0.0553 | 12.35 | 620 | 0.0826 |
|
116 |
+
| 0.0553 | 12.55 | 630 | 0.0810 |
|
117 |
+
| 0.0553 | 12.75 | 640 | 0.0814 |
|
118 |
+
| 0.053 | 12.95 | 650 | 0.0804 |
|
119 |
+
| 0.053 | 13.15 | 660 | 0.0807 |
|
120 |
+
| 0.053 | 13.35 | 670 | 0.0792 |
|
121 |
+
| 0.053 | 13.55 | 680 | 0.0792 |
|
122 |
+
| 0.053 | 13.75 | 690 | 0.0792 |
|
123 |
+
| 0.0495 | 13.94 | 700 | 0.0788 |
|
124 |
+
| 0.0495 | 14.14 | 710 | 0.0783 |
|
125 |
+
| 0.0495 | 14.34 | 720 | 0.0784 |
|
126 |
+
| 0.0495 | 14.54 | 730 | 0.0779 |
|
127 |
+
| 0.0495 | 14.74 | 740 | 0.0776 |
|
128 |
+
| 0.0477 | 14.94 | 750 | 0.0773 |
|
129 |
+
| 0.0477 | 15.14 | 760 | 0.0787 |
|
130 |
+
| 0.0477 | 15.34 | 770 | 0.0772 |
|
131 |
+
| 0.0477 | 15.54 | 780 | 0.0763 |
|
132 |
+
| 0.0477 | 15.74 | 790 | 0.0759 |
|
133 |
+
| 0.0456 | 15.94 | 800 | 0.0766 |
|
134 |
+
| 0.0456 | 16.14 | 810 | 0.0770 |
|
135 |
+
| 0.0456 | 16.33 | 820 | 0.0774 |
|
136 |
+
| 0.0456 | 16.53 | 830 | 0.0770 |
|
137 |
+
| 0.0456 | 16.73 | 840 | 0.0764 |
|
138 |
+
| 0.0438 | 16.93 | 850 | 0.0754 |
|
139 |
+
| 0.0438 | 17.13 | 860 | 0.0759 |
|
140 |
+
| 0.0438 | 17.33 | 870 | 0.0762 |
|
141 |
+
| 0.0438 | 17.53 | 880 | 0.0758 |
|
142 |
+
| 0.0438 | 17.73 | 890 | 0.0761 |
|
143 |
+
| 0.0415 | 17.93 | 900 | 0.0758 |
|
144 |
+
| 0.0415 | 18.13 | 910 | 0.0754 |
|
145 |
+
| 0.0415 | 18.33 | 920 | 0.0754 |
|
146 |
+
| 0.0415 | 18.53 | 930 | 0.0753 |
|
147 |
+
| 0.0415 | 18.73 | 940 | 0.0751 |
|
148 |
+
| 0.0408 | 18.92 | 950 | 0.0752 |
|
149 |
+
| 0.0408 | 19.12 | 960 | 0.0750 |
|
150 |
+
| 0.0408 | 19.32 | 970 | 0.0749 |
|
151 |
+
| 0.0408 | 19.52 | 980 | 0.0749 |
|
152 |
+
| 0.0408 | 19.72 | 990 | 0.0749 |
|
153 |
+
| 0.0403 | 19.92 | 1000 | 0.0749 |
|
154 |
+
|
155 |
+
|
156 |
+
### Framework versions
|
157 |
+
|
158 |
+
- PEFT 0.7.1
|
159 |
+
- Transformers 4.36.2
|
160 |
+
- Pytorch 2.0.0
|
161 |
+
- Datasets 2.15.0
|
162 |
+
- Tokenizers 0.15.0
|
adapter_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "microsoft/phi-2",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 32,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 16,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"k_proj",
|
23 |
+
"fc2",
|
24 |
+
"v_proj",
|
25 |
+
"fc1",
|
26 |
+
"q_proj",
|
27 |
+
"dense"
|
28 |
+
],
|
29 |
+
"task_type": "CAUSAL_LM"
|
30 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c09793c56a75738f0d70a67a29225ab788692b9a068d90460c6e1974cc39549
|
3 |
+
size 94422368
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:410367e7db10f1409a91de8e7631cc8b82fb57e38618bd2c1dc9e07fa48360bf
|
3 |
+
size 4283
|