fine-tuning-Phi2-with-webglm-qa-with-lora_6
Browse files- README.md +87 -0
- adapter_config.json +30 -0
- adapter_model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_6
|
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_6
|
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.1212
|
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: 60
|
47 |
+
- training_steps: 500
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
54 |
+
| 7.3419 | 0.31 | 20 | 6.2616 |
|
55 |
+
| 4.0421 | 0.63 | 40 | 0.8963 |
|
56 |
+
| 0.6465 | 0.94 | 60 | 0.5726 |
|
57 |
+
| 0.4575 | 1.26 | 80 | 0.3999 |
|
58 |
+
| 0.309 | 1.57 | 100 | 0.3044 |
|
59 |
+
| 0.2531 | 1.89 | 120 | 0.2605 |
|
60 |
+
| 0.2235 | 2.2 | 140 | 0.2273 |
|
61 |
+
| 0.1922 | 2.52 | 160 | 0.2091 |
|
62 |
+
| 0.1793 | 2.83 | 180 | 0.1858 |
|
63 |
+
| 0.1488 | 3.14 | 200 | 0.1734 |
|
64 |
+
| 0.16 | 3.46 | 220 | 0.1646 |
|
65 |
+
| 0.1497 | 3.77 | 240 | 0.1557 |
|
66 |
+
| 0.1336 | 4.09 | 260 | 0.1489 |
|
67 |
+
| 0.1278 | 4.4 | 280 | 0.1415 |
|
68 |
+
| 0.1291 | 4.72 | 300 | 0.1392 |
|
69 |
+
| 0.1244 | 5.03 | 320 | 0.1342 |
|
70 |
+
| 0.1184 | 5.35 | 340 | 0.1319 |
|
71 |
+
| 0.118 | 5.66 | 360 | 0.1289 |
|
72 |
+
| 0.1153 | 5.97 | 380 | 0.1279 |
|
73 |
+
| 0.1052 | 6.29 | 400 | 0.1250 |
|
74 |
+
| 0.1058 | 6.6 | 420 | 0.1243 |
|
75 |
+
| 0.1142 | 6.92 | 440 | 0.1226 |
|
76 |
+
| 0.1026 | 7.23 | 460 | 0.1222 |
|
77 |
+
| 0.1051 | 7.55 | 480 | 0.1214 |
|
78 |
+
| 0.0977 | 7.86 | 500 | 0.1212 |
|
79 |
+
|
80 |
+
|
81 |
+
### Framework versions
|
82 |
+
|
83 |
+
- PEFT 0.7.1
|
84 |
+
- Transformers 4.36.2
|
85 |
+
- Pytorch 2.0.0
|
86 |
+
- Datasets 2.15.0
|
87 |
+
- 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 |
+
"dense",
|
23 |
+
"k_proj",
|
24 |
+
"fc2",
|
25 |
+
"v_proj",
|
26 |
+
"fc1",
|
27 |
+
"q_proj"
|
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:3a867018896f183f18b8a6a047d122be1b8bc830c12c443d041708e75a8c77f7
|
3 |
+
size 94422368
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10150216430e3f09dcbafad5d7d8fa3690e7441b8cdff7741660532e8cc5b41e
|
3 |
+
size 4283
|