Emma5099 commited on
Commit
574c9db
·
1 Parent(s): 9161dc6

End of training

Browse files
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: gpt2
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: my_awesome_model
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # my_awesome_model
17
+
18
+ This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.9029
21
+ - Accuracy: 83.5906
22
+ - Fairness (1-gap): 86.1552
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.00010182363730274678
42
+ - train_batch_size: 1
43
+ - eval_batch_size: 1
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 2
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Fairness (1-gap) |
52
+ |:-------------:|:-----:|:------:|:---------------:|:--------:|:----------------:|
53
+ | 0.8351 | 1.0 | 257478 | 0.8793 | 82.2789 | 88.4485 |
54
+ | 0.7982 | 2.0 | 514956 | 0.9029 | 83.5906 | 86.1552 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.33.3
60
+ - Pytorch 2.0.1+cu118
61
+ - Datasets 2.14.5
62
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2ForSequenceClassification"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20",
33
+ "21": "LABEL_21",
34
+ "22": "LABEL_22",
35
+ "23": "LABEL_23",
36
+ "24": "LABEL_24",
37
+ "25": "LABEL_25",
38
+ "26": "LABEL_26",
39
+ "27": "LABEL_27"
40
+ },
41
+ "initializer_range": 0.02,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1,
45
+ "LABEL_10": 10,
46
+ "LABEL_11": 11,
47
+ "LABEL_12": 12,
48
+ "LABEL_13": 13,
49
+ "LABEL_14": 14,
50
+ "LABEL_15": 15,
51
+ "LABEL_16": 16,
52
+ "LABEL_17": 17,
53
+ "LABEL_18": 18,
54
+ "LABEL_19": 19,
55
+ "LABEL_2": 2,
56
+ "LABEL_20": 20,
57
+ "LABEL_21": 21,
58
+ "LABEL_22": 22,
59
+ "LABEL_23": 23,
60
+ "LABEL_24": 24,
61
+ "LABEL_25": 25,
62
+ "LABEL_26": 26,
63
+ "LABEL_27": 27,
64
+ "LABEL_3": 3,
65
+ "LABEL_4": 4,
66
+ "LABEL_5": 5,
67
+ "LABEL_6": 6,
68
+ "LABEL_7": 7,
69
+ "LABEL_8": 8,
70
+ "LABEL_9": 9
71
+ },
72
+ "layer_norm_epsilon": 1e-05,
73
+ "model_type": "gpt2",
74
+ "n_ctx": 1024,
75
+ "n_embd": 768,
76
+ "n_head": 12,
77
+ "n_inner": null,
78
+ "n_layer": 12,
79
+ "n_positions": 1024,
80
+ "problem_type": "single_label_classification",
81
+ "reorder_and_upcast_attn": false,
82
+ "resid_pdrop": 0.1,
83
+ "scale_attn_by_inverse_layer_idx": false,
84
+ "scale_attn_weights": true,
85
+ "summary_activation": null,
86
+ "summary_first_dropout": 0.1,
87
+ "summary_proj_to_labels": true,
88
+ "summary_type": "cls_index",
89
+ "summary_use_proj": true,
90
+ "task_specific_params": {
91
+ "text-generation": {
92
+ "do_sample": true,
93
+ "max_length": 50
94
+ }
95
+ },
96
+ "torch_dtype": "float32",
97
+ "transformers_version": "4.33.3",
98
+ "use_cache": true,
99
+ "vocab_size": 50257
100
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e4ad36877691ab0131646a82c967187b3f1280fb935468b1644ced9404f8d1a
3
+ size 497893473
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,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<|endoftext|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|endoftext|>",
6
+ "model_max_length": 1024,
7
+ "tokenizer_class": "GPT2Tokenizer",
8
+ "unk_token": "<|endoftext|>"
9
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b1c3863e3e4939a5a0f57be8ee251334b209133315e31a09a1d6de6483a3b7b
3
+ size 4027
vocab.json ADDED
The diff for this file is too large to render. See raw diff