kavg commited on
Commit
0fb289e
·
verified ·
1 Parent(s): 0ffa293

LiLT-RE-PT

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: nielsr/lilt-xlm-roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - xfun
8
+ metrics:
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: checkpoints
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # checkpoints
21
+
22
+ This model is a fine-tuned version of [nielsr/lilt-xlm-roberta-base](https://huggingface.co/nielsr/lilt-xlm-roberta-base) on the xfun dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Precision: 0.2199
25
+ - Recall: 0.5308
26
+ - F1: 0.3109
27
+ - Loss: 0.1355
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 1e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 2
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_ratio: 0.1
53
+ - training_steps: 10000
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Precision | Recall | F1 | Validation Loss |
58
+ |:-------------:|:------:|:-----:|:---------:|:------:|:------:|:---------------:|
59
+ | 0.1811 | 16.67 | 500 | 0 | 0 | 0 | 0.2498 |
60
+ | 0.1861 | 33.33 | 1000 | 0.4207 | 0.0457 | 0.0825 | 0.2486 |
61
+ | 0.0373 | 50.0 | 1500 | 0.4845 | 0.0517 | 0.0934 | 0.2116 |
62
+ | 0.0856 | 66.67 | 2000 | 0.3184 | 0.1504 | 0.2043 | 0.1696 |
63
+ | 0.0867 | 83.33 | 2500 | 0.2201 | 0.3472 | 0.2694 | 0.1691 |
64
+ | 0.0832 | 100.0 | 3000 | 0.2369 | 0.3685 | 0.2884 | 0.1687 |
65
+ | 0.0756 | 116.67 | 3500 | 0.2152 | 0.4301 | 0.2869 | 0.1561 |
66
+ | 0.0454 | 133.33 | 4000 | 0.2075 | 0.4818 | 0.2900 | 0.1513 |
67
+ | 0.0629 | 150.0 | 4500 | 0.2202 | 0.5282 | 0.3108 | 0.1748 |
68
+ | 0.0503 | 166.67 | 5000 | 0.2058 | 0.5573 | 0.3006 | 0.1832 |
69
+ | 0.05 | 183.33 | 5500 | 0.2263 | 0.5381 | 0.3186 | 0.1863 |
70
+ | 0.0365 | 200.0 | 6000 | 0.2233 | 0.5712 | 0.3211 | 0.1524 |
71
+ | 0.0366 | 216.67 | 6500 | 0.2219 | 0.5699 | 0.3195 | 0.1254 |
72
+ | 0.0352 | 233.33 | 7000 | 0.2199 | 0.5308 | 0.3109 | 0.1355 |
73
+ | 0.0524 | 250.0 | 7500 | 0.2184 | 0.5500 | 0.3126 | 0.1456 |
74
+ | 0.0375 | 266.67 | 8000 | 0.2158 | 0.5401 | 0.3084 | 0.1549 |
75
+ | 0.0324 | 283.33 | 8500 | 0.2068 | 0.5507 | 0.3007 | 0.1840 |
76
+ | 0.0168 | 300.0 | 9000 | 0.2155 | 0.5520 | 0.3100 | 0.1686 |
77
+ | 0.0306 | 316.67 | 9500 | 0.2160 | 0.5666 | 0.3128 | 0.1558 |
78
+ | 0.0229 | 333.33 | 10000 | 0.2152 | 0.5712 | 0.3126 | 0.1633 |
79
+
80
+
81
+ ### Framework versions
82
+
83
+ - Transformers 4.38.2
84
+ - Pytorch 2.1.0+cu121
85
+ - Datasets 2.18.0
86
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nielsr/lilt-xlm-roberta-base",
3
+ "architectures": [
4
+ "LiLTRobertaLikeForRelationExtraction"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "channel_shrink_ratio": 4,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_2d_position_embeddings": 1024,
18
+ "max_position_embeddings": 514,
19
+ "model_type": "lilt",
20
+ "num_attention_heads": 12,
21
+ "num_hidden_layers": 12,
22
+ "output_past": true,
23
+ "pad_token_id": 1,
24
+ "position_embedding_type": "absolute",
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.38.2",
27
+ "type_vocab_size": 1,
28
+ "use_cache": true,
29
+ "vocab_size": 250002
30
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d24c110a74cf0e063cdae347ac45597dafdd41c2ae907cdfa131c07628f2720
3
+ size 1147300280
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f59925fcb90c92b894cb93e51bb9b4a6105c5c249fe54ce1c704420ac39b81af
3
+ size 17082756
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
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:94229c8cf8c133498149e4109dfecb9f1c5c79e52d203411ad2446cf894c8717
3
+ size 5048