alecmontero
commited on
Commit
•
9df40d4
1
Parent(s):
0ad50cd
xlm-roberta-meta4types-ft-ES
Browse files- .gitattributes +1 -0
- README.md +77 -0
- config.json +40 -0
- model.safetensors +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +3 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
.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,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: cardiffnlp/twitter-xlm-roberta-base-sentiment
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
model-index:
|
10 |
+
- name: xlm-roberta-meta4types-ft
|
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 |
+
# xlm-roberta-meta4types-ft
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [cardiffnlp/twitter-xlm-roberta-base-sentiment](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.8324
|
22 |
+
- Roc Auc: 0.7122
|
23 |
+
- Hamming Loss: 0.2261
|
24 |
+
- F1 Score: 0.6089
|
25 |
+
- Accuracy: 0.5528
|
26 |
+
- Precision: 0.6081
|
27 |
+
- Recall: 0.6436
|
28 |
+
- Per Label: {'f1_score': 0.608905822183525, 'precision': 0.6080571799870046, 'recall': 0.6435841440010588, 'support': 235}
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 2e-05
|
48 |
+
- train_batch_size: 4
|
49 |
+
- eval_batch_size: 4
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- lr_scheduler_warmup_steps: 500
|
54 |
+
- num_epochs: 10
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Roc Auc | Hamming Loss | F1 Score | Accuracy | Precision | Recall | Per Label |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|:------------:|:--------:|:--------:|:---------:|:------:|:-----------------------------------------------------------------------------------------------------------------:|
|
60 |
+
| 0.4279 | 1.0 | 199 | 0.5287 | 0.4967 | 0.2496 | 0.3209 | 0.5276 | 0.6759 | 0.3575 | {'f1_score': 0.3208852937872149, 'precision': 0.6759286629224553, 'recall': 0.35748792270531404, 'support': 235} |
|
61 |
+
| 0.4609 | 2.0 | 398 | 0.5076 | 0.5276 | 0.2245 | 0.3757 | 0.5779 | 0.8026 | 0.3913 | {'f1_score': 0.3757246741060956, 'precision': 0.8025944726452341, 'recall': 0.3913043478260869, 'support': 235} |
|
62 |
+
| 0.5875 | 3.0 | 597 | 0.5463 | 0.5557 | 0.2127 | 0.4232 | 0.6080 | 0.6653 | 0.4153 | {'f1_score': 0.42320834457332973, 'precision': 0.6653348029760265, 'recall': 0.41534974521871487, 'support': 235} |
|
63 |
+
| 0.493 | 4.0 | 796 | 0.5526 | 0.6428 | 0.2077 | 0.5744 | 0.6080 | 0.6577 | 0.5455 | {'f1_score': 0.5744086944086945, 'precision': 0.6577216876443267, 'recall': 0.5455495996294091, 'support': 235} |
|
64 |
+
| 0.3519 | 5.0 | 995 | 0.6760 | 0.6795 | 0.2161 | 0.5809 | 0.5879 | 0.6192 | 0.5961 | {'f1_score': 0.5809003977320809, 'precision': 0.6191632544737641, 'recall': 0.5960790152868771, 'support': 235} |
|
65 |
+
| 0.2451 | 6.0 | 1194 | 0.7729 | 0.7046 | 0.2312 | 0.6045 | 0.5578 | 0.6161 | 0.6045 | {'f1_score': 0.6045152483631816, 'precision': 0.6161038489469862, 'recall': 0.6044603269141685, 'support': 235} |
|
66 |
+
| 0.0608 | 7.0 | 1393 | 0.7616 | 0.6942 | 0.2127 | 0.6060 | 0.5779 | 0.6221 | 0.6095 | {'f1_score': 0.6060266030810951, 'precision': 0.6220689655172414, 'recall': 0.6094566871815233, 'support': 235} |
|
67 |
+
| 0.0859 | 8.0 | 1592 | 0.8324 | 0.7122 | 0.2261 | 0.6089 | 0.5528 | 0.6081 | 0.6436 | {'f1_score': 0.608905822183525, 'precision': 0.6080571799870046, 'recall': 0.6435841440010588, 'support': 235} |
|
68 |
+
| 0.0767 | 9.0 | 1791 | 0.8192 | 0.6950 | 0.2127 | 0.6004 | 0.5578 | 0.6086 | 0.6073 | {'f1_score': 0.6003549503292779, 'precision': 0.6086247086247086, 'recall': 0.6072827741380452, 'support': 235} |
|
69 |
+
| 0.0221 | 10.0 | 1990 | 0.8094 | 0.6975 | 0.2077 | 0.6135 | 0.5578 | 0.6116 | 0.6215 | {'f1_score': 0.6135398054397458, 'precision': 0.6116043923140263, 'recall': 0.6215108199324995, 'support': 235} |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.43.1
|
75 |
+
- Pytorch 1.13.1+cu116
|
76 |
+
- Datasets 2.20.0
|
77 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "cardiffnlp/twitter-xlm-roberta-base-sentiment",
|
3 |
+
"architectures": [
|
4 |
+
"XLMRobertaForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "negative",
|
16 |
+
"1": "neutral",
|
17 |
+
"2": "positive"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"negative": 0,
|
23 |
+
"neutral": 1,
|
24 |
+
"positive": 2
|
25 |
+
},
|
26 |
+
"layer_norm_eps": 1e-05,
|
27 |
+
"max_position_embeddings": 514,
|
28 |
+
"model_type": "xlm-roberta",
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_hidden_layers": 12,
|
31 |
+
"output_past": true,
|
32 |
+
"pad_token_id": 1,
|
33 |
+
"position_embedding_type": "absolute",
|
34 |
+
"problem_type": "multi_label_classification",
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.43.1",
|
37 |
+
"type_vocab_size": 1,
|
38 |
+
"use_cache": true,
|
39 |
+
"vocab_size": 250002
|
40 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bde1611e66e9dadf639c0f6edd76f8f85fc1957a76d5c3d5e35c56fa1deb023a
|
3 |
+
size 1112208084
|
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:349ddbc97c4742ad2a4f2da1ecf985a03c45bff47d712556b3a73db66512977a
|
3 |
+
size 17098516
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 1000000000000000019884624838656,
|
50 |
+
"pad_token": "<pad>",
|
51 |
+
"sep_token": "</s>",
|
52 |
+
"sp_model_kwargs": {},
|
53 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
54 |
+
"unk_token": "<unk>"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3dfa6174dc02addb7d04e1947a4128eef7770fcd47845520edad2d61567a1c4
|
3 |
+
size 4731
|