Luca Tedeschini commited on
Commit
34a4915
·
verified ·
1 Parent(s): 73bcc9b

MultiPRIDE-DualEncoder-MainStage-FT-it

Browse files
Files changed (4) hide show
  1. README.md +75 -0
  2. config.json +28 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: nickprock/setfit-italian-hate-speech
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ - precision
11
+ - recall
12
+ model-index:
13
+ - name: MultiPRIDE-DualEncoder-MainStage-FT-it
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # MultiPRIDE-DualEncoder-MainStage-FT-it
21
+
22
+ This model is a fine-tuned version of [nickprock/setfit-italian-hate-speech](https://huggingface.co/nickprock/setfit-italian-hate-speech) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0318
25
+ - Accuracy: 0.9571
26
+ - F1: 0.8923
27
+ - Precision: 0.8529
28
+ - Recall: 0.9355
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: 5e-06
48
+ - train_batch_size: 8
49
+ - eval_batch_size: 8
50
+ - seed: 67
51
+ - optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 10
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
59
+ | 0.048 | 1.0 | 95 | 0.0374 | 0.9509 | 0.875 | 0.8485 | 0.9032 |
60
+ | 0.0457 | 2.0 | 190 | 0.0358 | 0.9509 | 0.875 | 0.8485 | 0.9032 |
61
+ | 0.039 | 3.0 | 285 | 0.0345 | 0.9571 | 0.8889 | 0.875 | 0.9032 |
62
+ | 0.0466 | 4.0 | 380 | 0.0334 | 0.9571 | 0.8889 | 0.875 | 0.9032 |
63
+ | 0.0478 | 5.0 | 475 | 0.0325 | 0.9509 | 0.875 | 0.8485 | 0.9032 |
64
+ | 0.0409 | 6.0 | 570 | 0.0323 | 0.9632 | 0.9062 | 0.8788 | 0.9355 |
65
+ | 0.0428 | 7.0 | 665 | 0.0320 | 0.9571 | 0.8923 | 0.8529 | 0.9355 |
66
+ | 0.0402 | 8.0 | 760 | 0.0319 | 0.9571 | 0.8923 | 0.8529 | 0.9355 |
67
+ | 0.0377 | 9.0 | 855 | 0.0318 | 0.9571 | 0.8923 | 0.8529 | 0.9355 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.57.3
73
+ - Pytorch 2.9.1+cu128
74
+ - Datasets 4.4.1
75
+ - Tokenizers 0.22.1
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DualEncoderForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "class_weights": [
7
+ 1.2357723712921143,
8
+ 5.241379261016846
9
+ ],
10
+ "classifier_dropout": null,
11
+ "dtype": "bfloat16",
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "layer_norm_eps": 1e-12,
18
+ "max_position_embeddings": 512,
19
+ "model_type": "bert",
20
+ "num_attention_heads": 12,
21
+ "num_hidden_layers": 12,
22
+ "pad_token_id": 0,
23
+ "position_embedding_type": "absolute",
24
+ "transformers_version": "4.57.3",
25
+ "type_vocab_size": 2,
26
+ "use_cache": true,
27
+ "vocab_size": 31102
28
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b7b3f79abb73e0cfa49c6a178d4d29d625da1ae651ac07897cfe97052c0d1e9
3
+ size 443306324
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df7d08891e73e4326a48a2b97f462627e4f8babd28619740ac6a6660dec6a3a5
3
+ size 5969