Luca Tedeschini commited on
Commit
09da49b
·
verified ·
1 Parent(s): 1dbc894

MultiPRIDE-LGBT-Pretrain-es

Browse files
Files changed (4) hide show
  1. README.md +73 -0
  2. config.json +37 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: cardiffnlp/twitter-xlm-roberta-base-hate-spanish
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: MultiPRIDE-LGBT-Pretrain-es
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # MultiPRIDE-LGBT-Pretrain-es
20
+
21
+ This model is a fine-tuned version of [cardiffnlp/twitter-xlm-roberta-base-hate-spanish](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base-hate-spanish) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.7451
24
+ - Accuracy: 0.8182
25
+ - F1: 0.8481
26
+ - Precision: 0.8375
27
+ - Recall: 0.8590
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: 2e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 10
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
58
+ | 0.7172 | 1.0 | 77 | 0.5342 | 0.7576 | 0.8118 | 0.75 | 0.8846 |
59
+ | 0.53 | 2.0 | 154 | 0.5837 | 0.7652 | 0.8268 | 0.7327 | 0.9487 |
60
+ | 0.5941 | 3.0 | 231 | 0.7575 | 0.6742 | 0.7817 | 0.6471 | 0.9872 |
61
+ | 0.4301 | 4.0 | 308 | 0.5676 | 0.7879 | 0.8272 | 0.7976 | 0.8590 |
62
+ | 0.4044 | 5.0 | 385 | 0.4593 | 0.8333 | 0.8553 | 0.8784 | 0.8333 |
63
+ | 0.2799 | 6.0 | 462 | 0.6975 | 0.7879 | 0.8056 | 0.8788 | 0.7436 |
64
+ | 0.1835 | 7.0 | 539 | 0.8903 | 0.8030 | 0.8415 | 0.8023 | 0.8846 |
65
+ | 0.1452 | 8.0 | 616 | 0.7451 | 0.8182 | 0.8481 | 0.8375 | 0.8590 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.57.3
71
+ - Pytorch 2.9.1+cu128
72
+ - Datasets 4.4.1
73
+ - Tokenizers 0.22.1
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "XLMRobertaForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "classifier_dropout": null,
8
+ "dtype": "float32",
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": "NOT-HATE",
16
+ "1": "HATE"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "HATE": 1,
22
+ "NOT-HATE": 0
23
+ },
24
+ "layer_norm_eps": 1e-05,
25
+ "max_position_embeddings": 514,
26
+ "model_type": "xlm-roberta",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "output_past": true,
30
+ "pad_token_id": 1,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "transformers_version": "4.57.3",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 250002
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cec03a9258d85b03cdeb6164bfd930c650905e8ffe3b3871d0b651e583cc11b
3
+ size 1112205008
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff49139eaaac6077168abaa1e8c1d1f8ebb45d13f4432bc5feff514b5376a30a
3
+ size 5969