lvcalucioli
commited on
Commit
•
d32a61f
1
Parent(s):
f77a638
phi2_question_answering_finetuining_syntetic
Browse files- README.md +23 -2
- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
- tokenizer.json +6 -1
- training_args.bin +1 -1
README.md
CHANGED
@@ -5,6 +5,8 @@ tags:
|
|
5 |
- trl
|
6 |
- sft
|
7 |
- generated_from_trainer
|
|
|
|
|
8 |
base_model: microsoft/phi-2
|
9 |
model-index:
|
10 |
- name: phi2_question_answering_finetuining_syntetic
|
@@ -17,6 +19,23 @@ should probably proofread and complete it, then remove this comment. -->
|
|
17 |
# phi2_question_answering_finetuining_syntetic
|
18 |
|
19 |
This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the None dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
## Model description
|
22 |
|
@@ -39,14 +58,16 @@ The following hyperparameters were used during training:
|
|
39 |
- train_batch_size: 1
|
40 |
- eval_batch_size: 1
|
41 |
- seed: 42
|
42 |
-
- gradient_accumulation_steps: 10
|
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 |
- num_epochs: 2
|
47 |
|
48 |
### Training results
|
49 |
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
### Framework versions
|
|
|
5 |
- trl
|
6 |
- sft
|
7 |
- generated_from_trainer
|
8 |
+
metrics:
|
9 |
+
- rouge
|
10 |
base_model: microsoft/phi-2
|
11 |
model-index:
|
12 |
- name: phi2_question_answering_finetuining_syntetic
|
|
|
19 |
# phi2_question_answering_finetuining_syntetic
|
20 |
|
21 |
This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the None dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.1354
|
24 |
+
- Rouge1: 44.77
|
25 |
+
- Rouge2: 27.29
|
26 |
+
- Rougel: 39.79
|
27 |
+
- Rougelsum: 43.69
|
28 |
+
- R: 37.08
|
29 |
+
- Gen Len: 1.0
|
30 |
+
- R@1: 0.0
|
31 |
+
- R@3: 0.0
|
32 |
+
- R@5: 0.25
|
33 |
+
- R@10: 0.25
|
34 |
+
- R@20: 0.25
|
35 |
+
- R@50: 0.5
|
36 |
+
- Sample: [{'correct_answer': "Il principio del risultato guida l'esercizio del potere discrezionale e la selezione della regola del caso concreto nei contratti di appalto e di concessione, in base alla disposizione del codice disciplinato dal D.lgs. N. 36/2023.", 'prediction': 'or "gment mod modanti de e son cont l modpruzion del delettamento att Le oisi, regzire moden, costpetettent, modalian legal,aament,ili modima modi deamenti delleice deli affareni,aliani, Leaffetti e qualiano � Le"ale Leit regio �ad per\'esecizione del potere discrezionale? l trzione deli regola del codo concreto?lla principatti pub servaltto, de legalione, \nAnswer Le: Le principio del risultato �ad l\'esercizio del potere discrezionale e la selezione della regola del caso concreto nei contratti di appalto e di concessione � per partic alla massizione del potice deginare,al princip.lgs. n.o/2021, \n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'}]
|
37 |
+
- Model Name: microsoft/phi-2_question-answering
|
38 |
+
- Datetime: 2024-02-17T21:13:09.977409
|
39 |
|
40 |
## Model description
|
41 |
|
|
|
58 |
- train_batch_size: 1
|
59 |
- eval_batch_size: 1
|
60 |
- seed: 42
|
|
|
|
|
61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
62 |
- lr_scheduler_type: linear
|
63 |
- num_epochs: 2
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | R | Gen Len | R@1 | R@3 | R@5 | R@10 | R@20 | R@50 | Sample | Model Name | Datetime |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|:-----:|:-------:|:---:|:---:|:----:|:----:|:----:|:----:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------:|:--------------------------:|
|
69 |
+
| 2.0235 | 1.0 | 16 | 1.6269 | 34.72 | 18.76 | 30.45 | 33.4 | 27.85 | 1.0 | 0.0 | 0.0 | 0.25 | 0.25 | 0.25 | 0.5 | [{'correct_answer': "Il principio del risultato guida l'esercizio del potere discrezionale e la selezione della regola del caso concreto nei contratti di appalto e di concessione, in base alla disposizione del codice disciplinato dal D.lgs. N. 36/2023.", 'prediction': 'ors "vere, principiz per per perz per regcruzioni delettivei tr cheisi per regzenza reganda: funultettenza per funaliane:seando.llali regim regi perii per risice delli esarei.aliani. isondi per esaliano � "i it risio �ad per\'esercizio del risere delrezionale per per trzione dellla regola del caso.reto.lla casatti pub tralto. reg casione. \n# : Le principio gu risultato �ida l\'esercizio del potere discrezionale e la selezione della regola del caso concreto nei contratti di appalto e di concessione. per fun ala regizione del risice deginario.\' cas.lgs. n.r/2021, \n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'}] | microsoft/phi-2_question-answering | 2024-02-17T21:13:02.031968 |
|
70 |
+
| 0.9994 | 2.0 | 32 | 1.1354 | 44.77 | 27.29 | 39.79 | 43.69 | 37.08 | 1.0 | 0.0 | 0.0 | 0.25 | 0.25 | 0.25 | 0.5 | [{'correct_answer': "Il principio del risultato guida l'esercizio del potere discrezionale e la selezione della regola del caso concreto nei contratti di appalto e di concessione, in base alla disposizione del codice disciplinato dal D.lgs. N. 36/2023.", 'prediction': 'or "gment mod modanti de e son cont l modpruzion del delettamento att Le oisi, regzire moden, costpetettent, modalian legal,aament,ili modima modi deamenti delleice deli affareni,aliani, Leaffetti e qualiano � Le"ale Leit regio �ad per\'esecizione del potere discrezionale? l trzione deli regola del codo concreto?lla principatti pub servaltto, de legalione, \nAnswer Le: Le principio del risultato �ad l\'esercizio del potere discrezionale e la selezione della regola del caso concreto nei contratti di appalto e di concessione � per partic alla massizione del potice deginare,al princip.lgs. n.o/2021, \n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'}] | microsoft/phi-2_question-answering | 2024-02-17T21:13:09.977409 |
|
71 |
|
72 |
|
73 |
### Framework versions
|
adapter_config.json
CHANGED
@@ -19,10 +19,10 @@
|
|
19 |
"rank_pattern": {},
|
20 |
"revision": null,
|
21 |
"target_modules": [
|
22 |
-
"fc1",
|
23 |
"Wqkv",
|
|
|
24 |
"out_proj",
|
25 |
-
"
|
26 |
],
|
27 |
"task_type": "CAUSAL_LM",
|
28 |
"use_rslora": false
|
|
|
19 |
"rank_pattern": {},
|
20 |
"revision": null,
|
21 |
"target_modules": [
|
|
|
22 |
"Wqkv",
|
23 |
+
"fc2",
|
24 |
"out_proj",
|
25 |
+
"fc1"
|
26 |
],
|
27 |
"task_type": "CAUSAL_LM",
|
28 |
"use_rslora": false
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 83919184
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d7e095704269c9c452ecc0d4c8ff76ca34b2fe6288cc345fb2501930be11ac5
|
3 |
size 83919184
|
tokenizer.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
-
"truncation":
|
|
|
|
|
|
|
|
|
|
|
4 |
"padding": null,
|
5 |
"added_tokens": [
|
6 |
{
|
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
+
"truncation": {
|
4 |
+
"direction": "Right",
|
5 |
+
"max_length": 1024,
|
6 |
+
"strategy": "LongestFirst",
|
7 |
+
"stride": 0
|
8 |
+
},
|
9 |
"padding": null,
|
10 |
"added_tokens": [
|
11 |
{
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4411
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92fce6df62d41300fb0b4b49909bac8f19c0becd5473d9466ef012661aae2301
|
3 |
size 4411
|