Saving model gmra_cardiffnlp/twitter-roberta-base-sentiment-latest_12112024T123630
Browse files- README.md +94 -0
- config.json +45 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Nov12_07-06-30_d87dcbccfa8e/events.out.tfevents.1731395198.d87dcbccfa8e.618.0 +3 -0
- runs/Nov12_07-06-30_d87dcbccfa8e/events.out.tfevents.1731396584.d87dcbccfa8e.618.1 +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
base_model: cardiffnlp/twitter-roberta-base-sentiment-latest
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- f1
|
8 |
+
model-index:
|
9 |
+
- name: twitter-roberta-base-sentiment-latest_12112024T123630
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# twitter-roberta-base-sentiment-latest_12112024T123630
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.5160
|
21 |
+
- F1: 0.8689
|
22 |
+
- Learning Rate: 0.0
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 1e-05
|
42 |
+
- train_batch_size: 8
|
43 |
+
- eval_batch_size: 8
|
44 |
+
- seed: 42
|
45 |
+
- gradient_accumulation_steps: 8
|
46 |
+
- total_train_batch_size: 64
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: cosine
|
49 |
+
- lr_scheduler_warmup_steps: 600
|
50 |
+
- num_epochs: 30
|
51 |
+
- mixed_precision_training: Native AMP
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Rate |
|
56 |
+
|:-------------:|:-------:|:----:|:---------------:|:------:|:------:|
|
57 |
+
| No log | 0.9942 | 43 | 1.7742 | 0.1656 | 7e-07 |
|
58 |
+
| No log | 1.9884 | 86 | 1.7368 | 0.2208 | 0.0000 |
|
59 |
+
| No log | 2.9827 | 129 | 1.6531 | 0.3182 | 0.0000 |
|
60 |
+
| No log | 4.0 | 173 | 1.5111 | 0.4169 | 0.0000 |
|
61 |
+
| No log | 4.9942 | 216 | 1.3427 | 0.4913 | 0.0000 |
|
62 |
+
| No log | 5.9884 | 259 | 1.1750 | 0.5379 | 0.0000 |
|
63 |
+
| No log | 6.9827 | 302 | 1.0970 | 0.5486 | 5e-06 |
|
64 |
+
| No log | 8.0 | 346 | 1.0081 | 0.5856 | 0.0000 |
|
65 |
+
| No log | 8.9942 | 389 | 0.9728 | 0.5991 | 0.0000 |
|
66 |
+
| No log | 9.9884 | 432 | 0.9005 | 0.6481 | 0.0000 |
|
67 |
+
| No log | 10.9827 | 475 | 0.8614 | 0.6640 | 0.0000 |
|
68 |
+
| 1.2671 | 12.0 | 519 | 0.7905 | 0.7202 | 0.0000 |
|
69 |
+
| 1.2671 | 12.9942 | 562 | 0.7560 | 0.7367 | 0.0000 |
|
70 |
+
| 1.2671 | 13.9884 | 605 | 0.7399 | 0.7421 | 1e-05 |
|
71 |
+
| 1.2671 | 14.9827 | 648 | 0.6596 | 0.7804 | 0.0000 |
|
72 |
+
| 1.2671 | 16.0 | 692 | 0.6331 | 0.7966 | 0.0000 |
|
73 |
+
| 1.2671 | 16.9942 | 735 | 0.6272 | 0.7994 | 0.0000 |
|
74 |
+
| 1.2671 | 17.9884 | 778 | 0.5878 | 0.8249 | 0.0000 |
|
75 |
+
| 1.2671 | 18.9827 | 821 | 0.5564 | 0.8386 | 0.0000 |
|
76 |
+
| 1.2671 | 20.0 | 865 | 0.5482 | 0.8474 | 0.0000 |
|
77 |
+
| 1.2671 | 20.9942 | 908 | 0.5523 | 0.8501 | 0.0000 |
|
78 |
+
| 1.2671 | 21.9884 | 951 | 0.5309 | 0.8534 | 0.0000 |
|
79 |
+
| 1.2671 | 22.9827 | 994 | 0.5364 | 0.8582 | 4e-06 |
|
80 |
+
| 0.4473 | 24.0 | 1038 | 0.5176 | 0.8638 | 3e-06 |
|
81 |
+
| 0.4473 | 24.9942 | 1081 | 0.5256 | 0.8663 | 0.0000 |
|
82 |
+
| 0.4473 | 25.9884 | 1124 | 0.5182 | 0.8691 | 0.0000 |
|
83 |
+
| 0.4473 | 26.9827 | 1167 | 0.5237 | 0.8680 | 8e-07 |
|
84 |
+
| 0.4473 | 28.0 | 1211 | 0.5160 | 0.8689 | 3e-07 |
|
85 |
+
| 0.4473 | 28.9942 | 1254 | 0.5216 | 0.8673 | 1e-07 |
|
86 |
+
| 0.4473 | 29.8266 | 1290 | 0.5220 | 0.8670 | 0.0 |
|
87 |
+
|
88 |
+
|
89 |
+
### Framework versions
|
90 |
+
|
91 |
+
- Transformers 4.44.2
|
92 |
+
- Pytorch 2.5.1+cu124
|
93 |
+
- Datasets 3.1.0
|
94 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
|
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": "acknowledgement",
|
16 |
+
"1": "change_request",
|
17 |
+
"2": "critical",
|
18 |
+
"3": "discussion_participation",
|
19 |
+
"4": "discussion_trigger",
|
20 |
+
"5": "reference"
|
21 |
+
},
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"acknowledgement": 0,
|
26 |
+
"change_request": 1,
|
27 |
+
"critical": 2,
|
28 |
+
"discussion_participation": 3,
|
29 |
+
"discussion_trigger": 4,
|
30 |
+
"reference": 5
|
31 |
+
},
|
32 |
+
"layer_norm_eps": 1e-05,
|
33 |
+
"max_position_embeddings": 514,
|
34 |
+
"model_type": "roberta",
|
35 |
+
"num_attention_heads": 12,
|
36 |
+
"num_hidden_layers": 12,
|
37 |
+
"pad_token_id": 1,
|
38 |
+
"position_embedding_type": "absolute",
|
39 |
+
"problem_type": "single_label_classification",
|
40 |
+
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.44.2",
|
42 |
+
"type_vocab_size": 1,
|
43 |
+
"use_cache": true,
|
44 |
+
"vocab_size": 50265
|
45 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28131c85930aa420055f5c666ef8959d3fa36914d58ff7477a64d35e78218665
|
3 |
+
size 498625128
|
runs/Nov12_07-06-30_d87dcbccfa8e/events.out.tfevents.1731395198.d87dcbccfa8e.618.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1dc814f7bc9719d4fc65063fed19631b000ce3d66de348fccb6cc5af2890508e
|
3 |
+
size 17615
|
runs/Nov12_07-06-30_d87dcbccfa8e/events.out.tfevents.1731396584.d87dcbccfa8e.618.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:160b38c00ea224a98b6255555fb2daa9a365bb9dd16b140b146985da2e88c83a
|
3 |
+
size 463
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"model_max_length": 1000000000000000019884624838656,
|
52 |
+
"pad_token": "<pad>",
|
53 |
+
"sep_token": "</s>",
|
54 |
+
"tokenizer_class": "RobertaTokenizer",
|
55 |
+
"trim_offsets": true,
|
56 |
+
"unk_token": "<unk>"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de058e623b11fe85959931a2158bdf8a68bfdc4b4a99bfefc5721982ac41345f
|
3 |
+
size 5304
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|