MatteoFasulo
commited on
Commit
•
28a7edf
1
Parent(s):
f816665
End of training
Browse files- README.md +70 -0
- config.json +37 -0
- model.safetensors +3 -0
- 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_69
|
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_69
|
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.3841
|
23 |
+
- F1-score: 0.8519
|
24 |
+
- Accuracy: 0.8531
|
25 |
+
- Precision: 0.8508
|
26 |
+
- Recall: 0.8544
|
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: 69
|
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.3803 | 0.8198 | 0.8217 | 0.8189 | 0.8212 |
|
58 |
+
| No log | 2.0 | 360 | 0.3648 | 0.8346 | 0.8357 | 0.8338 | 0.8379 |
|
59 |
+
| 0.3622 | 3.0 | 540 | 0.3787 | 0.8529 | 0.8531 | 0.8557 | 0.8603 |
|
60 |
+
| 0.3622 | 4.0 | 720 | 0.3777 | 0.8408 | 0.8427 | 0.8401 | 0.8417 |
|
61 |
+
| 0.3622 | 5.0 | 900 | 0.3768 | 0.8554 | 0.8566 | 0.8542 | 0.8575 |
|
62 |
+
| 0.2436 | 6.0 | 1080 | 0.3841 | 0.8519 | 0.8531 | 0.8508 | 0.8544 |
|
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:b2d423ff9995d050b3c8ac8915b40b582abb0ec1d079bf09f926134eb73c035d
|
3 |
+
size 498612824
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f2f20ae5176467ca114a96e09a4df54f42a7649f9823622643dd38bc2c5d8db
|
3 |
+
size 5304
|