Upload initial RoBERTa GoEmotions model
Browse files- README.md +65 -0
- config.json +87 -0
- label_names.txt +28 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Nov27_09-09-29_bbcc6d030fc0/events.out.tfevents.1764234571.bbcc6d030fc0.277.0 +3 -0
- runs/Nov27_09-24-14_bbcc6d030fc0/events.out.tfevents.1764235455.bbcc6d030fc0.277.1 +3 -0
- runs/Nov27_09-24-14_bbcc6d030fc0/events.out.tfevents.1764236668.bbcc6d030fc0.277.2 +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: roberta-base
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: goemotions-roberta-model
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# goemotions-roberta-model
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.0817
|
| 20 |
+
- F1 Micro: 0.5864
|
| 21 |
+
- F1 Macro: 0.4282
|
| 22 |
+
- Precision Micro: 0.7067
|
| 23 |
+
- Recall Micro: 0.5010
|
| 24 |
+
|
| 25 |
+
## Model description
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Intended uses & limitations
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training and evaluation data
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training procedure
|
| 38 |
+
|
| 39 |
+
### Training hyperparameters
|
| 40 |
+
|
| 41 |
+
The following hyperparameters were used during training:
|
| 42 |
+
- learning_rate: 2e-05
|
| 43 |
+
- train_batch_size: 16
|
| 44 |
+
- eval_batch_size: 16
|
| 45 |
+
- seed: 42
|
| 46 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 47 |
+
- lr_scheduler_type: linear
|
| 48 |
+
- num_epochs: 3
|
| 49 |
+
- mixed_precision_training: Native AMP
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 Micro | F1 Macro | Precision Micro | Recall Micro |
|
| 54 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:---------------:|:------------:|
|
| 55 |
+
| 0.091 | 1.0 | 2714 | 0.0895 | 0.5482 | 0.3293 | 0.7346 | 0.4373 |
|
| 56 |
+
| 0.0822 | 2.0 | 5428 | 0.0837 | 0.5653 | 0.4060 | 0.7312 | 0.4608 |
|
| 57 |
+
| 0.0757 | 3.0 | 8142 | 0.0832 | 0.5803 | 0.4263 | 0.7003 | 0.4955 |
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Framework versions
|
| 61 |
+
|
| 62 |
+
- Transformers 4.57.2
|
| 63 |
+
- Pytorch 2.9.0+cu126
|
| 64 |
+
- Datasets 4.0.0
|
| 65 |
+
- Tokenizers 0.22.1
|
config.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RobertaForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "LABEL_0",
|
| 15 |
+
"1": "LABEL_1",
|
| 16 |
+
"2": "LABEL_2",
|
| 17 |
+
"3": "LABEL_3",
|
| 18 |
+
"4": "LABEL_4",
|
| 19 |
+
"5": "LABEL_5",
|
| 20 |
+
"6": "LABEL_6",
|
| 21 |
+
"7": "LABEL_7",
|
| 22 |
+
"8": "LABEL_8",
|
| 23 |
+
"9": "LABEL_9",
|
| 24 |
+
"10": "LABEL_10",
|
| 25 |
+
"11": "LABEL_11",
|
| 26 |
+
"12": "LABEL_12",
|
| 27 |
+
"13": "LABEL_13",
|
| 28 |
+
"14": "LABEL_14",
|
| 29 |
+
"15": "LABEL_15",
|
| 30 |
+
"16": "LABEL_16",
|
| 31 |
+
"17": "LABEL_17",
|
| 32 |
+
"18": "LABEL_18",
|
| 33 |
+
"19": "LABEL_19",
|
| 34 |
+
"20": "LABEL_20",
|
| 35 |
+
"21": "LABEL_21",
|
| 36 |
+
"22": "LABEL_22",
|
| 37 |
+
"23": "LABEL_23",
|
| 38 |
+
"24": "LABEL_24",
|
| 39 |
+
"25": "LABEL_25",
|
| 40 |
+
"26": "LABEL_26",
|
| 41 |
+
"27": "LABEL_27"
|
| 42 |
+
},
|
| 43 |
+
"initializer_range": 0.02,
|
| 44 |
+
"intermediate_size": 3072,
|
| 45 |
+
"label2id": {
|
| 46 |
+
"LABEL_0": 0,
|
| 47 |
+
"LABEL_1": 1,
|
| 48 |
+
"LABEL_10": 10,
|
| 49 |
+
"LABEL_11": 11,
|
| 50 |
+
"LABEL_12": 12,
|
| 51 |
+
"LABEL_13": 13,
|
| 52 |
+
"LABEL_14": 14,
|
| 53 |
+
"LABEL_15": 15,
|
| 54 |
+
"LABEL_16": 16,
|
| 55 |
+
"LABEL_17": 17,
|
| 56 |
+
"LABEL_18": 18,
|
| 57 |
+
"LABEL_19": 19,
|
| 58 |
+
"LABEL_2": 2,
|
| 59 |
+
"LABEL_20": 20,
|
| 60 |
+
"LABEL_21": 21,
|
| 61 |
+
"LABEL_22": 22,
|
| 62 |
+
"LABEL_23": 23,
|
| 63 |
+
"LABEL_24": 24,
|
| 64 |
+
"LABEL_25": 25,
|
| 65 |
+
"LABEL_26": 26,
|
| 66 |
+
"LABEL_27": 27,
|
| 67 |
+
"LABEL_3": 3,
|
| 68 |
+
"LABEL_4": 4,
|
| 69 |
+
"LABEL_5": 5,
|
| 70 |
+
"LABEL_6": 6,
|
| 71 |
+
"LABEL_7": 7,
|
| 72 |
+
"LABEL_8": 8,
|
| 73 |
+
"LABEL_9": 9
|
| 74 |
+
},
|
| 75 |
+
"layer_norm_eps": 1e-05,
|
| 76 |
+
"max_position_embeddings": 514,
|
| 77 |
+
"model_type": "roberta",
|
| 78 |
+
"num_attention_heads": 12,
|
| 79 |
+
"num_hidden_layers": 12,
|
| 80 |
+
"pad_token_id": 1,
|
| 81 |
+
"position_embedding_type": "absolute",
|
| 82 |
+
"problem_type": "multi_label_classification",
|
| 83 |
+
"transformers_version": "4.57.2",
|
| 84 |
+
"type_vocab_size": 1,
|
| 85 |
+
"use_cache": true,
|
| 86 |
+
"vocab_size": 50265
|
| 87 |
+
}
|
label_names.txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
admiration
|
| 2 |
+
amusement
|
| 3 |
+
anger
|
| 4 |
+
annoyance
|
| 5 |
+
approval
|
| 6 |
+
caring
|
| 7 |
+
confusion
|
| 8 |
+
curiosity
|
| 9 |
+
desire
|
| 10 |
+
disappointment
|
| 11 |
+
disapproval
|
| 12 |
+
disgust
|
| 13 |
+
embarrassment
|
| 14 |
+
excitement
|
| 15 |
+
fear
|
| 16 |
+
gratitude
|
| 17 |
+
grief
|
| 18 |
+
joy
|
| 19 |
+
love
|
| 20 |
+
nervousness
|
| 21 |
+
optimism
|
| 22 |
+
pride
|
| 23 |
+
realization
|
| 24 |
+
relief
|
| 25 |
+
remorse
|
| 26 |
+
sadness
|
| 27 |
+
surprise
|
| 28 |
+
neutral
|
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:5033c6ae168c262d16d33d8a48fb99dc4cc902e1be0c5148a7012f7e1868fc0f
|
| 3 |
+
size 498692800
|
runs/Nov27_09-09-29_bbcc6d030fc0/events.out.tfevents.1764234571.bbcc6d030fc0.277.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19cd8606fb49b5bb78cea7808fc3ed8cfd5654a8a4c6cd781321449ffce4ff30
|
| 3 |
+
size 12455
|
runs/Nov27_09-24-14_bbcc6d030fc0/events.out.tfevents.1764235455.bbcc6d030fc0.277.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3864f3b50a38cc220fd54c2f664945f63f55f3d847de779bfa0b1b15bdf4cd4a
|
| 3 |
+
size 25183
|
runs/Nov27_09-24-14_bbcc6d030fc0/events.out.tfevents.1764236668.bbcc6d030fc0.277.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25288f3a0e4d7bc8e78dd4b5a272d4b038616e290027d201b5b3a0742a23e955
|
| 3 |
+
size 578
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"cls_token": "<s>",
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"mask_token": {
|
| 6 |
+
"content": "<mask>",
|
| 7 |
+
"lstrip": true,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"unk_token": "<unk>"
|
| 15 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": false,
|
| 47 |
+
"cls_token": "<s>",
|
| 48 |
+
"eos_token": "</s>",
|
| 49 |
+
"errors": "replace",
|
| 50 |
+
"extra_special_tokens": {},
|
| 51 |
+
"mask_token": "<mask>",
|
| 52 |
+
"model_max_length": 512,
|
| 53 |
+
"pad_token": "<pad>",
|
| 54 |
+
"sep_token": "</s>",
|
| 55 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"unk_token": "<unk>"
|
| 58 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ea4288fa1af84fdb93f4439f556c7dfa512f1b4abd240495e7ad856e1ac6ff0
|
| 3 |
+
size 5905
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|