Luca Tedeschini commited on
Commit
142803a
·
verified ·
1 Parent(s): 78e2627

MultiPRIDE-DualEncoder-LPFT-es

Browse files
Files changed (4) hide show
  1. README.md +72 -0
  2. config.json +41 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-DualEncoder-LPFT-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-DualEncoder-LPFT-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.4688
24
+ - Accuracy: 0.8030
25
+ - F1: 0.5667
26
+ - Precision: 0.425
27
+ - Recall: 0.85
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.6778 | 1.0 | 77 | 0.5634 | 0.8030 | 0.5 | 0.4062 | 0.65 |
59
+ | 0.6517 | 2.0 | 154 | 0.5011 | 0.7273 | 0.4706 | 0.3333 | 0.8 |
60
+ | 0.6283 | 3.0 | 231 | 0.5121 | 0.7727 | 0.5312 | 0.3864 | 0.85 |
61
+ | 0.6041 | 4.0 | 308 | 0.4802 | 0.8182 | 0.5862 | 0.4474 | 0.85 |
62
+ | 0.6153 | 5.0 | 385 | 0.4840 | 0.7879 | 0.5484 | 0.4048 | 0.85 |
63
+ | 0.5638 | 6.0 | 462 | 0.4761 | 0.7803 | 0.5397 | 0.3953 | 0.85 |
64
+ | 0.5421 | 7.0 | 539 | 0.4688 | 0.8030 | 0.5667 | 0.425 | 0.85 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.57.3
70
+ - Pytorch 2.9.1+cu128
71
+ - Datasets 4.4.1
72
+ - Tokenizers 0.22.1
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DualEncoderForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "class_weights": [
8
+ 1.179190754890442,
9
+ 6.5806450843811035
10
+ ],
11
+ "classifier_dropout": null,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 2,
14
+ "gradient_checkpointing": false,
15
+ "hidden_act": "gelu",
16
+ "hidden_dropout_prob": 0.1,
17
+ "hidden_size": 768,
18
+ "id2label": {
19
+ "0": "NOT-HATE",
20
+ "1": "HATE"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "HATE": 1,
26
+ "NOT-HATE": 0
27
+ },
28
+ "layer_norm_eps": 1e-05,
29
+ "max_position_embeddings": 514,
30
+ "model_type": "xlm-roberta",
31
+ "num_attention_heads": 12,
32
+ "num_hidden_layers": 12,
33
+ "output_past": true,
34
+ "pad_token_id": 1,
35
+ "position_embedding_type": "absolute",
36
+ "problem_type": "single_label_classification",
37
+ "transformers_version": "4.57.3",
38
+ "type_vocab_size": 1,
39
+ "use_cache": true,
40
+ "vocab_size": 250002
41
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36c472ac76e5c4182a3cd811015cef848f3ab4b3bc1a5da9bc99aef0e382d792
3
+ size 1115770572
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6123d693a1672038386f5e9b4f0e796cc99675ffe4689b05d78b53f69fe8dbc9
3
+ size 5969