kavg commited on
Commit
0bf9a23
1 Parent(s): d3625df

LiLT-RE-FR

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.3126
25
+ - Recall: 0.6777
26
+ - F1: 0.4278
27
+ - Loss: 0.5651
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 | F1 | Validation Loss | Precision | Recall |
58
+ |:-------------:|:------:|:-----:|:------:|:---------------:|:---------:|:------:|
59
+ | 0.2058 | 19.23 | 500 | 0 | 0.2763 | 0 | 0 |
60
+ | 0.145 | 38.46 | 1000 | 0.0623 | 0.2325 | 0.2889 | 0.0349 |
61
+ | 0.1441 | 57.69 | 1500 | 0.1232 | 0.2306 | 0.2616 | 0.0806 |
62
+ | 0.0902 | 76.92 | 2000 | 0.2645 | 0.2439 | 0.2526 | 0.2775 |
63
+ | 0.0768 | 96.15 | 2500 | 0.3176 | 0.3033 | 0.2440 | 0.4548 |
64
+ | 0.0707 | 115.38 | 3000 | 0.3472 | 0.3333 | 0.2778 | 0.4628 |
65
+ | 0.0649 | 134.62 | 3500 | 0.3509 | 0.3677 | 0.2629 | 0.5273 |
66
+ | 0.0257 | 153.85 | 4000 | 0.3705 | 0.4219 | 0.2810 | 0.5434 |
67
+ | 0.054 | 173.08 | 4500 | 0.3699 | 0.4440 | 0.2729 | 0.5739 |
68
+ | 0.0368 | 192.31 | 5000 | 0.3942 | 0.4843 | 0.3005 | 0.5730 |
69
+ | 0.0326 | 211.54 | 5500 | 0.3968 | 0.4651 | 0.2952 | 0.6052 |
70
+ | 0.0412 | 230.77 | 6000 | 0.4100 | 0.5386 | 0.3018 | 0.6392 |
71
+ | 0.0603 | 250.0 | 6500 | 0.4189 | 0.4957 | 0.3068 | 0.6598 |
72
+ | 0.0215 | 269.23 | 7000 | 0.4127 | 0.4768 | 0.2999 | 0.6616 |
73
+ | 0.0233 | 288.46 | 7500 | 0.4284 | 0.5245 | 0.3183 | 0.6553 |
74
+ | 0.0212 | 307.69 | 8000 | 0.4259 | 0.5424 | 0.3091 | 0.6849 |
75
+ | 0.0152 | 326.92 | 8500 | 0.4206 | 0.5655 | 0.3073 | 0.6661 |
76
+ | 0.0147 | 346.15 | 9000 | 0.4260 | 0.5630 | 0.3123 | 0.6697 |
77
+ | 0.0205 | 365.38 | 9500 | 0.4321 | 0.5389 | 0.3174 | 0.6768 |
78
+ | 0.0115 | 384.62 | 10000 | 0.4278 | 0.5651 | 0.3126 | 0.6777 |
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:31a3a9ac99871d99092dc633ae2f7fda1c9129740342b5210fa958349e74dc6c
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:494d5ddc97e490ab3c18df419c52a3940ea05c85eb3be7db4f294d011e531a90
3
+ size 4984