OSainz commited on
Commit
3ebde74
1 Parent(s): 6fac997

OSainz/mdt-ie-re-entity-pair

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,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: xlm-roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ model-index:
11
+ - name: tmp
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # tmp
19
+
20
+ This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the None dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.3272
23
+ - Precision: 0.5560
24
+ - Recall: 0.3209
25
+ - F1: 0.4069
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: 1e-05
45
+ - train_batch_size: 32
46
+ - eval_batch_size: 32
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: constant
50
+ - num_epochs: 3
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
56
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|
57
+ | 0.7083 | 0.35 | 500 | 0.4423 | 0.2785 | 0.0529 | 0.0889 |
58
+ | 0.4849 | 0.7 | 1000 | 0.4009 | 0.3623 | 0.1803 | 0.2408 |
59
+ | 0.4021 | 1.04 | 1500 | 0.3621 | 0.5027 | 0.2212 | 0.3072 |
60
+ | 0.3276 | 1.39 | 2000 | 0.3606 | 0.4006 | 0.3077 | 0.3481 |
61
+ | 0.2857 | 1.74 | 2500 | 0.3432 | 0.5073 | 0.25 | 0.3349 |
62
+ | 0.251 | 2.09 | 3000 | 0.3481 | 0.4431 | 0.3413 | 0.3856 |
63
+ | 0.2184 | 2.43 | 3500 | 0.3309 | 0.5274 | 0.3353 | 0.4100 |
64
+ | 0.2162 | 2.78 | 4000 | 0.3411 | 0.4167 | 0.3726 | 0.3934 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.37.2
70
+ - Pytorch 2.1.0+cu121
71
+ - Datasets 2.17.0
72
+ - Tokenizers 0.15.2
added_tokens.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "[/E1]": 250003,
3
+ "[/E2]": 250005,
4
+ "[E1]": 250002,
5
+ "[E2]": 250004
6
+ }
config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "xlm-roberta-base",
3
+ "architectures": [
4
+ "XLMRobertaForEntityPairClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "head_token": "[E1]",
11
+ "head_token_id": 250002,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "arg",
17
+ "1": "causes",
18
+ "2": "domain",
19
+ "3": "entails",
20
+ "4": "has-part",
21
+ "5": "has-property",
22
+ "6": "in-context",
23
+ "7": "in-place",
24
+ "8": "in-time",
25
+ "9": "is-a",
26
+ "10": "no_relation",
27
+ "11": "part-of",
28
+ "12": "subject",
29
+ "13": "target"
30
+ },
31
+ "initializer_range": 0.02,
32
+ "intermediate_size": 3072,
33
+ "label2id": {
34
+ "arg": 0,
35
+ "causes": 1,
36
+ "domain": 2,
37
+ "entails": 3,
38
+ "has-part": 4,
39
+ "has-property": 5,
40
+ "in-context": 6,
41
+ "in-place": 7,
42
+ "in-time": 8,
43
+ "is-a": 9,
44
+ "no_relation": 10,
45
+ "part-of": 11,
46
+ "subject": 12,
47
+ "target": 13
48
+ },
49
+ "layer_norm_eps": 1e-05,
50
+ "max_position_embeddings": 514,
51
+ "model_type": "xlm-roberta",
52
+ "num_attention_heads": 12,
53
+ "num_hidden_layers": 12,
54
+ "output_past": true,
55
+ "pad_token_id": 1,
56
+ "position_embedding_type": "absolute",
57
+ "problem_type": "single_label_classification",
58
+ "tail_token": "[E2]",
59
+ "tail_token_id": 250004,
60
+ "torch_dtype": "float32",
61
+ "transformers_version": "4.37.2",
62
+ "type_vocab_size": 1,
63
+ "use_cache": true,
64
+ "vocab_size": 250006
65
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a852a3340739af1e500f60b21e57d0aa58e90eb35d255d32d0746e367cb3d16e
3
+ size 1114613472
runs/Feb19_09-10-13_a4027b53f756/events.out.tfevents.1708333814.a4027b53f756.3931.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12f8d9e5a9e786c9e47de2cff110f59f4cbee6a90828df7528f28eea822d29ba
3
+ size 5036
runs/Feb19_09-11-16_a4027b53f756/events.out.tfevents.1708333884.a4027b53f756.3931.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddcf3d82aac54ebbfe69164e0064e9509cc09b8a18240bef755137661626b498
3
+ size 10006
runs/Feb19_09-11-16_a4027b53f756/events.out.tfevents.1708335102.a4027b53f756.3931.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e41b552e0182add38d0099dfb5f8984cd1301bd702ca0eed1529deadcb5d511c
3
+ size 508
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c64f894a9888ec9d193474397c28acc9154e070264bae25477f0385b12f2b8d
3
+ size 17083580
tokenizer_config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "250001": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "250002": {
45
+ "content": "[E1]",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": false
51
+ },
52
+ "250003": {
53
+ "content": "[/E1]",
54
+ "lstrip": false,
55
+ "normalized": true,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": false
59
+ },
60
+ "250004": {
61
+ "content": "[E2]",
62
+ "lstrip": false,
63
+ "normalized": true,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": false
67
+ },
68
+ "250005": {
69
+ "content": "[/E2]",
70
+ "lstrip": false,
71
+ "normalized": true,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": false
75
+ }
76
+ },
77
+ "bos_token": "<s>",
78
+ "clean_up_tokenization_spaces": true,
79
+ "cls_token": "<s>",
80
+ "eos_token": "</s>",
81
+ "mask_token": "<mask>",
82
+ "model_max_length": 512,
83
+ "pad_token": "<pad>",
84
+ "sep_token": "</s>",
85
+ "tokenizer_class": "XLMRobertaTokenizer",
86
+ "unk_token": "<unk>"
87
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b17f4f14c924f1c5d53637b7e698d2fdf1795498423b9fefffba0f32c605aa85
3
+ size 4664