Luca Tedeschini commited on
Commit
0180b35
·
verified ·
1 Parent(s): f275e78

MultiPRIDE-DualEncoder-MainStage-es

Browse files
Files changed (4) hide show
  1. README.md +71 -0
  2. config.json +41 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-MainStage-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-MainStage-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.3704
24
+ - Accuracy: 0.8333
25
+ - F1: 0.56
26
+ - Precision: 0.4667
27
+ - Recall: 0.7
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.6609 | 1.0 | 77 | 0.5098 | 0.8636 | 0.5714 | 0.5455 | 0.6 |
59
+ | 0.5878 | 2.0 | 154 | 0.4235 | 0.8258 | 0.5818 | 0.4571 | 0.8 |
60
+ | 0.5223 | 3.0 | 231 | 0.3988 | 0.8561 | 0.5957 | 0.5185 | 0.7 |
61
+ | 0.4915 | 4.0 | 308 | 0.3783 | 0.8409 | 0.5714 | 0.4828 | 0.7 |
62
+ | 0.4787 | 5.0 | 385 | 0.3764 | 0.8333 | 0.5926 | 0.4706 | 0.8 |
63
+ | 0.4287 | 6.0 | 462 | 0.3704 | 0.8333 | 0.56 | 0.4667 | 0.7 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.57.3
69
+ - Pytorch 2.9.1+cu128
70
+ - Datasets 4.4.1
71
+ - 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:7bc18304ab297fc349423cc6112aa48b6fd6644026403b42c019539ad4e50292
3
+ size 1115770572
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c92072f74663a9427f16d32e7d568fb8fa0f79676330af7ff644fd0d98c5831
3
+ size 5969