MatteoFasulo commited on
Commit
ff95220
·
verified ·
1 Parent(s): 4db823a

End of training

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +37 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: cardiffnlp/twitter-roberta-base-hate
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ model-index:
11
+ - name: twitter-roberta-base-hate_1337
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # twitter-roberta-base-hate_1337
19
+
20
+ This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-hate](https://huggingface.co/cardiffnlp/twitter-roberta-base-hate) on the None dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.3885
23
+ - F1-score: 0.8487
24
+ - Accuracy: 0.8497
25
+ - Precision: 0.8478
26
+ - Recall: 0.8521
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 5e-06
46
+ - train_batch_size: 16
47
+ - eval_batch_size: 16
48
+ - seed: 1337
49
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 6
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | F1-score | Accuracy | Precision | Recall |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:---------:|:------:|
57
+ | No log | 1.0 | 180 | 0.3770 | 0.8354 | 0.8357 | 0.8388 | 0.8430 |
58
+ | No log | 2.0 | 360 | 0.3682 | 0.8334 | 0.8357 | 0.8332 | 0.8337 |
59
+ | 0.3667 | 3.0 | 540 | 0.3620 | 0.8521 | 0.8531 | 0.8511 | 0.8553 |
60
+ | 0.3667 | 4.0 | 720 | 0.3913 | 0.8334 | 0.8357 | 0.8332 | 0.8337 |
61
+ | 0.3667 | 5.0 | 900 | 0.3967 | 0.8303 | 0.8322 | 0.8295 | 0.8314 |
62
+ | 0.2409 | 6.0 | 1080 | 0.3885 | 0.8487 | 0.8497 | 0.8478 | 0.8521 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.47.1
68
+ - Pytorch 2.5.1+cu124
69
+ - Datasets 3.2.0
70
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cardiffnlp/twitter-roberta-base-hate",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
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": "NEG",
16
+ "1": "POS"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "NEG": 0,
22
+ "POS": 1
23
+ },
24
+ "layer_norm_eps": 1e-05,
25
+ "max_position_embeddings": 514,
26
+ "model_type": "roberta",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 1,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.47.1",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 50265
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd6d843fe76940290cea7311d8d14de800ba9f08098cdff3cdf795e65eb00763
3
+ size 498612824
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:365c3a73948a73203bb91b1d451ac9ae9417b54489654151fe9e16fd2bbb8bd0
3
+ size 5304