p-tuning-t2t-gpt2-large-with-sst2
Browse files- README.md +81 -0
- adapter_config.json +17 -0
- adapter_model.safetensors +3 -0
- merges.txt +0 -0
- special_tokens_map.json +6 -0
- tokenizer.json +0 -0
- tokenizer_config.json +21 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: gpt2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
library_name: peft
|
9 |
+
model-index:
|
10 |
+
- name: p-tuning-t2t-gpt2-large-with-sst2
|
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 |
+
# p-tuning-t2t-gpt2-large-with-sst2
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.4929
|
22 |
+
- Accuracy: 0.7741
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 0.0001
|
42 |
+
- train_batch_size: 16
|
43 |
+
- eval_batch_size: 16
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: cosine
|
47 |
+
- num_epochs: 20
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
53 |
+
| 0.6984 | 1.0 | 4210 | 0.7020 | 0.5138 |
|
54 |
+
| 0.6766 | 2.0 | 8420 | 0.6971 | 0.5138 |
|
55 |
+
| 0.5377 | 3.0 | 12630 | 0.5625 | 0.7087 |
|
56 |
+
| 0.5375 | 4.0 | 16840 | 0.5481 | 0.7282 |
|
57 |
+
| 0.5209 | 5.0 | 21050 | 0.5278 | 0.7420 |
|
58 |
+
| 0.5235 | 6.0 | 25260 | 0.5357 | 0.7374 |
|
59 |
+
| 0.5311 | 7.0 | 29470 | 0.5342 | 0.7294 |
|
60 |
+
| 0.5545 | 8.0 | 33680 | 0.5135 | 0.7511 |
|
61 |
+
| 0.5406 | 9.0 | 37890 | 0.5138 | 0.7397 |
|
62 |
+
| 0.523 | 10.0 | 42100 | 0.5192 | 0.7580 |
|
63 |
+
| 0.5248 | 11.0 | 46310 | 0.4997 | 0.7706 |
|
64 |
+
| 0.559 | 12.0 | 50520 | 0.5063 | 0.7649 |
|
65 |
+
| 0.582 | 13.0 | 54730 | 0.4958 | 0.7741 |
|
66 |
+
| 0.4796 | 14.0 | 58940 | 0.4981 | 0.7706 |
|
67 |
+
| 0.4173 | 15.0 | 63150 | 0.4911 | 0.7626 |
|
68 |
+
| 0.4449 | 16.0 | 67360 | 0.4932 | 0.7718 |
|
69 |
+
| 0.4697 | 17.0 | 71570 | 0.4917 | 0.7741 |
|
70 |
+
| 0.3779 | 18.0 | 75780 | 0.4931 | 0.7729 |
|
71 |
+
| 0.449 | 19.0 | 79990 | 0.4929 | 0.7729 |
|
72 |
+
| 0.4938 | 20.0 | 84200 | 0.4929 | 0.7741 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- PEFT 0.7.1
|
78 |
+
- Transformers 4.40.1
|
79 |
+
- Pytorch 2.5.0
|
80 |
+
- Datasets 3.0.1
|
81 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"auto_mapping": null,
|
3 |
+
"base_model_name_or_path": "gpt2",
|
4 |
+
"encoder_dropout": 0.0,
|
5 |
+
"encoder_hidden_size": 768,
|
6 |
+
"encoder_num_layers": 2,
|
7 |
+
"encoder_reparameterization_type": "MLP",
|
8 |
+
"inference_mode": true,
|
9 |
+
"num_attention_heads": 12,
|
10 |
+
"num_layers": 12,
|
11 |
+
"num_transformer_submodules": 1,
|
12 |
+
"num_virtual_tokens": 20,
|
13 |
+
"peft_type": "P_TUNING",
|
14 |
+
"revision": null,
|
15 |
+
"task_type": "SEQ_CLS",
|
16 |
+
"token_dim": 768
|
17 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:107c0b6f888f2b04719dfbd667c1e4a4f5c424d35b52f7c9a2d2a2928bf847b8
|
3 |
+
size 64720
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|endoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": "<|endoftext|>",
|
5 |
+
"unk_token": "<|endoftext|>"
|
6 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"50256": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
}
|
12 |
+
},
|
13 |
+
"bos_token": "<|endoftext|>",
|
14 |
+
"clean_up_tokenization_spaces": true,
|
15 |
+
"eos_token": "<|endoftext|>",
|
16 |
+
"model_max_length": 1024,
|
17 |
+
"pad_token": "<|endoftext|>",
|
18 |
+
"padding_side": "left",
|
19 |
+
"tokenizer_class": "GPT2Tokenizer",
|
20 |
+
"unk_token": "<|endoftext|>"
|
21 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:665ecda9fb4d90d8131e44e40d9680691ff1914d84eb2d55d8213067eb864101
|
3 |
+
size 5048
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|