jucamohedano
commited on
Commit
•
4dc2f45
1
Parent(s):
6485df1
jucamohedano
Browse files- README.md +83 -0
- adapter_config.json +28 -0
- adapter_model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- viggo
|
8 |
+
base_model: microsoft/phi-2
|
9 |
+
model-index:
|
10 |
+
- name: phi2-viggo-finetune
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# phi2-viggo-finetune
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the viggo dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.2331
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 2.5e-05
|
41 |
+
- train_batch_size: 1
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 4
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_steps: 5
|
49 |
+
- training_steps: 1000
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
55 |
+
| 1.9356 | 0.04 | 50 | 1.4822 |
|
56 |
+
| 0.7214 | 0.08 | 100 | 0.5014 |
|
57 |
+
| 0.4192 | 0.12 | 150 | 0.3561 |
|
58 |
+
| 0.3546 | 0.16 | 200 | 0.3135 |
|
59 |
+
| 0.3119 | 0.2 | 250 | 0.2935 |
|
60 |
+
| 0.2926 | 0.24 | 300 | 0.2799 |
|
61 |
+
| 0.283 | 0.27 | 350 | 0.2711 |
|
62 |
+
| 0.2731 | 0.31 | 400 | 0.2629 |
|
63 |
+
| 0.2637 | 0.35 | 450 | 0.2583 |
|
64 |
+
| 0.2693 | 0.39 | 500 | 0.2518 |
|
65 |
+
| 0.2634 | 0.43 | 550 | 0.2478 |
|
66 |
+
| 0.2652 | 0.47 | 600 | 0.2453 |
|
67 |
+
| 0.2514 | 0.51 | 650 | 0.2429 |
|
68 |
+
| 0.2588 | 0.55 | 700 | 0.2394 |
|
69 |
+
| 0.2321 | 0.59 | 750 | 0.2381 |
|
70 |
+
| 0.2348 | 0.63 | 800 | 0.2357 |
|
71 |
+
| 0.2414 | 0.67 | 850 | 0.2355 |
|
72 |
+
| 0.2455 | 0.71 | 900 | 0.2337 |
|
73 |
+
| 0.2442 | 0.74 | 950 | 0.2331 |
|
74 |
+
| 0.2192 | 0.78 | 1000 | 0.2331 |
|
75 |
+
|
76 |
+
|
77 |
+
### Framework versions
|
78 |
+
|
79 |
+
- PEFT 0.7.2.dev0
|
80 |
+
- Transformers 4.38.0.dev0
|
81 |
+
- Pytorch 2.1.0+cu121
|
82 |
+
- Datasets 2.16.1
|
83 |
+
- Tokenizers 0.15.0
|
adapter_config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 16,
|
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": 8,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"fc2",
|
23 |
+
"Wqkv",
|
24 |
+
"fc1"
|
25 |
+
],
|
26 |
+
"task_type": "CAUSAL_LM",
|
27 |
+
"use_rslora": false
|
28 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68d22c7baf9718be117a5c1b5ffed44d6829c7bad589d86d65e3672ea8aa2154
|
3 |
+
size 26230352
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1372279aa713e4bb2b16089bd8b6fb6567a68bdca6eea34b2c1bbc41ee66cefa
|
3 |
+
size 4664
|