kisejin commited on
Commit
cfa163f
·
verified ·
1 Parent(s): 60bb528

p-tuning-gpt2-large-with-sst2

Browse files
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-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-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.3065
22
+ - Accuracy: 0.8968
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.4485 | 1.0 | 4210 | 0.3556 | 0.8406 |
54
+ | 0.2677 | 2.0 | 8420 | 0.3760 | 0.8693 |
55
+ | 0.2717 | 3.0 | 12630 | 0.3264 | 0.8727 |
56
+ | 0.3687 | 4.0 | 16840 | 0.3410 | 0.8807 |
57
+ | 0.3483 | 5.0 | 21050 | 0.3075 | 0.8865 |
58
+ | 0.2969 | 6.0 | 25260 | 0.3315 | 0.8888 |
59
+ | 0.3577 | 7.0 | 29470 | 0.2875 | 0.8853 |
60
+ | 0.4036 | 8.0 | 33680 | 0.3143 | 0.8899 |
61
+ | 0.404 | 9.0 | 37890 | 0.2858 | 0.8911 |
62
+ | 0.2797 | 10.0 | 42100 | 0.3035 | 0.8876 |
63
+ | 0.3328 | 11.0 | 46310 | 0.3168 | 0.8876 |
64
+ | 0.2345 | 12.0 | 50520 | 0.3063 | 0.8933 |
65
+ | 0.3154 | 13.0 | 54730 | 0.2972 | 0.8911 |
66
+ | 0.2937 | 14.0 | 58940 | 0.2994 | 0.8933 |
67
+ | 0.2123 | 15.0 | 63150 | 0.2938 | 0.8899 |
68
+ | 0.295 | 16.0 | 67360 | 0.3087 | 0.8945 |
69
+ | 0.1924 | 17.0 | 71570 | 0.3031 | 0.8933 |
70
+ | 0.2415 | 18.0 | 75780 | 0.3067 | 0.8979 |
71
+ | 0.1876 | 19.0 | 79990 | 0.3080 | 0.8979 |
72
+ | 0.3891 | 20.0 | 84200 | 0.3065 | 0.8968 |
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:c50b65bf67fbfd9e0e3de497a139778a196ccf968f8bee6fd66ba307a429a34a
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:0fe44fd0b908345c0a87b0e8eaeaa74f619d0d27ee502ae863dd8b6bfa7b1e71
3
+ size 5048
vocab.json ADDED
The diff for this file is too large to render. See raw diff