nie3e commited on
Commit
1b3761b
1 Parent(s): 46dac33

pos-polish-gpt2-large

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ metrics:
5
+ - precision
6
+ - recall
7
+ - f1
8
+ - accuracy
9
+ model-index:
10
+ - name: pos-polish-gpt2-large
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
+ # pos-polish-gpt2-large
18
+
19
+ This model was trained from scratch on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.2290
22
+ - Precision: 0.8910
23
+ - Recall: 0.9328
24
+ - F1: 0.9114
25
+ - Accuracy: 0.9450
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 2e-05
45
+ - train_batch_size: 8
46
+ - eval_batch_size: 2
47
+ - seed: 42
48
+ - gradient_accumulation_steps: 4
49
+ - total_train_batch_size: 32
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 3
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
58
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
59
+ | 0.1952 | 1.0 | 2444 | 0.1942 | 0.8865 | 0.9304 | 0.9079 | 0.9426 |
60
+ | 0.1287 | 2.0 | 4889 | 0.1984 | 0.8903 | 0.9322 | 0.9108 | 0.9449 |
61
+ | 0.0832 | 3.0 | 7332 | 0.2290 | 0.8910 | 0.9328 | 0.9114 | 0.9450 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.36.2
67
+ - Pytorch 2.1.2+cu121
68
+ - Datasets 2.16.1
69
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "polish-gpt2-large",
3
+ "activation_function": "gelu_fast",
4
+ "architectures": [
5
+ "GPT2ForTokenClassification"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 0,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 2,
11
+ "id2label": {
12
+ "0": "numcol",
13
+ "1": "subst",
14
+ "2": "num",
15
+ "3": "comp",
16
+ "4": "xxx",
17
+ "5": "bedzie",
18
+ "6": "interp",
19
+ "7": "winien",
20
+ "8": "interj",
21
+ "9": "siebie",
22
+ "10": "conj",
23
+ "11": "pcon",
24
+ "12": "ppas",
25
+ "13": "burk",
26
+ "14": "imps",
27
+ "15": "ppron12",
28
+ "16": "pant",
29
+ "17": "adj",
30
+ "18": "prep",
31
+ "19": "adjp",
32
+ "20": "fin",
33
+ "21": "pred",
34
+ "22": "ger",
35
+ "23": "praet",
36
+ "24": "adjc",
37
+ "25": "ppron3",
38
+ "26": "adv",
39
+ "27": "aglt",
40
+ "28": "brev",
41
+ "29": "depr",
42
+ "30": "inf",
43
+ "31": "adja",
44
+ "32": "pact",
45
+ "33": "qub",
46
+ "34": "impt"
47
+ },
48
+ "initializer_range": 0.02,
49
+ "label2id": {
50
+ "adj": 17,
51
+ "adja": 31,
52
+ "adjc": 24,
53
+ "adjp": 19,
54
+ "adv": 26,
55
+ "aglt": 27,
56
+ "bedzie": 5,
57
+ "brev": 28,
58
+ "burk": 13,
59
+ "comp": 3,
60
+ "conj": 10,
61
+ "depr": 29,
62
+ "fin": 20,
63
+ "ger": 22,
64
+ "imps": 14,
65
+ "impt": 34,
66
+ "inf": 30,
67
+ "interj": 8,
68
+ "interp": 6,
69
+ "num": 2,
70
+ "numcol": 0,
71
+ "pact": 32,
72
+ "pant": 16,
73
+ "pcon": 11,
74
+ "ppas": 12,
75
+ "ppron12": 15,
76
+ "ppron3": 25,
77
+ "praet": 23,
78
+ "pred": 21,
79
+ "prep": 18,
80
+ "qub": 33,
81
+ "siebie": 9,
82
+ "subst": 1,
83
+ "winien": 7,
84
+ "xxx": 4
85
+ },
86
+ "layer_norm_epsilon": 1e-05,
87
+ "model_type": "gpt2",
88
+ "n_embd": 1280,
89
+ "n_head": 20,
90
+ "n_inner": 5120,
91
+ "n_layer": 36,
92
+ "n_positions": 1536,
93
+ "reorder_and_upcast_attn": false,
94
+ "resid_pdrop": 0.1,
95
+ "scale_attn_by_inverse_layer_idx": false,
96
+ "scale_attn_weights": true,
97
+ "summary_activation": null,
98
+ "summary_first_dropout": 0.1,
99
+ "summary_proj_to_labels": true,
100
+ "summary_type": "cls_index",
101
+ "summary_use_proj": true,
102
+ "tokenizer_class": "GPT2TokenizerFast",
103
+ "torch_dtype": "float32",
104
+ "transformers_version": "4.36.2",
105
+ "use_cache": true,
106
+ "vocab_size": 51200
107
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea2eeb0fc0732ea158b2ce942405ad6d3fbd7106eb94ee1028a3b307a9325532
3
+ size 3103795028
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": true,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<pad>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<unk>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "4": {
38
+ "content": "<mask>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ }
45
+ },
46
+ "bos_token": "<s>",
47
+ "clean_up_tokenization_spaces": true,
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "model_max_length": 1536,
51
+ "pad_token": "</s>",
52
+ "tokenizer_class": "GPT2Tokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e86319ddacddc1883b2c9cb2399fd3e06e7593c805cc216e9ee65c848edf1d7e
3
+ size 4728
vocab.json ADDED
The diff for this file is too large to render. See raw diff